-
Notifications
You must be signed in to change notification settings - Fork 81
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
uritransform
not work if the url contains #
#3084
Comments
I suppose the behavior could be extended to mind the |
@gorhill Example:
|
I suppose a scriptlet could do the job for the hash component, since this information never travels to the server, it's just used client-side. |
Maybe create a reverse version Example: |
I think you can use Or maybe add a new modifier for URL hash, like |
#3084 (comment) - I don't think so, due privilege system? RU AdList then need addition https://github.com/gorhill/uBlock/wiki/Advanced-settings#trustedlistprefixes If will be rejected addition to uBo uAssets Privacy list.
|
@krystian3w , Do you mean that
|
@MkQtS They mean |
That's right, I was looking for an opportunity to use those rules that would work from RU AdList, RU AdList: BitBlock, RU AdList: Counters. |
Prerequisites
I tried to reproduce the issue when...
Description
I want to transfer
https://jandan.net/top-ooxx#comment-5611920
intohttps://jandan.net/t/5611920
I have set 1p-filters as trusted, and added this rule:
but it does not work for
https://jandan.net/top-ooxx#comment-5611920
I tried to change it to
||jandan.net/top$uritransform=/top-\w+-comment-/t\//
(#
to-
) and openhttps://jandan.net/top-ooxx-comment-5611920
(an invalid url), then it works.The problem seems to be related to
#
. It would be nice ifuritransform
matches URL hash.A specific URL where the issue occurs.
https://jandan.net/top-ooxx#comment-5611920
Steps to Reproduce
||jandan.net/top$uritransform=/top-\w+#comment-/t\//
https://jandan.net/top-ooxx#comment-5611920
Expected behavior
The url turns into
https://jandan.net/t/5611920
Actual behavior
The url remains
https://jandan.net/top-ooxx#comment-5611920
uBO version
1.55.0
Browser name and version
Chrome 120.0
Operating System and version
Windows 11
The text was updated successfully, but these errors were encountered: