סקירות עבור Tampermonkey
Tampermonkey Jan Biniok מאת
סקירה מאת DannSKiller
דירוג 5 מתוך 5
מאת DannSKiller, לפני שנתיים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';
}
});
});
})();
// ==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,286 דירוגים
- דירוג 5 מתוך 5מאת משתמש Firefox 13135296, לפני 3 ימים
- דירוג 5 מתוך 5מאת משתמש Firefox 20015873, לפני 4 ימים
- דירוג 5 מתוך 5מאת משתמש Firefox 14604126, לפני 5 ימים
- דירוג 5 מתוך 5מאת SEBAS204, לפני 8 ימים
- דירוג 5 מתוך 5מאת Nikitamce, לפני 13 ימיםРаботает в фаерфокс намного лучше с скриптами чем виолет манки. Проверил на скриптах стима. Так что всем советую
- דירוג 5 מתוך 5מאת Mobina, לפני 17 ימים
- דירוג 5 מתוך 5מאת 靜瑟之風, לפני 20 ימים
- דירוג 5 מתוך 5מאת Konrad Papala, לפני 20 ימים
- דירוג 5 מתוך 5מאת Человек найух а не Фаерфокс user 19966279, לפני 24 ימיםУстановил его и моге переводить видео без ЯГовно
- דירוג 5 מתוך 5מאת ok, לפני 24 ימים
- דירוג 4 מתוך 5מאת משתמש Firefox 16410709, לפני חודש
- דירוג 5 מתוך 5מאת משתמש Firefox 19942049, לפני חודשיים
- דירוג 5 מתוך 5מאת 逍遥子, לפני חודשיים
- דירוג 5 מתוך 5מאת משתמש Firefox 19819254, לפני חודשיים
- דירוג 5 מתוך 5מאת Gofgo, לפני חודשיים