Greasy Fork

Greasy Fork is available in English.

URL Clean

Clean / minimize large URLs by stripping tracking info

当前为 2020-11-24 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Duckle29
评分
0 0 0
版本
1.1.1
创建于
2020-11-23
更新于
2020-11-24
大小
1.6 KB
许可证
BSD 3-Clause
适用于

URL Clean

Cleans and minimizes urls for prettier sharing in text chats and some tracker stripping (when shared)

The script was initially made by a user in #reprap on freenode IRC for AliExpress, but I sadly have forgotten by who :(

After almost loosing this userscript >10 times, to find it on weird nas drives or old computers, I decided to rewrite it entirely from scratch and share it on my github / greasyfork

The script now supports multiple sites, likely to have more added in the future.


Example

The script will take a url like

https://www.aliexpress.com/item/32322326979.html?spm=a2g0o.productlist.0.0.5e2e3f351UcucB&algo_pvid=9ac0e00d-f02c-4d7b-8acd-03d1455be4da&algo_expid=9ac0e00d-f02c-4d7b-8acd-03d1455be4da-1&btsid=0bb0623e16061356267071699ec21e&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_

and clean it to

https://www.aliexpress.com/item/32322326979.html

Supported sites

  • AliExpress
  • Ebay
  • Amazon

Known issues

While it'd be nice to also clean up localization like country specific sub-domains, this can't be done in javascript as it represents a CORS attack risk. It coud be done with redirects, and I'll happily look at a PR if anyone is up for that :)