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

功能请求:增加网址参数清理 #53

Open
Geeyun-JY3 opened this issue Dec 29, 2020 · 5 comments
Open

功能请求:增加网址参数清理 #53

Geeyun-JY3 opened this issue Dec 29, 2020 · 5 comments

Comments

@Geeyun-JY3
Copy link

Geeyun-JY3 commented Dec 29, 2020

增加网址参数清理功能,自动删除链接中的多余跟踪参数,类似于 Bilibili Evolved 的这个功能。源码位于:https://github.com/the1812/Bilibili-Evolved/blob/master/src/utils/url-params-clean.ts

@tiansh
Copy link
Owner

tiansh commented Dec 30, 2020

具体来说是清理哪些链接的哪些参数?

@Geeyun-JY3
Copy link
Author

具体来说是清理哪些链接的哪些参数?

挺多的呀,比如首页打开微博、个人主页、文章页,通过顶栏搜索的搜索结果页,视频页,都会有一些跟踪参数(V7 不知道

@tiansh
Copy link
Owner

tiansh commented Dec 30, 2020

所以是哪些网址的哪些参数?

@Geeyun-JY3
Copy link
Author

额我举例子吧。

  • 具体某条微博:某条微博链接最短应该如 https://weibo.com/5601033111/JxWdVlY65(虽说通过该链接跳转后也会多个 ?type=comment 参数),但如果在个人主页点击某条微博的时间戳打开的链接是 https://weibo.com/5601033111/JxWdVlY65?from=page_1005055601033111_profile&wvr=6&mod=weibotime,后面的 ?from=page_1005055601033111_profile&wvr=6&mod=weibotime 就是多余的参数;搜索结果页打开的是 https://weibo.com/5601033111/JxWdVlY65?refer_flag=1001030103_
  • 个人主页:搜索结果页打开个人主页如 https://weibo.com/yawfscript?refer_flag=1001030103_,后面的 ?refer_flag=1001030103_
  • 搜索结果页:通过顶栏搜索跳转的搜索结果页如 https://s.weibo.com/weibo/test?topnav=1&wvr=6&b=1,后面的 ?topnav=1&wvr=6&b=1 就是多余的参数;
  • 视频页:现在在 V6 打开某个视频页跳转后也会多个 ?from=old_pc_videoshow

以上都是在 V6 测试的结果

@Geeyun-JY3
Copy link
Author

才发现反馈错地了……

用的是 Userscript。
为啥脚本里的关于指向的是这个 repo

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

No branches or pull requests

2 participants