General URL Cleaner

Cleans URL's from various popular sites.

< 腳本General URL Cleaner的回應

提問/評論

§
發表於:2016-05-18

Script doesn't work correctly with links in Hangouts / breaks them.

here an example:

original:
https://www.google.com/url?q=https%3A%2F%2Fgit.lede-project.org%2F&sa=D&sntz=1&usg=AFQjCNG6JdQmlcb96JjBSpGmI6g8fojIbw

cleaned:
https://git.lede-project.org/&sa=D&sntz=1&usg=AFQjCNG6JdQmlcb96JjBSpGmI6g8fojIbw

adding the "sa" to the "cleanGoogleRedirect" function fixes it.

return decodeURIComponent(oldurl.replace(googleRedirect,'').replace(/\&(rct|psig|ei|bvm|sa)\=.*$/g,''));

Knowbody作者
§
發表於:2016-05-19

Added this fix, along with a bunch of other improvements.

發表回覆

登入以回復

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址