Greasy Fork

来自缓存

Greasy Fork is available in English.

Google Hit Hider by Domain (Search Filter / Block Sites)

Block unwanted sites from your Google, DuckDuckGo, Startpage.com, Bing and Yahoo search results. v2.3.8 2026-02-08

< 脚本 Google Hit Hider by Domain (Search Filter / Block Sites) 的反馈

提问 / 留言

§
发布于:2026-01-05
编辑于:2026-01-05

Is it possible to block a query parameter or path within a specific domain?

I've been using this for years now and it worked for me, saving myself from annoying SEO spams and garbage machine translated results, but I wonder if this can be used to block something like example.com/index ?xx=yy or example.com/example/zzz? This is because of these two things that have annoyed me for some time now, but there aren't any userscripts or extensions capable of doing so without modifying the search query:

  1. Reddit have been intentionally indexing stuff on there that is a machine-translated version of a post (with ?tl=xx attached to the URL, where xx is the language code), because they exploited the fact that Google would prioritize the user's native language based on their location or setting.
  2. Many WordPress websites have been hacked and did a spam injection, in which a website of something usually unrelated would get indexed as a fake product listing and images with a single lettered query parameter and a random number (such as example.com/?i=1234567890), or sometimes makes a path that otherwise would lead to a 404 (such as example.com/product/1234567). That link, if clicked directly from the result, will take the user to a fake online shopping website (usually ending with .click), and obviously would scam people that don't know about it.
§
发布于:2026-02-08

Currently, the script is entirely built around the host name listed for the site in the result. I probably won't find time to add path checking to it. When this comes up on Reddit, people nearly always say that you can use a uBlock Origin rule to remove things from pages so you don't need specialized tools. I have no idea how to build those rules but you could try https://www.reddit.com/r/uBlockOrigin/ for assistance.

§
发布于:2026-02-09

Is it possible to block a query parameter or path within a specific domain? ... something like example.com/index?xx=yy

@logoffon, there are plenty of addons (e.g. good ole favorite 'ClearURLs'; but there are others) and even userscripts that could do so; but the preferred method is a content blocker (eg uBlock) together with two subscription lists: Legitimate URL Shortener and 'AdGuard URL Tracking Protection' (already in uBlock, but you can get it separately elsewhere).

These lists 'do the work for you' by removing the headache parameters automatically, wherever and however they appear; but if you want to manage the filters directly, put customized removeparam filters in the 'My Filters' section of whatever content blocker you're using. (If you use this method, you can still search thru both lists to see if they already have filters for parameters you want to block; then copy/paste those to your custom list.)


...block something like ... example.com/example/zzz

These type you have to use an addon for the most-effective method, as these can capture the url and rewrite it before the page loads (userscripts cannot).

Although many of us still use Redirector on Firefox, there certainly plenty of actively-supported addons out there that allow sophisticated check&rewrite, and have probably already discovered the new tricks certain sites slip into their links.

发布留言

登录以发布留言。