微信文章查看优化

微信公众号文章的边距取消,网页标题使用文章标题而不是公众号名字

目前為 2019-10-07 提交的版本,檢視 最新版本

// ==UserScript==
// @name         微信文章查看优化
// @namespace    https://1silencer.github.io/
// @version      1.1.1
// @author       Silencer
// @description  微信公众号文章的边距取消,网页标题使用文章标题而不是公众号名字
// @match        *://mp.weixin.qq.com/s*
// @icon         https://res.wx.qq.com/a/wx_fed/assets/res/NTI4MWU5.ico
// ==/UserScript==

function getEl(EL) {
	return document.querySelector(EL)
}

function setTitle(timeout = 0) {
	setTimeout(() => {
		document.title = getEl('#activity-name').innerText;
	}, timeout)
}
setTitle()
setTitle(1500)
setTitle(10000)
getEl('.qr_code_pc').style.display = 'none';
getEl('.rich_media_area_primary_inner').style.maxWidth = 'none';

QingJ © 2025

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