Recenzie doplnku Tampermonkey
Tampermonkey Autor: Jan Biniok
Recenzia od používateľa DannSKiller
Hodnotenie: 5 z 5
autor: DannSKiller, pred rokomAfter 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';
}
});
});
})();
5 195 recenzií
- Hodnotenie: 1 z 5autor: user, pred 2 dňamiUse “Greasemonkey” or “Violentmonkey”, both open‑source, whereas “Tampermonkey” is closed‑source.
- Hodnotenie: 5 z 5autor: Nippy, pred 5 dňami
- Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 17915631, pred 5 dňami
- Hodnotenie: 5 z 5autor: nihi1ist, pred 7 dňami
- Hodnotenie: 5 z 5autor: Yukari, pred 10 dňami
- Hodnotenie: 5 z 5autor: ShaneV, pred 17 dňami
- Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 19491455, pred 18 dňami
- Hodnotenie: 4 z 5autor: Používateľ Firefoxu - 18925489, pred 19 dňamiThe editor is extremely laggy on Android.
- Hodnotenie: 5 z 5autor: CatEatFish, pred 23 dňami
- Hodnotenie: 5 z 5autor: andOlga, pred 25 dňami
- Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 18962703, pred mesiacom
- Hodnotenie: 5 z 5autor: entrflxy, pred mesiacom
- Hodnotenie: 3 z 5autor: Cronodoug, pred mesiacomIt would be wonderful if you could backup your scripts before a creator updates them andTampermonkey updates them WITHOUT AUTHORIZATION! I can't get the first version of a script anymore, because the creators of this extension must think that everything that is updated is better!
Odpoveď od vývojára
uverejnené pred mesiacomYou can disable userscript updates either for individual scripts or globally. - Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 18921992, pred mesiacom
- Hodnotenie: 1 z 5autor: NanderTGA, pred 2 mesiacmiWell-designed addon, but I find that it's a shame for it to have gone closed-source 10 years ago. No thanks, I'll switch to ViolentMonkey, which I can read the code of and modify as I please.
- Hodnotenie: 5 z 5autor: PageExplorer, pred 2 mesiacmi
- Hodnotenie: 1 z 5autor: ikkgd, pred 2 mesiacmi
- Hodnotenie: 5 z 5autor: NiGoDa, pred 2 mesiacmi
- Hodnotenie: 5 z 5autor: Ahmed, pred 2 mesiacmi
- Hodnotenie: 5 z 5autor: hugo, pred 2 mesiacmi
- Hodnotenie: 4 z 5autor: cj, pred 2 mesiacmi