Skip to content

Instantly share code, notes, and snippets.

@mycaule
Created May 14, 2025 19:34
Show Gist options
  • Save mycaule/fd2702b5e7d6672fb804353e8e1a7a86 to your computer and use it in GitHub Desktop.
Save mycaule/fd2702b5e7d6672fb804353e8e1a7a86 to your computer and use it in GitHub Desktop.
// ==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