Tampermonkey-ის მიმოხილვები
Tampermonkey ავტორი Jan Biniok
მიმომხილველი DannSKiller
5 შეფასება 5-დან
მიმომხილველი DannSKiller, წლის წინ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';
}
});
});
})();
5184 მიმოხილვა
- 5 შეფასება 5-დანმიმომხილველი Eux-0, 5 დღის წინ
- 5 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 19141684, 7 დღის წინ
- 5 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 19097682, 11 დღის წინ
- 1 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 19139412, 13 დღის წინTrash, non respect exclude!!! Load scripts before go away.. Trash firefox version.
Next problem is CSP and CORS.. this trash dont know bypass and inject scripts. WASTED MANAGER!! Better is own extenssion, but firefox is retard.. I preffer chrome with own extenssions. - 5 შეფასება 5-დანმიმომხილველი Md Oheduzzaman, 14 დღის წინ
- 5 შეფასება 5-დანმიმომხილველი Den, 16 დღის წინ
- 5 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 19129216, 16 დღის წინ
- 5 შეფასება 5-დანმიმომხილველი Дмитрий, 16 დღის წინ
- 4 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 13259122, 18 დღის წინНеплохое приложение. Но при наличие правильного скрипта может блокировать даже рекламы яндекса
- 5 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 19152751, 19 დღის წინ
- 5 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 18167220, 19 დღის წინ
- 5 შეფასება 5-დანმიმომხილველი frostbyte, 20 დღის წინ
- 5 შეფასება 5-დანმიმომხილველი Emon007, 21 დღის წინ
- 5 შეფასება 5-დანმიმომხილველი Stercy, 21 დღის წინ
- 5 შეფასება 5-დანმიმომხილველი Hari, 21 დღის წინ
- 4 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 19132265, 24 დღის წინ
- 5 შეფასება 5-დანმიმომხილველი A Tea Daze, 24 დღის წინ