Note 03/02/2026 22:27:01
// ==UserScript==
// @name filman.cc - usuń #kam
// @match *://filman.cc/*
// @match *://www.filman.cc/*
// @match *://m.filman.cc/*
// @run-at document-start
// @grant none
// @version 2026-03-02
// @description try to take over the world!
// @author You
// ==/UserScript==
(() => {
'use strict';
const SEL = '#kam-ban-player';
const LOG = (...a) => console.log('[TM kam-ban-player]', ...a);
function hideViaCSS() {
const css = `${SEL}{display:none!important;visibility:hidden!important;pointer-events:none!important;}`;
const style = document.createElement('style');
style.textContent = css;
(document.head || document.documentElement).appendChild(style);
}
function nuke() {
const els = document.querySelectorAll(SEL);
if (els.length) LOG('Usuwam sztuk:', els.length);
els.forEach(el => el.remove());
}
LOG('Start na:', location.href);
hideViaCSS();
// próby przez kilka sekund (na wypadek opóźnionego wstrzyknięcia)
let tries = 0;
const timer = setInterval(() => {
tries++;
nuke();
if (tries >= 80) clearInterval(timer); // ~16s przy 200ms
}, 200);
const mo = new MutationObserver(nuke);
mo.observe(document.documentElement, { childList: true, subtree: true });
window.addEventListener('load', nuke, { once: true });
})();
Public Last updated: 2026-03-02 10:31:18 PM