Greasy Fork is available in English.

知乎外链跳转取消

取消知乎外链跳转

// ==UserScript==
// @name        知乎外链跳转取消
// @namespace   Violentmonkey Scripts
// @match       https://*.zhihu.com/*
// @grant       unsafeWindow
// @version     1.1
// @author      -
// @description 取消知乎外链跳转
// ==/UserScript==

(window.onload = function(){
var a = document.getElementsByTagName('a')
for(item of a){
  if(item.href.includes("target=")){
    item.href = unescape(item.href).split("target=")[1]
  }
}
})()