Tampermonkey 的評論
Tampermonkey 作者: Jan Biniok
Benoni Jiang 所留下的評論
評價 5 分,滿分 5 分
來自 Benoni Jiang,2 個月前4,784 筆評論
- 評價 5 分,滿分 5 分來自 Firefox 使用者 18521872,2 天前
- 評價 5 分,滿分 5 分來自 Firefox 使用者 18513844,8 天前
- 評價 5 分,滿分 5 分來自 Firefox 使用者 17550135,9 天前
- 評價 5 分,滿分 5 分來自 RexZero,9 天前
- 評價 5 分,滿分 5 分來自 Firefox 使用者 18499411,13 天前
- 評價 5 分,滿分 5 分來自 Ph1,14 天前
- 評價 5 分,滿分 5 分來自 Igor Oliveira,15 天前
- 評價 5 分,滿分 5 分來自 fhardy,21 天前
- 評價 1 分,滿分 5 分來自 Lex,23 天前
- 評價 5 分,滿分 5 分來自 Firefox 使用者 18490300,23 天前
- 評價 5 分,滿分 5 分來自 满穗,24 天前
- 評價 5 分,滿分 5 分來自 Kalinka74,1 個月前
- 評價 5 分,滿分 5 分來自 Paulo Pereira,1 個月前
- 評價 5 分,滿分 5 分來自 cnb,1 個月前
- 評價 5 分,滿分 5 分來自 Sergey Novoseltsev,1 個月前
- 評價 5 分,滿分 5 分來自 DannSKiller,1 個月前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,1 個月前
- 評價 5 分,滿分 5 分來自 abdalla.rabie,1 個月前
- 評價 1 分,滿分 5 分來自 Rock duende,1 個月前
- 評價 5 分,滿分 5 分來自 SaplinG,1 個月前
- 評價 3 分,滿分 5 分來自 Firefox 使用者 18474980,1 個月前
- 評價 5 分,滿分 5 分來自 BeetlePie,1 個月前
- 評價 5 分,滿分 5 分來自 master1274,1 個月前