Skip to content

Instantly share code, notes, and snippets.

@antwal
Last active April 29, 2025 05:12
Show Gist options
  • Save antwal/32acc09c8bfcf9a16c33f37104f2506c to your computer and use it in GitHub Desktop.
Save antwal/32acc09c8bfcf9a16c33f37104f2506c to your computer and use it in GitHub Desktop.
Video Bypass (maxs19.fun, maxstream.video)
// ==UserScript==
// @name MaxStream - Bypass Anti-AdBlock
// @version 1.1.0
// @description Bypass Anti-AdBlock for MaxStream
// @icon https://gist.githubusercontent.com/antwal/32acc09c8bfcf9a16c33f37104f2506c/raw/ccaa4709baeb31d1eb6f9c9461160f89fc41d617/icon64.png
// @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/*
// @grant none
// @run-at document-idle
// @noframes
// @downloadURL https://gist.github.com/antwal/32acc09c8bfcf9a16c33f37104f2506c/raw/maxstream-video-bypass.user.js
// @updateURL https://gist.github.com/antwal/32acc09c8bfcf9a16c33f37104f2506c/raw/maxstream-video-bypass.user.js
// @homepage https://gist.github.com/antwal/32acc09c8bfcf9a16c33f37104f2506c
// ==/UserScript==
(function() {
'use strict';
/* TODO: Old Code
var iframevideo = document.getElementsByTagName("iframe")[0].getAttribute("src");
window.location.replace(iframevideo);
*/
function isWatchfreeUrl() {
// Get the current URL's path (everything after the domain)
const pathname = window.location.pathname;
// Check if it starts with /watchfree
return pathname.startsWith("/watchfree");
}
if (isWatchfreeUrl()) {
var iframevideo = document.getElementsByTagName("iframe")[1].getAttribute("src");
window.location.replace(iframevideo);
} 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