# userjs **Repository Path**: yimeng54/userjs ## Basic Information - **Project Name**: userjs - **Description**: 主要包括自己的一些浏览器脚本. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-05-18 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # userjs # 介绍 主要包括自己使用Tampermonkey管理的一些浏览器脚本. ### 1.简书外链去除重定向.user.js ``` (function() { var pre = "https://links.jianshu.com/go?to="; var as = document.getElementsByTagName("a"); for(var i = 0; i < as.length; i++){ var a = as[i]; var link = a.href; if(link.startsWith(pre)){ link = link.replace(pre,""); link = decodeURIComponent(link); a.href = link; } } })(); ``` >**参阅:** >* 来源于:[简书外链去除重定向-john fermin](https://greasyfork.org/zh-CN/scripts/377099-%E7%AE%80%E4%B9%A6%E5%A4%96%E9%93%BE%E5%8E%BB%E9%99%A4%E9%87%8D%E5%AE%9A%E5%90%91)