Cleans URL's from various popular sites.
< Feedback on General URL Cleaner
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=AFQjCNG6JdQmlcb96JjBSpGmI6g8fojIbwcleaned:https://git.lede-project.org/&sa=D&sntz=1&usg=AFQjCNG6JdQmlcb96JjBSpGmI6g8fojIbwadding the "sa" to the "cleanGoogleRedirect" function fixes it.return decodeURIComponent(oldurl.replace(googleRedirect,'').replace(/\&(rct|psig|ei|bvm|sa)\=.*$/g,''));
https://www.google.com/url?q=https%3A%2F%2Fgit.lede-project.org%2F&sa=D&sntz=1&usg=AFQjCNG6JdQmlcb96JjBSpGmI6g8fojIbw
https://git.lede-project.org/&sa=D&sntz=1&usg=AFQjCNG6JdQmlcb96JjBSpGmI6g8fojIbw
return decodeURIComponent(oldurl.replace(googleRedirect,'').replace(/\&(rct|psig|ei|bvm|sa)\=.*$/g,''));
Added this fix, along with a bunch of other improvements.
Yanıt göndermek için oturum açın.
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,''));