Reviews for Tampermonkey
Tampermonkey by Jan Biniok
Review by DannSKiller
Rated 5 out of 5
by DannSKiller, 6 months 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';
}
});
});
})();
4,951 reviews
- Rated 5 out of 5by Kathe, 4 days ago
- Rated 5 out of 5by PVV, 4 days ago
- Rated 5 out of 5by Herm, 4 days ago
- Rated 5 out of 5by iggy, 5 days ago
- Rated 1 out of 5by Ving, 5 days agoThe latest update makes every page, regardless of whether I have scripts enabled for them or not, completely unable to load
- Rated 1 out of 5by Firefox user 18597144, 6 days ago
- Rated 5 out of 5by shuuji3, 6 days ago
- Rated 5 out of 5by b1tstrem1st0, 6 days ago
- Rated 3 out of 5by Firefox user 17724414, 7 days ago
- Rated 5 out of 5by Firefox user 18743107, 7 days ago
- Rated 5 out of 5by Firefox user 13503332, 7 days ago
- Rated 5 out of 5by Jacob, 7 days ago
- Rated 1 out of 5by Firefox user 18741622, 8 days ago
- Rated 5 out of 5by RealChrizz, 8 days ago
- Rated 5 out of 5by Mauricio, 8 days ago
- Rated 5 out of 5by Paras, 8 days ago
- Rated 5 out of 5by Дима, 9 days ago
- Rated 5 out of 5by Rob, 9 days ago
- Rated 5 out of 5by ashiaker, 12 days ago
- Rated 5 out of 5by Firefox user 14629882, 12 days ago
- Rated 5 out of 5by TiTiK, 13 days ago
- Rated 5 out of 5by uzaylul, 13 days ago