Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

userscirpt: @match works excessively #1650

Closed
Birbber opened this issue Jun 20, 2022 · 0 comments
Closed

userscirpt: @match works excessively #1650

Birbber opened this issue Jun 20, 2022 · 0 comments

Comments

@Birbber
Copy link

Birbber commented Jun 20, 2022

@kairi003 commented on Wed Jun 01 2022

Issue Details

Without wildcards, @match as userscript attributes should match the specified pathname exactly, but it will be a forward match.

  • AdGuard version:
    • v3.6.8 (46)
  • Filtering mode:
    • Local VPN
  • Device:
    • Galaxy s8 (SCV36)
  • Operating system and version:
    • Android 9
  • Root access:
    • No

Expected Behavior

The following userscript changes the background color of https://kb.adguard.com/en only.
In fact, it works that way in Tampermonkey.

// ==UserScript==
// @name         test
// @match        https://kb.adguard.com/en
// ==/UserScript==

document.body.style='background-color:lightcyan';

Actual Behavior

It would also apply to paths that forward match the URL, e.g., https://kb.adguard.com/en/general/adguard-ad-filters.
This is the expected behavior for https://kb.adguard.com/en*.

Screenshots

Screenshot:

Screenshot_20220601-163607_Chrome


@Birbber commented on Mon Jun 20 2022

Issue moved to AdguardTeam/AdguardFilters #122337 via ZenHub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants