Created
May 14, 2025 19:34
-
-
Save mycaule/fd2702b5e7d6672fb804353e8e1a7a86 to your computer and use it in GitHub Desktop.
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 Remove DIVs | |
// @namespace http://tampermonkey.net/ | |
// @version 2025-05-14 | |
// @description try to take over the world! | |
// @author mycaule | |
// @match https://archive.ph/ | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
function removeElements() { | |
const idsToRemove = ['DIVALREADY', 'notRemoverPopup']; | |
idsToRemove.forEach(id => { | |
let element = document.getElementById(id); | |
if (element) { | |
element.remove(); | |
console.log(`Removed element with ID: ${id}`); | |
} | |
}); | |
} | |
// Run the function after the page loads | |
window.addEventListener('load', removeElements); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment