Recensioni per Tampermonkey
Tampermonkey di Jan Biniok
Recensione di DannSKiller
Valutata 5 su 5
di DannSKiller, 2 anni 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';
}
});
});
})();
5257 recensioni
- Valutata 1 su 5di cba012, 10 giorni faHas hidden Google Analytics and is close-source - no thanks. An extension of this privilege level needs to be fully transparent. It also begs for donations at an abnormally high rate.
Use ViolentMonkey instead. - Valutata 1 su 5di Utente Firefox 17501884, 13 giorni fa数ヶ月前の更新の際、これまで作ってきたユーザースクリプトのデータが全て消滅しました。
あらゆるデータベースファイル、削除されたデータ等を探しても残っておらず、途方もない損失に嘆きましたが、少しずつ復旧させてきました。
そして今日、Firefoxを再起動した際、再び何かのトラブルで全てのユーザースクリプトが消滅しました。
もうこれ以上信頼を預けることはできません。ViolentMonkey等への移行を速やかに行います。 - Valutata 5 su 5di Utente Firefox 12859804, 14 giorni fa
- Valutata 5 su 5di Utente Firefox 19828004, 19 giorni fa
- Valutata 5 su 5di Rackmani, 22 giorni faGreat to allow me to add a script to stop a copy paste block on a certain website where other extns were failing
- Valutata 1 su 5di Utente Firefox 14987899, 22 giorni faApparently it is not only a mess, it's also bloated, closed source now, and has fucking Google Analytics.
- Valutata 5 su 5di Alex, un mese fa
- Valutata 5 su 5di Pabli, un mese fa
- Valutata 1 su 5di Utente Firefox 17710969, un mese fa
- Valutata 5 su 5di frank, un mese fa
- Valutata 5 su 5di tink., un mese fa
- Valutata 5 su 5di Adigitalnomad123, un mese fa
- Valutata 5 su 5di Utente Firefox 18759100, 2 mesi fa
- Valutata 1 su 5di RenzoBenzo, 2 mesi faClosed source, bloated, uses google analytics, and did I mention it's closed source and uses google analytics. I would suggest users not use this extension, and use FireMonkey or ViolentMonkey instead.
- Valutata 5 su 5di Utente Firefox 19743679, 2 mesi fa
- Valutata 5 su 5di Utente Firefox 10447271, 2 mesi fa
- Valutata 5 su 5di Utente Firefox 19729411, 3 mesi fa