Code Monkey home page Code Monkey logo

link-cleaner's Introduction

  • 👋 Hi, I’m @dmscode
  • 👀 I’m interested in ...
  • 🌱 I’m currently learning ...
  • 💞️ I’m looking to collaborate on ...
  • 📫 How to reach me ...

link-cleaner's People

Contributors

dmscode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

link-cleaner's Issues

Microsoft Store 链接净化相关建议

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 看板与卡片链接净化建议

打开分享的 Trello 的看板和卡片的链接会在最后加上看板和卡片的标题,如 https://trello.com/b/ud59t1fL 打开后是 https://trello.com/b/ud59t1fL/trello-android-apphttps://trello.com/c/BvTUOwCk 打开后是 https://trello.com/c/BvTUOwCk/508-dark-mode,建议把链接中的标题净化掉 (虽然官方其实都有提供相应的 链接到看板/卡片 来这一获取该短链接)

阿里云地址带的 spm 参数

建议增加阿里云的规则,去掉 Url 中的 spm,已知域名:home.console.aliyun.com、account.aliyun.com、yq.aliyun.com 等等,从 aliyun.com 随便点开点啥都会带着这个参数

App Store 净化相关建议

  1. 建议加个判断逻辑自动匹配所地区,当链接非用户所在地区时净化后的链接变为用户所在地区;
  2. 建议净化后的链接可以去除应用名称,只保留应用 id(?),即 https://apps.apple.com/cn/app/id******

Greasy Fork 链接净化相关建议

  1. 建议去除任意 Greasy Fork 页面 URL 中的语言参数,如脚本页净化成 https://greasyfork.org/scripts/373270,见 Greasy Fork 站长对这条讨论的 回复
  2. 建议将用户页 URL 中的用户名参数去除,即像脚本页净化结果一样去除 -用户名 变成 https://greasyfork.org/users/*****
  3. 目前某脚本讨论(discussions)和讨论下具体某一条评论(comment)链接净化后会变成该脚本页,建议适配 Greasy Fork 新版脚本讨论和评论 URL 进行净化;类似的,Script Sets 页会净化成 https://greasyfork.org/scripts;

只在支持的站点上生效

游猴脚本支持语法:

// @include     http*://*taobao.com/*

使脚本只在声明的站点上生效。

能否只声明支持的站点?

1688 商品详情页网址净化

'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 和美亚的链接净化规则。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.