Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RauliL/27bdf8e9eafe97a60c114b9f423e365e to your computer and use it in GitHub Desktop.
Save RauliL/27bdf8e9eafe97a60c114b9f423e365e to your computer and use it in GitHub Desktop.
// ==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