Recensioni per Tampermonkey
Tampermonkey di Jan Biniok
Recensione di DannSKiller
Valutata 5 su 5
di DannSKiller, 6 mesi faAfter 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';
}
});
});
})();
4.951 recensioni
- Valutata 5 su 5di Kathe, 4 giorni fa
- Valutata 5 su 5di PVV, 4 giorni fa
- Valutata 5 su 5di Herm, 4 giorni fa
- Valutata 5 su 5di iggy, 4 giorni fa
- Valutata 1 su 5di Ving, 4 giorni faThe latest update makes every page, regardless of whether I have scripts enabled for them or not, completely unable to load
- Valutata 1 su 5di Utente Firefox 18597144, 5 giorni fa
- Valutata 5 su 5di shuuji3, 5 giorni fa
- Valutata 5 su 5di b1tstrem1st0, 6 giorni fa
- Valutata 3 su 5di Utente Firefox 17724414, 6 giorni fa
- Valutata 5 su 5di Utente Firefox 18743107, 6 giorni fa
- Valutata 5 su 5di Utente Firefox 13503332, 7 giorni fa
- Valutata 5 su 5di Jacob, 7 giorni fa
- Valutata 1 su 5di Utente Firefox 18741622, 7 giorni fa
- Valutata 5 su 5di RealChrizz, 7 giorni fa
- Valutata 5 su 5di Mauricio, 7 giorni fa
- Valutata 5 su 5di Paras, 8 giorni fa
- Valutata 5 su 5di Дима, 9 giorni fa
- Valutata 5 su 5di Rob, 9 giorni fa
- Valutata 5 su 5di ashiaker, 11 giorni fa
- Valutata 5 su 5di Utente Firefox 14629882, 12 giorni fa
- Valutata 5 su 5di TiTiK, 12 giorni fa
- Valutata 5 su 5di uzaylul, 13 giorni fa