Last active
May 8, 2019 16:07
-
-
Save m1k1o/32baa1ba897f49ce4bec2d7ad9b115f0 to your computer and use it in GitHub Desktop.
Force native player for some streaming services, get rid of ads and be able to download.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name force native player | |
// @version 2.1 | |
// @description wow such security | |
// @author m1k1o | |
// @match https://verystream.com/e/* | |
// @match https://oload.life/embed/* | |
// @match https://streamango.com/embed/* | |
// @match https://vidoza.net/embed-* | |
// @match https://vev.io/embed/* | |
// @match https://www.bombuj.eu/* | |
// @match https://bombuj.eu/* | |
// @run-at document-start | |
// ==/UserScript== | |
let default_oload; | |
document.onreadystatechange = function () { | |
// VeryStream | |
if (document.readyState == "interactive" && /verystream/.test(location)) { | |
location.href='/gettoken/' + document.getElementById("videolink").innerHTML + '?mime=true' | |
} | |
// OpenLoad | |
if(/oload\.life/.test(location)) { | |
// Save default | |
if (document.readyState == "interactive") { | |
default_oload = document.getElementById("DtsBlkVFQx").innerHTML; | |
} | |
// Wait for stream link | |
if (document.readyState == "complete") { | |
setInterval(() => { | |
if(document.getElementById("DtsBlkVFQx").innerHTML != default_oload) location.href='/stream/' + document.getElementById("DtsBlkVFQx").innerHTML + '?mime=true'; | |
}, 500); | |
} | |
} | |
// Streamango | |
if(document.readyState == "interactive" && /streamango/.test(location)) { | |
location.href = unsafeWindow.srces[0].src | |
} | |
// Vidoza | |
if(document.readyState == "interactive" && /vidoza/.test(location)) { | |
location.href = unsafeWindow.pData.sourcesCode[0].src | |
} | |
// vevio | |
if(document.readyState == "interactive" && /vev\.io/.test(location)) { | |
setInterval(() => { | |
var elems = document.querySelectorAll('video'); | |
if(elems.length > 0) location.href = elems[0].currentSrc | |
}, 1500); | |
} | |
// bombuj.eu (remove ads) | |
if(document.readyState == "complete" && /bombuj/.test(location)) { | |
let remove_ads = () => setTimeout(() => { | |
var elems = document.querySelectorAll('[id*=rekla]'); | |
elems.forEach(function (elem, index) { | |
elem.parentNode.removeChild(elem); | |
}); | |
}, 500) | |
document.body.addEventListener('click', remove_ads, true); | |
remove_ads(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment