Skip to content

Instantly share code, notes, and snippets.

@antwal
Last active June 2, 2026 16:06
Show Gist options
  • Select an option

  • Save antwal/32acc09c8bfcf9a16c33f37104f2506c to your computer and use it in GitHub Desktop.

Select an option

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.8
// @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/*
// @match https://maxsa648.website/watchfree/*
// @match https://maxthu741.site/watchfree/*
// @match https://maxf221.website/watchfree/*
// @match https://maxwe241.site/watchfree/*
// @match https://maxsun435.online/watch_free/*
// @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';
function isWatchfreeUrl() {
const pathname = window.location.pathname;
return pathname.startsWith("/watch");
}
if (isWatchfreeUrl()) {
// 1. Get all iframes present on the page
const iframes = document.getElementsByTagName("iframe");
console.log(`Total iframes found on the page: ${iframes.length}`);
let videoIframeSrc = null;
// 2. Loop through all found iframes
for (let i = 0; i < iframes.length; i++) {
const src = iframes[i].getAttribute("src");
// 3. Check if the src exists and if it contains the string "video"
if (src && src.includes("video")) {
videoIframeSrc = src;
console.log(`Valid iframe found at index ${i}:`, src);
break; // Stop at the first match
}
}
// 4. If found, perform the redirection
if (videoIframeSrc) {
window.location.replace(videoIframeSrc);
} else {
console.log("No iframe contains the string 'video' in its src.");
}
} 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