eallion

大大的小蜗牛

机会总是垂青于有准备的人!
mastodon
github
twitter
steam
telegram
keybase
email

Chrome Extension Update: URL Purifier

URL Cleaner is a simple tool: it cleans the current tab's URL into a clean URL, supporting Taobao, JD, Bilibili, and also allowing custom domain names.

Original name: "Clean Taobao Links"

Open source: https://github.com/eallion/url_cleaner

Fifteen years ago (around 2009), I developed an e-commerce plugin to clean up Taobao URLs. At that time, I found that designers and customer service were not very familiar with the URL mechanism, resulting in long links for store decoration and those sent to customers, while only an id= parameter was actually needed. I no longer have a Taobao C store, so I will use Koobai's Taobao store as an example:

https://item.taobao.com/item.htm?ak=33954624&ali_trackid=2%3Amm_4336502448
_2969650153_115008700494%3A1727011353022_557812494_0&bxsign=tbk9HQwEwb-mYc
KjlH3aYENXlTjcEhUVOqZBiHJhdVVPlxyp8HWxxmORIXwvXKhWvtaGuR7w9cxxkt3ZZq-AUdU1
gIXsry6y3RGeiAD_poGdbjps7xco9Kvaggm1ADFIHbcVMPsWr3vxzkX2wJ_0r6paZwQzCHHFWR
gUPhOIYi_7dA0bYBZwGjuaM1pLGuPP6Tq&fromUld=1&id=787947803999&pvid=33954624&
scm=20140767.59990_33_63_246_113_412_1727011349105.1%7Citem%7C832964446361
.0&spm=a2e0b.27129982.getcoupon.27129982&tkSid=1727011353022_557812494_0.0
&union_lens=lensId%3AOPT%401727011347%402132b868_12cd_19219e5db7f_2c64%400
22WoOODu4Xq3KoTC4wbyqm5%40eyJmbG9vcklkIjo4NTAwN30ie%3Brecoveryid%3A201_33.
8.187.243_14572015_1727011348782%3Bprepvid%3A201_33.8.187.243_14572015_172
7011348782

The cleaned link:

https://item.taobao.com/item.htm?id=787947803999

Moreover, some customer service (and operations) would tamper with it, replacing the PID from Alibaba Mama with their own to earn high commissions from Taobao affiliate rebates, with some peers able to earn enough for a house in half a year.

With the recent updates to the Chrome Web Store Manifest V3 policy, this plugin has also been restructured and updated.

  • Migrated to Manifest V3;
  • Updated the plugin name (now not limited to cleaning Taobao links);
  • Updated the whitelist settings, allowing any URL to be cleaned;
  • Updated the icon, generating a simple icon with AI.
  • Supports i18n;

The built-in whitelist currently supports:

  • github.com
  • *.1688.com
  • *.aliyun.com
  • *.baidu.com
  • *.bing.com
  • *.bilibili.com
  • *.fliggy.com
  • *.google.com
  • *.jd.com
  • *.jd.hk
  • *.so.com
  • *.taobao.com
  • *.tmall.com
  • *.tmall.hk
  • *.yandex.com
  • b23.tv
  • cloud.tencent.com

A little interlude: After releasing version 2.0.0, I saw @Viking's tweet and learned about the field-sizing CSS property. I had spent a long time optimizing this small detail, not realizing that it could be solved with just one CSS property, so I removed the related JS and CSS, immediately updated this parameter, and released version 2.0.1.

Interested users can go to install and experience it:
https://chromewebstore.google.com/detail/npokdddpckpfhlecbgmplgcidebjmkfm

Todo: Online rules

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.