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,282 reviews
- Rated 5 out of 5by SEBAS204, 2 days ago
- Rated 5 out of 5by Nikitamce, 8 days agoРаботает в фаерфокс намного лучше с скриптами чем виолет манки. Проверил на скриптах стима. Так что всем советую
- Rated 5 out of 5by Mobina, 11 days ago
- Rated 5 out of 5by 靜瑟之風, 15 days ago
- Rated 5 out of 5by Konrad Papala, 15 days ago
- Rated 5 out of 5by Человек найух а не Фаерфокс user 19966279, 18 days agoУстановил его и моге переводить видео без ЯГовно
- Rated 5 out of 5by ok, 18 days ago
- Rated 4 out of 5by Firefox user 16410709, a month ago
- Rated 5 out of 5by avtxr, a month ago
- Rated 5 out of 5by 终极虫, a month ago
- Rated 5 out of 5by Zenarchy, a month ago
- Rated 5 out of 5by Leo, a month ago
- Rated 5 out of 5by keinen, a month ago
- Rated 5 out of 5by Firefox user 19942049, a month ago
- Rated 5 out of 5by 逍遥子, a month ago
- Rated 5 out of 5by Firefox user 19819254, a month ago
- Rated 5 out of 5by Gofgo, 2 months ago
- Rated 5 out of 5by Rabid, 2 months ago
- Rated 5 out of 5by Тима, 2 months ago
- Rated 5 out of 5by Robert P, 2 months ago
- Rated 5 out of 5by Mark Andrew Gerads, 2 months ago