// ==UserScript== // @name 考试题库网显示跳转答案 // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author LiuYuHong // @grant none // @include *://www.ppkao.com/tiku/shiti/* // @namespace https://liuyuhong.ml // @downloadURL none // ==/UserScript== (function() { 'use strict'; var url = window.location.href var reg = /[1-9][0-9]*/g var num = url.match(reg) window.location.href = 'https://newapi.ppkao.com/mnkc/tiku/?id='+num })();