Recenze doplňku Tampermonkey
Tampermonkey od Jan Biniok
Recenze od uživatele DannSKiller
Hodnocení: 5 z 5
od uživatele DannSKiller, před 10 měsíciAfter 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 095 recenzí
- Hodnocení: 5 z 5od uživatele Uživatel Firefoxu - 18967133, před 2 dny
- Hodnocení: 5 z 5od uživatele Uživatel Firefoxu - 18565276, před 3 dny
- Hodnocení: 5 z 5od uživatele tsa, před 5 dny
- Hodnocení: 5 z 5od uživatele PinkieBoi, před 6 dny
- Hodnocení: 1 z 5od uživatele Uživatel Firefoxu - 18960742, před 6 dny
- Hodnocení: 5 z 5od uživatele xwllx, před 7 dny
- Hodnocení: 5 z 5od uživatele 臭蛋, před 8 dny
- Hodnocení: 5 z 5od uživatele FFS_FENI, před 8 dny
- Hodnocení: 5 z 5od uživatele Crysi, před 10 dny
- Hodnocení: 5 z 5od uživatele Uživatel Firefoxu - 18359538, před 14 dny
- Hodnocení: 5 z 5od uživatele nurlan, před 16 dny
- Hodnocení: 5 z 5od uživatele VOIIIXI, před 16 dny
- Hodnocení: 5 z 5od uživatele Uživatel Firefoxu - 14492808, před 18 dny
- Hodnocení: 5 z 5od uživatele liyuanshuai, před 22 dny
- Hodnocení: 5 z 5od uživatele Uživatel Firefoxu - 18927718, před 24 dny
- Hodnocení: 5 z 5od uživatele outtieTV, před 24 dny
- Hodnocení: 5 z 5od uživatele Uživatel Firefoxu - 10911376, před 25 dny
- Hodnocení: 5 z 5od uživatele 高分, před měsícem
- Hodnocení: 5 z 5od uživatele Uživatel Firefoxu - 14664175, před měsícem
- Hodnocení: 5 z 5od uživatele Zer0COOL, před měsícem
- Hodnocení: 5 z 5od uživatele Uživatel Firefoxu - 18921678, před měsícem