Reviews for Tampermonkey
Tampermonkey by Jan Biniok
Review by DannSKiller
Rated 5 out of 5
by DannSKiller, a year 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,226 reviews
- Rated 5 out of 5by Antonio Johns, 4 days ago
- Rated 5 out of 5by Yuri, 6 days ago
- Rated 5 out of 5by Saphir, 6 days ago
- Rated 5 out of 5by Marlon Ruiz, 8 days ago
- Rated 5 out of 5by SergioDT, 19 days agoEssential. I can't imagine the internet without this extension.
- Rated 5 out of 5by biki, 22 days ago
- Rated 5 out of 5by Fabax, 25 days agoUserscript manager of choice since greasemonkey (sadly) doesn't cut it anymore with newer scripts.
- Rated 5 out of 5by Firefox user 19602270, a month ago
- Rated 5 out of 5by Firefox user 17775866, a month ago
- Rated 5 out of 5by Firefox user 14835773, a month ago
- Rated 5 out of 5by ace, a month ago
- Rated 5 out of 5by Firefox user 18303502, a month ago
- Rated 5 out of 5by dRAZY99, a month ago
- Rated 5 out of 5by Th4t, a month ago
- Rated 5 out of 5by Lazy Cat, a month ago
- Rated 5 out of 5by zzz_132, a month ago
- Rated 1 out of 5by molitar, a month agoLatest release has broken Firefox. When starting Firefox it no longer allows any network connectivity. Unable to even open google.com. Totally and utterly broke in latest update. When it does open it takes over 5 minutes sometimes before I can browse.
Developer response
posted a month agoI'm not aware of any issues. Please report your issue at http://tmnk.net/bug
Also you can always rollback to the previous version here: https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/versions/ - Rated 5 out of 5by jeriko, 2 months ago
- Rated 5 out of 5by Firefox user 19560385, 2 months ago
- Rated 5 out of 5by weyylh, 2 months ago
- Rated 5 out of 5by Seän "frostbyte" Shepherd, 2 months ago