Revisiones de Tampermonkey
Tampermonkey por Jan Biniok
Revisado por DannSKiller
Se valoró con 5 de 5
por DannSKiller, el hace 7 mesesAfter 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';
}
});
});
})();
4997 revisiones
- Se valoró con 5 de 5por Bhargav Ram, el hace 10 horas
- Se valoró con 5 de 5por 退出党团队远离中共恶魔, el hace 12 horas
- Se valoró con 5 de 5por josh L., el hace 17 horasThe forbidden one... The wizard cannot be stopped at this point.
- Se valoró con 5 de 5por Md Halim, el hace un día
- Se valoró con 5 de 5por Postrediori, el hace 4 días
- Se valoró con 4 de 5por Gabb4SauRuzZ, el hace 5 días
- Se valoró con 5 de 5por horvena, el hace 5 días
- Se valoró con 5 de 5por Zumaks, el hace 5 días
- Se valoró con 5 de 5por Usuario de Firefox 12331298, el hace 7 días
- Se valoró con 5 de 5por Usuario de Firefox 13106508, el hace 7 días
- Se valoró con 5 de 5por Leonmatt, el hace 8 días
- Se valoró con 5 de 5por Usuario de Firefox 12779528, el hace 10 días
- Se valoró con 4 de 5por Usuario de Firefox 13949129, el hace 11 días
- Se valoró con 5 de 5por Usuario de Firefox 18802625, el hace 11 días
- Se valoró con 5 de 5por Usuario de Firefox 16519144, el hace 13 días
- Se valoró con 5 de 5por tutinoko, el hace 17 días
- Se valoró con 5 de 5por Engineer MLR, el hace 18 días
- Se valoró con 5 de 5por Cassagnes, el hace 18 días
- Se valoró con 4 de 5por Pawaris2732, el hace 18 días
- Se valoró con 5 de 5por Usuario de Firefox 18790286, el hace 19 días
- Se valoró con 1 de 5por shenan, el hace 22 días
- Se valoró con 5 de 5por Usuario de Firefox 18777218, el hace 22 días
- Se valoró con 1 de 5por Usuario de Firefox 18783421, el hace 23 días
- Se valoró con 5 de 5por Usuario de Firefox 18783138, el hace 23 días