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';
}
});
});
})();
5192 მიმოხილვა
- 5 შეფასება 5-დანმიმომხილველი Yukari, 2 დღის წინ
- 5 შეფასება 5-დანმიმომხილველი ShaneV, 9 დღის წინ
- 5 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 19491455, 10 დღის წინ
- 4 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 18925489, 11 დღის წინThe editor is extremely laggy on Android.
- 5 შეფასება 5-დანმიმომხილველი CatEatFish, 15 დღის წინ
- 5 შეფასება 5-დანმიმომხილველი andOlga, 17 დღის წინ
- 5 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 18962703, 21 დღის წინ
- 5 შეფასება 5-დანმიმომხილველი entrflxy, 23 დღის წინ
- 3 შეფასება 5-დანმიმომხილველი Cronodoug, 24 დღის წინIt would be wonderful if you could backup your scripts before a creator updates them andTampermonkey updates them WITHOUT AUTHORIZATION! I can't get the first version of a script anymore, because the creators of this extension must think that everything that is updated is better!
შემმუშავებლის პასუხი
თარიღი 18 დღის წინYou can disable userscript updates either for individual scripts or globally. - 5 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 18921992, თვის წინ
- 5 შეფასება 5-დანმიმომხილველი PageExplorer, თვის წინ
- 1 შეფასება 5-დანმიმომხილველი ikkgd, 2 თვის წინ
- 5 შეფასება 5-დანმიმომხილველი NiGoDa, 2 თვის წინ
- 5 შეფასება 5-დანმიმომხილველი Ahmed, 2 თვის წინ
- 5 შეფასება 5-დანმიმომხილველი hugo, 2 თვის წინ
- 4 შეფასება 5-დანმიმომხილველი cj, 2 თვის წინ
- 5 შეფასება 5-დანმიმომხილველი bunnie, 2 თვის წინ
- 5 შეფასება 5-დანმიმომხილველი r00ph13, 2 თვის წინ
- 5 შეფასება 5-დანმიმომხილველი Eux-0, 2 თვის წინ
- 5 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 19141684, 2 თვის წინ