You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
768 B

// ==UserScript==
// @name GBAtemp
// @description スクリプトをキル
// @match https://gbatemp.net/*
// @run-at document-start
// @weight 999
// ==/UserScript==
// document.write("hello");
const observer = new MutationObserver(mutations => {
mutations.forEach(({ addedNodes }) => {
addedNodes.forEach(node => {
if(node.nodeType === 1 && (node.tagName === "SCRIPT" || node.tagName === "IFRAME")) {
// if(needsToBeBlacklisted(node.src, node.type)) {
node.type = "javascript/blocked";
node.remove();
// }
}
})
})
})
// Starts the monitoring
observer.observe(document.documentElement, {
childList: true,
subtree: true
})