Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Fox News IptvSubs
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match http://online.iptvsubs.is/
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- (function() {
- var origOpen = XMLHttpRequest.prototype.open;
- XMLHttpRequest.prototype.open = function() {
- this.addEventListener('load', function() {
- if(this.responseURL.indexOf('.m3u8')>1) {
- console.log(this.responseURL);
- document.querySelector('input#urlm3u8').value=this.responseURL;
- jwplayer("player-wrapper").stop();
- }
- });
- origOpen.apply(this, arguments);
- };
- })();
- window.onload=function(){
- var div = document.createElement('div');
- div.setAttribute('class','hiddensearch');
- div.innerHTML='<span class=""><a id="copyURL" class="btn"><i class="material-icons">fingerprint</i></a></span><input id="urlm3u8">';
- document.querySelector("#datatable_wrapper").insertBefore(div,document.querySelector("#datatable_wrapper").childNodes[0]);
- document.querySelector("#copyURL").onclick=function(){
- document.querySelector('input#urlm3u8').select();
- document.execCommand('copy');
- };
- document.querySelector('img[src="https://s3.amazonaws.com/ok2logo/foxnews.png"]').click();
- };
- })();
Advertisement
Add Comment
Please, Sign In to add comment