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';
}
});
});
})();
5257 მიმოხილვა
- 1 შეფასება 5-დანმიმომხილველი cba012, 3 დღის წინHas 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. - 1 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 17501884, 6 დღის წინ数ヶ月前の更新の際、これまで作ってきたユーザースクリプトのデータが全て消滅しました。
あらゆるデータベースファイル、削除されたデータ等を探しても残っておらず、途方もない損失に嘆きましたが、少しずつ復旧させてきました。
そして今日、Firefoxを再起動した際、再び何かのトラブルで全てのユーザースクリプトが消滅しました。
もうこれ以上信頼を預けることはできません。ViolentMonkey等への移行を速やかに行います。 - 5 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 12859804, 7 დღის წინ
- 5 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 19828004, 12 დღის წინ
- 5 შეფასება 5-დანმიმომხილველი Rackmani, 14 დღის წინGreat to allow me to add a script to stop a copy paste block on a certain website where other extns were failing
- 1 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 14987899, 15 დღის წინApparently it is not only a mess, it's also bloated, closed source now, and has fucking Google Analytics.
- 5 შეფასება 5-დანმიმომხილველი Alex, 21 დღის წინ
- 5 შეფასება 5-დანმიმომხილველი Pabli, 22 დღის წინ
- 1 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 17710969, 23 დღის წინ
- 5 შეფასება 5-დანმიმომხილველი frank, 24 დღის წინ
- 5 შეფასება 5-დანმიმომხილველი Adigitalnomad123, თვის წინ
- 5 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 18759100, 2 თვის წინ
- 5 შეფასება 5-დანმიმომხილველი Julian, 2 თვის წინ
- 1 შეფასება 5-დანმიმომხილველი RenzoBenzo, 2 თვის წინClosed 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.
- 5 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 19743679, 2 თვის წინ
- 5 შეფასება 5-დანმიმომხილველი DrBeaker, 2 თვის წინ
- 5 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 10447271, 2 თვის წინ
- 5 შეფასება 5-დანმიმომხილველი Desire, 2 თვის წინ
- 5 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 19729411, 2 თვის წინ
- 5 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 19709889, 3 თვის წინReally efficient. This is my new obsession.
- 5 შეფასება 5-დანმიმომხილველი Breno, 3 თვის წინ
- 1 შეფასება 5-დანმიმომხილველი nutzboi, 3 თვის წინts updated and deleted all my installed userscripts 😩