Reviews for Tampermonkey
Tampermonkey by Jan Biniok
Review by DannSKiller
Rated 5 out of 5
by DannSKiller, 2 years agoAfter 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,250 reviews
- Rated 5 out of 5by Alex, 4 days ago
- Rated 5 out of 5by Pabli, 5 days ago
- Rated 1 out of 5by Firefox user 17710969, 6 days ago
- Rated 5 out of 5by frank, 7 days ago
- Rated 5 out of 5by tink., 13 days ago
- Rated 5 out of 5by Adigitalnomad123, 18 days ago
- Rated 5 out of 5by Firefox user 18759100, a month ago
- Rated 5 out of 5by Julian, a month ago
- Rated 1 out of 5by RenzoBenzo, a month agoClosed 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.
- Rated 5 out of 5by Firefox user 19743679, a month ago
- Rated 5 out of 5by DrBeaker, 2 months ago
- Rated 5 out of 5by Firefox user 10447271, 2 months ago
- Rated 5 out of 5by Desire, 2 months ago
- Rated 5 out of 5by Firefox user 19729411, 2 months ago
- Rated 5 out of 5by Breno, 2 months ago
- Rated 1 out of 5by keenoy, 2 months ago
- Rated 5 out of 5by Eti, 3 months ago
- Rated 5 out of 5by left2crazy, 3 months ago
- Rated 5 out of 5by Vormix_Sv, 3 months ago
- Rated 5 out of 5by melodic mustox, 3 months agoThanks to Tampermonkey, I can do a lot of things from my browser. I thanks with a donation, which I will repeat next month again for sure.
- Rated 4 out of 5by Carlos Páez, 3 months ago
- Rated 5 out of 5by Firefox user 13035229, 3 months ago