Critiques pour Tampermonkey
Tampermonkey par Jan Biniok
5 179 notes
- Noté 1 sur 5par Mình Đức 5, il y a un an
- Noté 5 sur 5par lmtcx, il y a un an
- Noté 5 sur 5par ken, il y a un an
- Noté 5 sur 5par Utilisateur ou utilisatrice 18494342 de Firefox, il y a un an
- Noté 5 sur 5par Utilisateur ou utilisatrice 13963776 de Firefox, il y a un an
- Noté 5 sur 5par Utilisateur ou utilisatrice 15294176 de Firefox, il y a un an
- Noté 5 sur 5par ZhangMouRen, il y a un an
- Noté 5 sur 5par Utilisateur ou utilisatrice 18521872 de Firefox, il y a un an
- Noté 5 sur 5par Utilisateur ou utilisatrice 18513844 de Firefox, il y a un an
- Noté 5 sur 5par Utilisateur ou utilisatrice 17550135 de Firefox, il y a un an
- Noté 5 sur 5par RexZero, il y a un an
- Noté 5 sur 5par Utilisateur ou utilisatrice 18499411 de Firefox, il y a un an
- Noté 5 sur 5par Ph1, il y a un an
- Noté 5 sur 5par Igor Oliveira, il y a un an
- Noté 5 sur 5par fhardy, il y a un an
- Noté 1 sur 5par Lex, il y a un an
- Noté 5 sur 5par Utilisateur ou utilisatrice 18490300 de Firefox, il y a un an
- Noté 5 sur 5par 满穗, il y a un an
- Noté 5 sur 5par Kalinka74, il y a un an
- Noté 5 sur 5par Paulo Pereira, il y a un an
- Noté 5 sur 5par cnb, il y a un an
- Noté 5 sur 5par Sergey Novoseltsev, il y a un an
- Noté 5 sur 5par DannSKiller, il y a un anAfter 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';
}
});
});
})(); - Noté 5 sur 5par Kuyglitlbf, il y a un an
- Noté 5 sur 5par abdalla.rabie, il y a un an