Greasy Fork

去你妈的复制链接跳转

简书不复制跳转

// ==UserScript==
// @name         去你妈的复制链接跳转
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  简书不复制跳转
// @author       阿土
// @require      https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
// @match        *://*.jianshu.com/*
// @match        *://*.mcbbs.net/*
// @grant        none
// @license      GPL License
// ==/UserScript==
//<a href="https://links.jianshu.com/go?to=https%3A%2F%2Fanaconda.org%2Fbioconda%2Frepo" target="_blank" one-link-mark="yes">https://anaconda.org/bioconda/repo</a>
(function() {
    'use strict';
    $(".ouvJEz a").attr("href", function(i,origValue){
        console.log(origValue);
    return unescape(origValue.replace("https://links.jianshu.com/go?to=",""));
    });
    $(".plhin a").attr("href", function(i,origValue){
        console.log(origValue);
    return unescape(origValue.replace("https://www.mcbbs.net/plugin.php?id=link_redirect&target=",""));
    });
    // Your code here...
         })();