- 👋 Hi, I’m @dmscode
- 👀 I’m interested in ...
- 🌱 I’m currently learning ...
- 💞️ I’m looking to collaborate on ...
- 📫 How to reach me ...
dmscode / link-cleaner Goto Github PK
View Code? Open in Web Editor NEW一个用来清理冗长网址的小书签
一个用来清理冗长网址的小书签
Microsoft Store 的应用链接的最短可用状态其实是 https://www.microsoft.com/store/apps/<app's Store ID>
(可参考 官方文档),比目前净化的结果还要短,还能根据用户地区语言跳转至相应的 https://www.microsoft.com/**/p/<app's name>/<app's Store ID>
。
就是不知道这种对链接改动相对较大的「净化」考虑做吗?
打开分享的 Trello 的看板和卡片的链接会在最后加上看板和卡片的标题,如 https://trello.com/b/ud59t1fL
打开后是 https://trello.com/b/ud59t1fL/trello-android-app
,https://trello.com/c/BvTUOwCk
打开后是 https://trello.com/c/BvTUOwCk/508-dark-mode
,建议把链接中的标题净化掉 (虽然官方其实都有提供相应的 。链接到看板/卡片
来这一获取该短链接)
建议增加阿里云的规则,去掉 Url 中的 spm,已知域名:home.console.aliyun.com、account.aliyun.com、yq.aliyun.com 等等,从 aliyun.com 随便点开点啥都会带着这个参数
https://apps.apple.com/cn/app/id******
。Scripts/rules.js
'mp.weixin.qq.com':{ /* WeChat Official Accounts Platform */
testReg: /^http(?:s)?:\/\/mp.weixin.qq.com\/s\?.*$/i,
query: ['__biz','mid','idx','sn'],
},
可以让脚本在打开链接时就默认净化网址,这样我们的网址栏也看得舒服一点
https://greasyfork.org/scripts/373270
,见 Greasy Fork 站长对这条讨论的 回复;-用户名
变成 https://greasyfork.org/users/*****
https://greasyfork.org/scripts
;感谢这个脚本,希望可以添加最后得到的链接是markdown的格式。
copy pure link with title as markdown.
游猴脚本支持语法:
// @include http*://*taobao.com/*
使脚本只在声明的站点上生效。
能否只声明支持的站点?
'detail.1688.com/offer': {/* item detail on 1688 */
testReg: /^http(?:s)?:\/\/detail\.1688\.com\/offer\/(\d+)\.html\?.*$/i,
replace: 'https://detail.1688.com/offer/$1.html',
},
'amazon.com': {/* amazon.com */
testReg: /^http(?:s)?:\/\/(?:www\.)?amazon\.com\/([^\/]+)\/dp\/(\w+)\/.*$/i,
replace: 'https://www.amazon.com/$1/dp/$2',
},
感谢分享这个脚本,很实用。模仿补充一下 1688 和美亚的链接净化规则。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.