Tampermonkey కోసం సమీక్షలు
Tampermonkey ద్వారా Jan Biniok
5,091 సమీక్షలు
- Rated 5 out of 5by Firefox వాడుకరి 18490300, 10 నెలలు క్రితం
- Rated 5 out of 5by 满穗, 10 నెలలు క్రితం
- Rated 5 out of 5by Kalinka74, 10 నెలలు క్రితం
- Rated 5 out of 5by Paulo Pereira, 10 నెలలు క్రితం
- Rated 5 out of 5by cnb, 10 నెలలు క్రితం
- Rated 5 out of 5by Sergey Novoseltsev, 10 నెలలు క్రితం
- Rated 5 out of 5by DannSKiller, 10 నెలలు క్రితం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';
}
});
});
})(); - Rated 5 out of 5by Kuyglitlbf, 10 నెలలు క్రితం
- Rated 5 out of 5by abdalla.rabie, 10 నెలలు క్రితం
- Rated 1 out of 5by Rock duende, 10 నెలలు క్రితం
- Rated 5 out of 5by SaplinG, 10 నెలలు క్రితం
- Rated 3 out of 5by Firefox వాడుకరి 18474980, 10 నెలలు క్రితం
- Rated 5 out of 5by BeetlePie, 10 నెలలు క్రితం
- Rated 5 out of 5by master1274, 10 నెలలు క్రితం
- Rated 5 out of 5by wurenji, 10 నెలలు క్రితం
- Rated 5 out of 5by daruo, 10 నెలలు క్రితం
- Rated 3 out of 5by Firefox వాడుకరి 17926026, 10 నెలలు క్రితంStops working randomly but works again after disabling/reenabling.
- Rated 5 out of 5by 111, 10 నెలలు క్రితం
- Rated 5 out of 5by 徐尔曼, 10 నెలలు క్రితం
- Rated 5 out of 5by abtye, 10 నెలలు క్రితం
- Rated 5 out of 5by Firefox వాడుకరి 17265896, 10 నెలలు క్రితం
- Rated 5 out of 5by yue546, 10 నెలలు క్రితం
- Rated 5 out of 5by Firefox వాడుకరి 17717340, ఒక సంవత్సరం క్రితం
- Rated 5 out of 5by KogaClaws, ఒక సంవత్సరం క్రితం