Skip to content

Instantly share code, notes, and snippets.

@jim60105
Last active November 4, 2020 10:09
Show Gist options
  • Select an option

  • Save jim60105/23156bbb23d417508525cd34671d24a9 to your computer and use it in GitHub Desktop.

Select an option

Save jim60105/23156bbb23d417508525cd34671d24a9 to your computer and use it in GitHub Desktop.
放在書籤,在淘寶的商品頁點擊使用
//將網址列多餘的參數清理
javascript:window.location.replace('https://item.taobao.com/item.htm?id='+location.href.match(/id=(\d+)/)[1]);
//由大陸淘寶跳轉到World淘寶
javascript:window.location.replace('http://world.taobao.com/item/'+location.href.match(/id=(\d+)/)[1]+'.htm');
//由World淘寶跳轉到大陸淘寶
javascript:window.location.replace('https://item.taobao.com/item.htm?id='+location.href.match(/item\/(\d+)/)[1]);
@jim60105
Copy link
Author

2020-07-17 22 33 01

@jim60105
Copy link
Author

2020-07-17 22 32 33
↓↓↓
2020-07-17 22 34 15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment