-
-
Save ngi/99134b4bc1f97ff87a7fa8be3b573514 to your computer and use it in GitHub Desktop.
Video Bypass (maxs19.fun, maxstream.video)
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 Video Bypass (maxs19.fun, maxstream.video) | |
| // @version 1.0.8 | |
| // @description Bypass Anti-AdBlock | |
| // @author antwal, ngi | |
| // @match https://*.maxs19.fun/watchfree/* | |
| // @match https://*.maxstream.video/* | |
| // @match https://maxmon23.online/watchfree/* | |
| // @match https://fmax13.lol/watchfree/* | |
| // @match https://sumax43.autos/watchfree/* | |
| // @match https://samax63.lol/watchfree/* | |
| // @match https://maxv.lol/watchfree/* | |
| // @match https://maxsa648.website/watchfree/* | |
| // @grant none | |
| // @downloadURL https://gist.github.com/ngi/99134b4bc1f97ff87a7fa8be3b573514/raw/maxstream-video-bypass.user.js | |
| // @updateURL https://gist.github.com/ngi/99134b4bc1f97ff87a7fa8be3b573514/raw/maxstream-video-bypass.user.js | |
| // @homepage https://gist.github.com/ngi/99134b4bc1f97ff87a7fa8be3b573514 | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| function isWatchfreeUrl() { | |
| const pathname = window.location.pathname; | |
| return pathname.startsWith("/watchfree"); | |
| } | |
| if (isWatchfreeUrl()) { | |
| const iframes = document.getElementsByTagName("iframe"); | |
| let maxstreamUrl = null; | |
| for (let i = 0; i < iframes.length; i++) { | |
| const iframe = iframes[i]; | |
| const src = iframe.getAttribute("src") || iframe.src; | |
| if (src && src.includes("maxstream.video")) { | |
| maxstreamUrl = src; | |
| break; | |
| } | |
| } | |
| if (maxstreamUrl) { | |
| window.location.replace(maxstreamUrl); | |
| } | |
| } else { | |
| window.alert = function(message) { | |
| console.log("Custom alert: " + message); | |
| }; | |
| } | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
updated script