Отзывы на «Tampermonkey»
Tampermonkey от Jan Biniok
4 595 отзывов
- Оценено на 5 из 5от DannSKiller, 2 года назадAfter 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';
}
});
});
})(); - Оценено на 5 из 5от Kuyglitlbf, 2 года назад
- Оценено на 5 из 5от abdalla.rabie, 2 года назад
- Оценено на 5 из 5от SaplinG, 2 года назад
- Оценено на 5 из 5от BeetlePie, 2 года назад
- Оценено на 5 из 5от Пользователь Firefox 18473373, 2 года назадDoes exactly what it's supposed to do.
- Оценено на 5 из 5от master1274, 2 года назад
- Оценено на 5 из 5от wurenji, 2 года назад
- Оценено на 5 из 5от daruo, 2 года назад
- Оценено на 5 из 5от 111, 2 года назад
- Оценено на 5 из 5от 徐尔曼, 2 года назад
- Оценено на 5 из 5от abtye, 2 года назад
- Оценено на 5 из 5от Пользователь Firefox 17265896, 2 года назад
- Оценено на 5 из 5от yue546, 2 года назад
- Оценено на 5 из 5от Пользователь Firefox 17717340, 2 года назад
- Оценено на 5 из 5от KogaClaws, 2 года назад
- Оценено на 5 из 5от Пользователь Firefox 18448404, 2 года назад
- Оценено на 5 из 5от lan, 2 года назад
- Оценено на 5 из 5от 狮子丶, 2 года назад
- Оценено на 5 из 5от Пользователь Firefox 18433387, 2 года назад
- Оценено на 5 из 5от Jeseus.exe, 2 года назад
- Оценено на 5 из 5от Joshua, 2 года назад
- Оценено на 5 из 5от Пользователь Firefox 18347010, 2 года назад
- Оценено на 5 из 5от sajan, 2 года назад