Tampermonkey에 대한 리뷰
Tampermonkey 제작자: Jan Biniok
DannSKiller 님의 리뷰
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';
}
});
});
})();
// ==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,321개
- 5점 만점에 5점Firefox 사용자 20176142 님, 10일 전
- 5점 만점에 5점Asmacabius 님, 11일 전
- 5점 만점에 5점Firefox 사용자 20170727 님, 12일 전
- 5점 만점에 5점Firefox 사용자 20168663 님, 13일 전
- 5점 만점에 5점Velo Computing Technologies 님, 18일 전
- 5점 만점에 5점Firefox 사용자 20158411 님, 18일 전
- 5점 만점에 5점退出党团队远离中共邪教 님, 20일 전
- 5점 만점에 5점Firefox 사용자 18598990 님, 한 달 전
- 5점 만점에 5점Firefox 사용자 13125732 님, 한 달 전
- 5점 만점에 5점CaxapoZa3BY 님, 한 달 전
- 5점 만점에 5점Firefox 사용자 18923488 님, 한 달 전
- 5점 만점에 5점Firefox 사용자 18690608 님, 한 달 전
- 5점 만점에 5점Firefox 사용자 20098992 님, 한 달 전
- 5점 만점에 5점Firefox 사용자 16887159 님, 2달 전
- 5점 만점에 5점Firefox 사용자 20093873 님, 2달 전