-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
Parameters that cannot be removed from the Bilibili website #751
Comments
I can't sign up as it appears to require a phone number. |
possible. Parameters were removed first, then reappeared. For this situation, can we prevent some code in the script from running? |
Sorry for the delay. If you feel comfortable with that, you can email it to me at iam-py-test[@]protonmail[.]com |
There may be a time difference between the two of us. It is best when you and I are online at the same time, you send the QR code here, and then I scan it to log in. If you log in directly with account number and password, you also need to verify my mobile phone. |
Sorry for the delay. |
You can send me the login QR code as soon as you get online today so I'm still online. |
@shenzhiming88 here is the code (I think I did it right) It will expire fairly soon though |
Oh sorry, I just saw that. Please send it again. |
Sorry for the delay |
Very strange, I scan this QR code and there is no response |
It timed out. |
Looks like it worked. Thanks |
I see it. Investigating... |
OK, I guess some script causes this. |
Off-topic, but does |
This parameter doesn't seem to break anything, at least on my computer. |
Odd. Maybe it has something to do with me using Firefox and you using Edge. Not relevant to this issue, just noticed that. |
However, another script that removes the extra parameters of the web page also includes this parameter, and it seems that no problem report has been seen. |
I think I have isolated the script responsible, and that completely removing replaceState is the best solution. bilibili.com##+js(set,history.replaceState,noopFunc) It's not a great rule, but I don't think it breaks anything |
This rule can indeed remove vd_source, but since uBlock cannot remove the parameters of the video link opened from the recommendation bar on the right, I used a script using the replaceState method. This rule will cause the script to fail. I don't think there is a good way to handle this. |
Ok, thanks. |
Can you (Mostly shenzhiming) post an instance of what a URL with |
This parameter is related to the user's personal information, so I found a example on the Internet: |
Hmm… seems like uBlock Origin successfully removes Does the problem remain if you use these entries in User Filters (For almost every non-inline script I could find on the page that didn't break something)?
|
Still exists. This seems difficult to deal with. |
This is caused by the TracereplaceState blob:https://www.bilibili.com/744c15ef-0e23-4c0e-9f6a-7c04d75fdde2:5 (this line can be ignored)ht https://s1.hdslb.com/bfs/static/jinkela/long/js/sentry/sentry-5.7.1.min.js:2 vf https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 mf https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 replace https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 transitionTo https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 confirmTransition https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 r https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 r https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 f https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 f https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 r https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 gf https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 confirmTransition https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 r https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 r https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 f https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 yf https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 f https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 r https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 r https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 gf https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 confirmTransition https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 transitionTo https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 replace https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 replace https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 e https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 p https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:190 O https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:190 x https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:190 n https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:1 s https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:1 (Async: promise callback) n https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:1 s https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:1 exports https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:1 exports https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:1 checkLoginInfoForHeaderV3 https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 e https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 p https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:190 O https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:190 x https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:190 n https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:1 s https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:1 exports https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:1 exports https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:1 init https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 e https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 p https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:190 O https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:190 x https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:190 n https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:1 s https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:1 (Async: promise callback) n https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:1 s https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:1 exports https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:1 exports https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:1 mounted https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 Bn https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:7 an https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:7 insert https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:7 S https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:7 ga https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:7 _update https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:7 r https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:7 get https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:7 t https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:7 mount https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:7 $mount https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:7 $mount https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:7 https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 onReady https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 onReady https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:197 n https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:1 https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:180 n https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:1 https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:1 https://s1.hdslb.com/bfs/static/jinkela/video/stardust-video.366216d83af1f0d17e2505f09cab46978fafc9c1.js:1 |
I tried |
In ClearURLs or uBlock Origin? |
I have made a (kind-of poorly made) extension which should fix this issue. It's barely been tested, and isn't great code, and I am not extremely happy asking people to install a separate extension just for this (maybe there's still a way to prevent this from happening, or something a custom uBo scriptlet can do?), so buyer beware. Also needs to be loaded as a dev mode extension in FF/Chrome |
ubo |
This is not supported in uBo. |
@shenzhiming88 can you try adding this to your user resources location in uBo, and then add this to "My filters": bilibili.com##+js(replace-state-clean,vd_source) It's still not pretty (I would have preferred a solution which works in default uBo & in AdGuard), but it's far better than the extension. |
Thanks but not work at all. |
Can you go to the uBlock Origin settings (I assume you are using uBlock Origin, correct me if I am wrong), enable advanced user settings, click the gear option, and set userresourceslocation to https://raw.githubusercontent.com/iam-py-test/bilibili-url-clean/main/scriptlet.js |
this one not work |
Can you also install https://raw.githubusercontent.com/DandelionSprout/adfilt/master/LegitimateURLShortener.txt as a filterlist |
Hi thanks... I will consider (for I can just use a script to close it in tampermonkey, instead of couples install...) |
Sadly, no. |
Yes, this rule does not work. |
Sorry, my instructions weren't very clear. You need to check "I am an advanced user" -> click on the gear icon -> set userResourcesLocation to https://raw.githubusercontent.com/iam-py-test/bilibili-url-clean/main/scriptlet.js |
Was any sort of consensus on a fix ever reached? If not, it'd probably sadly be time to declare it a closed case. |
As far as I am aware, the only solution was a custom scriptlet. But if someone smarter wants to take a crack it, there may be another way. |
I'm sorry I've been missing this message before. I just tried doing this, but the extra parameters still exist unless the webpage is refreshed. |
Comments will remain open indefinitely, but I feel the time has arrived for me to get the number of open issues on the top bar of the repo to 0 again. |
my solution: I installed mouse gesture and call a js to detect/modify/remove nonnecessary params |
Describe the problem below this line as meticulously and detailed as possible (incl. pagelinks if any)
https://www.bilibili.com/video/BV1g24y1h7zc
If the user logs in and opens any video page on Bilibili, then a parameter called
vd_source
will be added. Although I added the rule||bilibili.com^$removeparam=vd_source
in Actually Legitimate URL Shortener Tool, this parameter still cannot be removed. I'm guessing that some script on the site is at work, so someone who knows about scripting needs to be able to deal with this.Add screenshots below if needed
No response
Add a screenshot of the extension's logger
No response
Which adblocker(s) did you use when testing this?
uBlock Origin
Adblocker version(s)
No response
Which filterlists did you use? Failing to tell this will temporarily close the report until it has been told.
Actually Legitimate URL Shortener Tool
Which browser(s) did you use when testing this?
Microsoft Edge (Manifest V2)
Browser version(s)
No response
Which OS(s) did you use when testing this?
No response
OS version(s)
No response
The text was updated successfully, but these errors were encountered: