当前页面打开链接

通用

目前為 2025-02-06 提交的版本,檢視 最新版本

// ==UserScript==
// @name     当前页面打开链接
// @version       1.1
// @match    *://*/*
// @require  https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
// @run-at   document-start
// @namespace https://gf.qytechs.cn/users/12375
// @description 通用
// ==/UserScript==

unsafeWindow.open=u=>location.replace(u);

$(document).on('click','a,form',e=>e.currentTarget.target='_self');

new MutationObserver(_=>$('a,form').click(e=>e.currentTarget.target='_self')).observe(document.body,{childList:1,subtree:1});

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址