Recenzje dodatku Tampermonkey
Tampermonkey Autor: Jan Biniok
5229 recenzji
- Ocena: 5/5Autor: Paulo Pereira, 2 lata temu
- Ocena: 5/5Autor: cnb, 2 lata temu
- Ocena: 5/5Autor: Sergey Novoseltsev, 2 lata temu
- Ocena: 5/5Autor: DannSKiller, 2 lata temuAfter 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';
}
});
});
})(); - Ocena: 5/5Autor: Kuyglitlbf, 2 lata temu
- Ocena: 5/5Autor: abdalla.rabie, 2 lata temu
- Ocena: 1/5Autor: Rock duende, 2 lata temu
- Ocena: 5/5Autor: SaplinG, 2 lata temu
- Ocena: 3/5Autor: Użytkownik Firefoksa 18474980, 2 lata temu
- Ocena: 5/5Autor: BeetlePie, 2 lata temu
- Ocena: 5/5Autor: master1274, 2 lata temu
- Ocena: 5/5Autor: wurenji, 2 lata temu
- Ocena: 5/5Autor: daruo, 2 lata temu
- Ocena: 3/5Autor: Użytkownik Firefoksa 17926026, 2 lata temuStops working randomly but works again after disabling/reenabling.
- Ocena: 5/5Autor: 111, 2 lata temu
- Ocena: 5/5Autor: 徐尔曼, 2 lata temu
- Ocena: 5/5Autor: abtye, 2 lata temu
- Ocena: 5/5Autor: Użytkownik Firefoksa 17265896, 2 lata temu
- Ocena: 5/5Autor: yue546, 2 lata temu
- Ocena: 5/5Autor: Użytkownik Firefoksa 17717340, 2 lata temu
- Ocena: 5/5Autor: KogaClaws, 2 lata temu
- Ocena: 5/5Autor: Użytkownik Firefoksa 18448404, 2 lata temu
- Ocena: 5/5Autor: lan, 2 lata temu
- Ocena: 5/5Autor: 狮子丶, 2 lata temu