Created
January 25, 2021 10:22
-
-
Save RauliL/27bdf8e9eafe97a60c114b9f423e365e to your computer and use it in GitHub Desktop.
This file contains 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 Ask.fm mandatory registration removal | |
// @description Removes the mandatory registration requirement from Ask.fm | |
// @version 1.0 | |
// @include https://ask.fm/* | |
// ==/UserScript== | |
(() => { | |
const observer = new MutationObserver((mutations) => { | |
for (const mutation of mutations) { | |
for (const node of mutation.addedNodes) { | |
if (node.classList.contains('lightbox_overlay')) { | |
document.body.removeChild(node); | |
document.body.classList.remove('lightbox-open'); | |
} | |
} | |
} | |
}); | |
observer.observe(document.body, { childList: true }); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment