您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
优化了微信文章
当前为
// ==UserScript== // @name 优化微信文章 // @name:en FuckweixinArticle // @namespace https://gf.qytechs.cn/en/users/572221-alan636 // @description 优化了微信文章 // @description:en Open target link in a new tab without confirmation dialog and close the original dialog // @description:zh 优化了微信文章 // @match https://mp.weixin.qq.com/* // @grant none // @version 2.0 // @license Mozilla // ==/UserScript== (function() { 'use strict'; var observer = new MutationObserver(function(mutationsList) { mutationsList.forEach(function(mutation) { if (mutation.target.id === 'js_link_dialog_body' && mutation.target.style.display === '') { var targetLink = document.querySelector('a[href^="http://mp.weixin.qq.com/s?"]'); if (targetLink) { var linkHref = targetLink.getAttribute('href'); window.open(linkHref, '_blank'); simulateCancelButtonClick(); } } }); }); var targetNode = document.body; var config = { childList: true, subtree: true }; observer.observe(targetNode, config); function simulateCancelButtonClick() { var cancelButton = document.getElementById('js_link_dialog_cancel'); if (cancelButton) cancelButton.click(); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址