Recenzie doplnku Tampermonkey
Tampermonkey Autor: Jan Biniok
Recenzia od používateľa DannSKiller
Hodnotenie: 5 z 5
autor: DannSKiller, pred 2 rokmiAfter getting annoyed with searches I didn't want showing up on my Google page, especially for video searches, my web browser redirected me to TikTok. That platform is totally useless and shouldn't even be linked with Google. I'm sharing the script below that will help you block sites as well."
// ==UserScript==
// @name Google Search Filter
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Filter out specified sites from Google search results
// @author Your Name
// @match https://www.google.com/search*
// @grant none
// ==/UserScript==
(function() {
'use strict';
const blockedSites = ['example.com', 'anotherexample.com']; // Add the sites you want to block here
const observer = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
if (mutation.addedNodes && mutation.addedNodes.length > 0) {
blockedSites.forEach(site => {
const results = document.querySelectorAll(`a[href*="${site}"]`);
results.forEach(result => {
const parent = result.closest('.g'); // Google results container
if (parent) {
parent.style.display = 'none';
}
});
});
}
});
});
observer.observe(document.body, { childList: true, subtree: true });
// Initial execution for already loaded content
blockedSites.forEach(site => {
const results = document.querySelectorAll(`a[href*="${site}"]`);
results.forEach(result => {
const parent = result.closest('.g'); // Google results container
if (parent) {
parent.style.display = 'none';
}
});
});
})();
// ==UserScript==
// @name Google Search Filter
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Filter out specified sites from Google search results
// @author Your Name
// @match https://www.google.com/search*
// @grant none
// ==/UserScript==
(function() {
'use strict';
const blockedSites = ['example.com', 'anotherexample.com']; // Add the sites you want to block here
const observer = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
if (mutation.addedNodes && mutation.addedNodes.length > 0) {
blockedSites.forEach(site => {
const results = document.querySelectorAll(`a[href*="${site}"]`);
results.forEach(result => {
const parent = result.closest('.g'); // Google results container
if (parent) {
parent.style.display = 'none';
}
});
});
}
});
});
observer.observe(document.body, { childList: true, subtree: true });
// Initial execution for already loaded content
blockedSites.forEach(site => {
const results = document.querySelectorAll(`a[href*="${site}"]`);
results.forEach(result => {
const parent = result.closest('.g'); // Google results container
if (parent) {
parent.style.display = 'none';
}
});
});
})();
5 232 recenzií
- Hodnotenie: 5 z 5autor: left2crazy, pred 4 dňami
- Hodnotenie: 5 z 5autor: Vormix_Sv, pred 4 dňami
- Hodnotenie: 5 z 5autor: melodic mustox, pred 4 dňamiThanks to Tampermonkey, I can do a lot of things from my browser. I thanks with a donation, which I will repeat next month again for sure.
- Hodnotenie: 4 z 5autor: Carlos Páez, pred 15 dňami
- Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 13035229, pred 16 dňami
- Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 18699594, pred 17 dňami
- Hodnotenie: 5 z 5autor: Antonio Johns, pred 22 dňami
- Hodnotenie: 5 z 5autor: Yuri, pred 24 dňami
- Hodnotenie: 5 z 5autor: Saphir, pred 24 dňami
- Hodnotenie: 5 z 5autor: Marlon Ruiz, pred mesiacom
- Hodnotenie: 5 z 5autor: SergioDT, pred mesiacomEssential. I can't imagine the internet without this extension.
- Hodnotenie: 5 z 5autor: biki, pred mesiacom
- Hodnotenie: 5 z 5autor: Fabax, pred mesiacomUserscript manager of choice since greasemonkey (sadly) doesn't cut it anymore with newer scripts.
- Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 19602270, pred mesiacom
- Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 17775866, pred 2 mesiacmi
- Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 14835773, pred 2 mesiacmi
- Hodnotenie: 5 z 5autor: ace, pred 2 mesiacmi
- Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 18303502, pred 2 mesiacmi
- Hodnotenie: 5 z 5autor: dRAZY99, pred 2 mesiacmi
- Hodnotenie: 5 z 5autor: Th4t, pred 2 mesiacmi
- Hodnotenie: 5 z 5autor: Lazy Cat, pred 2 mesiacmi
- Hodnotenie: 5 z 5autor: zzz_132, pred 2 mesiacmi