您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Opens rodong.rep.kp news links in the same browser window, because we are all the same :)
// ==UserScript== // @name Rodong Contained // @namespace http://tampermonkey.net/ // @version 1 // @description Opens rodong.rep.kp news links in the same browser window, because we are all the same :) // @author [email protected] // @match http://rodong.rep.kp/* // @icon https://www.google.com/s2/favicons?sz=64&domain=rep.kp // @grant none // @license Public domain // ==/UserScript== /* eslint-disable */ (function() { 'use strict'; const unwrap = (target, propertyName, prefix, suffix = prefix) => { if(target[propertyName].startsWith(prefix) && target[propertyName].endsWith(suffix)) target[propertyName] = target[propertyName].substr(prefix.length, target[propertyName].length - prefix.length - suffix.length); return; }; Array.from(document.querySelectorAll("a[href]")).forEach(a => unwrap(a, "href", "javascript:article_open('", "%27)")); return; })();