您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
修复了一些微信文章问题
当前为
// ==UserScript== // @name 优化微信文章 // @name:en FuckweixinArticle // @namespace https://greasyfork.org/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 GM_setValue // @grant GM_getValue // @icon //res.wx.qq.com/a/wx_fed/assets/res/NTI4MWU5.ico // @version 3.0 // @license Mozilla // ==/UserScript== (function() { 'use strict'; var t = GM_getValue('lastClickTime', 0); var o = new MutationObserver(function(mL) { mL.forEach(function(m) { if (m.target.id === 'js_link_dialog_body') { var c = Date.now(); if (c - t < 1e3) return; GM_setValue('lastClickTime', c); var a = document.getElementById('js_link_dialog_ok'); if (a) a.click(); var l = document.getElementById('js_link_dialog_cancel'); if (l) l.addEventListener('click', function(e) { e.preventDefault(); }); m.target._processed = true; } }); }); o.observe(document.body, { childList: true, subtree: true }); })();