Recenzie doplnku Tampermonkey
Tampermonkey Autor: Jan Biniok
Recenzia od používateľa DannSKiller
Hodnotenie: 5 z 5
autor: DannSKiller, pred 7 mesiacmiAfter 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';
}
});
});
})();
4 973 recenzií
- Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 13748100, pred 6 hodinamiexcelencia a toda prueba...ÉXITOS!!!!
- Hodnotenie: 5 z 5autor: Nardultian III, pred 16 hodinamiI'm new to Linux, like days new... I know nothing about scripting or coding 'm like a ****** child when it comes to computer stuff. But, Tampermonkey makes it so easy. thx guys
- Hodnotenie: 5 z 5autor: anelly, pred dňom
- Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 18753032, pred 2 dňami
- Hodnotenie: 5 z 5autor: eric.delcroix, pred 2 dňami
- Hodnotenie: 4 z 5autor: ginocic, pred 2 dňami
- Hodnotenie: 5 z 5autor: Furfrou, pred 2 dňamiWorks very well, lets me use very helpful scripts. Very good.
- Hodnotenie: 5 z 5autor: Yosef-Cathal, pred 3 dňami
- Hodnotenie: 4 z 5autor: Používateľ Firefoxu - 18624661, pred 4 dňami
- Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 17847549, pred 9 dňami
- Hodnotenie: 5 z 5autor: stlee42, pred 9 dňami
- Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 18754798, pred 10 dňami
- Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 18762783, pred 11 dňami
- Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 18451223, pred 12 dňami
- Hodnotenie: 5 z 5autor: sgtgurvan, pred 12 dňami
- Hodnotenie: 5 z 5autor: WinRAR, pred 12 dňami
- Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 14550688, pred 13 dňami
- Hodnotenie: 5 z 5autor: Zyz725, pred 15 dňami
- Hodnotenie: 5 z 5autor: Esi Zaghi, pred 15 dňamiI am very grateful to the creator of this plugin. It has helped me in many ways.
- Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 18010422, pred 16 dňami
- Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 15774362, pred 16 dňami
- Hodnotenie: 5 z 5autor: Kathe, pred 21 dňami
- Hodnotenie: 5 z 5autor: PVV, pred 21 dňami
- Hodnotenie: 5 z 5autor: Herm, pred 21 dňami