Đánh giá cho Tampermonkey
Tampermonkey bởi Jan Biniok
Đánh giá bởi DannSKiller
Xếp hạng 5 trong số 5
bởi DannSKiller, 2 năm trướcAfter 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.257 đánh giá
- Xếp hạng 1 trong số 5bởi cba012, 4 ngày trướcHas hidden Google Analytics and is close-source - no thanks. An extension of this privilege level needs to be fully transparent. It also begs for donations at an abnormally high rate.
Use ViolentMonkey instead. - Xếp hạng 1 trong số 5bởi Người dùng Firefox 17501884, 7 ngày trước数ヶ月前の更新の際、これまで作ってきたユーザースクリプトのデータが全て消滅しました。
あらゆるデータベースファイル、削除されたデータ等を探しても残っておらず、途方もない損失に嘆きましたが、少しずつ復旧させてきました。
そして今日、Firefoxを再起動した際、再び何かのトラブルで全てのユーザースクリプトが消滅しました。
もうこれ以上信頼を預けることはできません。ViolentMonkey等への移行を速やかに行います。 - Xếp hạng 5 trong số 5bởi Người dùng Firefox 12859804, 8 ngày trước
- Xếp hạng 5 trong số 5bởi Người dùng Firefox 19828004, 13 ngày trước
- Xếp hạng 5 trong số 5bởi Rackmani, 15 ngày trướcGreat to allow me to add a script to stop a copy paste block on a certain website where other extns were failing
- Xếp hạng 1 trong số 5bởi Người dùng Firefox 14987899, 16 ngày trướcApparently it is not only a mess, it's also bloated, closed source now, and has fucking Google Analytics.
- Xếp hạng 5 trong số 5bởi Alex, 22 ngày trước
- Xếp hạng 5 trong số 5bởi Pabli, 23 ngày trước
- Xếp hạng 1 trong số 5bởi Người dùng Firefox 17710969, 24 ngày trước
- Xếp hạng 5 trong số 5bởi frank, 25 ngày trước
- Xếp hạng 5 trong số 5bởi tink., một tháng trước
- Xếp hạng 5 trong số 5bởi Adigitalnomad123, một tháng trước
- Xếp hạng 5 trong số 5bởi Yanyi, một tháng trướcvery good for scripts better than violent monkey on edge
- Xếp hạng 5 trong số 5bởi Người dùng Firefox 18759100, 2 tháng trước
- Xếp hạng 5 trong số 5bởi Julian, 2 tháng trước
- Xếp hạng 1 trong số 5bởi RenzoBenzo, 2 tháng trướcClosed source, bloated, uses google analytics, and did I mention it's closed source and uses google analytics. I would suggest users not use this extension, and use FireMonkey or ViolentMonkey instead.
- Xếp hạng 5 trong số 5bởi Người dùng Firefox 19743679, 2 tháng trước
- Xếp hạng 5 trong số 5bởi DrBeaker, 2 tháng trước
- Xếp hạng 5 trong số 5bởi Người dùng Firefox 10447271, 2 tháng trước
- Xếp hạng 5 trong số 5bởi Desire, 2 tháng trước
- Xếp hạng 5 trong số 5bởi Người dùng Firefox 19729411, 2 tháng trước
- Xếp hạng 5 trong số 5bởi Người dùng Firefox 19709889, 3 tháng trướcReally efficient. This is my new obsession.
- Xếp hạng 5 trong số 5bởi Breno, 3 tháng trước
- Xếp hạng 1 trong số 5bởi nutzboi, 3 tháng trướcts updated and deleted all my installed userscripts 😩