iorate / ublacklist

Blocks specific sites from appearing in Google search results
https://iorate.github.io/ublacklist/
MIT License
5.71k stars 299 forks source link

Must be something simple... /redirects/ isn't working #408

Closed realAzazello closed 9 months ago

realAzazello commented 9 months ago

Expected Behavior

I must be missing something so simple in the regex.

I'ld like to block results with /redirects/ in the path e.g. :

https://docs.example.com/routing/redirects/

Anywhere in the path, middle or end.

As test, have only these rules:

title/Redirecting/
# /redirects/
*://*/redirects/*

Actual Behavior

Doing a gsearch: https://www.google.com/search?q=%22redirects%22

Still shows results.

Steps to Reproduce the Problem

  1. Disabled uBlock
  2. Disabled Tampermonkey - no userscripts running
  3. Too many extensions to disable. (If needed later, I'll try on a fresh install)
  4. Tried using solution from https://github.com/iorate/ublacklist/issues/101#issuecomment-884741826: *://*/redirects/* -- doesn't work in my setup
  5. Tried /redirects/ -- never worked, even with earlier Firefox versions

Specifications

iorate commented 9 months ago

/redirects/ (or /\/redirects\//) should work.

Make sure that the URL you are trying to block really contains redirects (not redirect or Redirects).

realAzazello commented 9 months ago

@iorate, I wish you hadn't closed this before getting my feedback.

Make sure that the URL you are trying to block really contains redirects (not redirect or Redirects).

I already wrote that I confirmed that:

Doing a gsearch: https://www.google.com/search?q=%22redirects%22

5. Tried `/redirects/` -- never worked, even with earlier Firefox versions

In fact /redirects/ is what triggered my investigation--months ago--as I knew it never worked on my setup.

Eureka! /\/redirects\// works... image

But also triggers on

https://experienceleague.adobe.com/docs/analytics/technotes/redirects.html?lang=en
https://www.searchenginejournal.com/redirects-beginner-guide/436231/
https://bluehost-cdn.com/hosting/help/redirects
https://www.geoedge.com/auto-redirects/

I'll live with it, but I wish to have the exact /redirects/, hard-match on both /