Revisiones de Tampermonkey
Tampermonkey por Jan Biniok
5.136 revisiones
- Se valoró con 5 de 5por cnb, hace un año
- Se valoró con 5 de 5por Sergey Novoseltsev, hace un año
- Se valoró con 5 de 5por DannSKiller, hace un añoAfter 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';
}
});
});
})(); - Se valoró con 5 de 5por Kuyglitlbf, hace un año
- Se valoró con 5 de 5por abdalla.rabie, hace un año
- Se valoró con 1 de 5por Rock duende, hace un año
- Se valoró con 5 de 5por SaplinG, hace un año
- Se valoró con 3 de 5por Usuario de Firefox 18474980, hace un año
- Se valoró con 5 de 5por BeetlePie, hace un año
- Se valoró con 5 de 5por Usuario de Firefox 18473373, hace un añoDoes exactly what it's supposed to do.
- Se valoró con 5 de 5por master1274, hace un año
- Se valoró con 5 de 5por wurenji, hace un año
- Se valoró con 5 de 5por daruo, hace un año
- Se valoró con 3 de 5por Usuario de Firefox 17926026, hace un añoStops working randomly but works again after disabling/reenabling.
- Se valoró con 5 de 5por 111, hace un año
- Se valoró con 5 de 5por 徐尔曼, hace un año
- Se valoró con 5 de 5por abtye, hace un año
- Se valoró con 5 de 5por Usuario de Firefox 17265896, hace un año
- Se valoró con 5 de 5por yue546, hace un año
- Se valoró con 5 de 5por Usuario de Firefox 17717340, hace un año
- Se valoró con 5 de 5por KogaClaws, hace un año
- Se valoró con 5 de 5por Usuario de Firefox 18448404, hace un año
- Se valoró con 5 de 5por lan, hace un año
- Se valoró con 5 de 5por 狮子丶, hace un año
- Se valoró con 4 de 5por Usuario de Firefox 14593225, hace un año