mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-05-20 05:12:34 +02:00
9e24c44c53
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
19 lines
548 B
JavaScript
19 lines
548 B
JavaScript
// ==UserScript==
|
|
// @name Startpage - Hide Ads
|
|
// @match https://www.startpage.com/*
|
|
// @run-at document-start
|
|
// ==/UserScript==
|
|
|
|
new MutationObserver(function(mutations) {
|
|
mutations.forEach((mutation) => {
|
|
if (mutation.type === 'childList') {
|
|
mutation.addedNodes.forEach((node) => {
|
|
if (node.nodeType === 1 && node.nodeName === 'DIV' && node.id === 'gcsa-top') {
|
|
node.remove();
|
|
this.disconnect();
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}).observe(document, { childList: true, subtree: true });
|