您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
简化微信公众号管理页外观,方便功能调用
当前为
// ==UserScript== // @name 简化微信公众号管理页外观 // @namespace https://penicillin.github.io/ // @version 20241119 // @description 简化微信公众号管理页外观,方便功能调用 // @match https://mp.weixin.qq.com/cgi-bin/appmsgpublish?* // @match https://mp.weixin.qq.com/s?* // @grant none // ==/UserScript== var styleElement = document.createElement('style'); document.getElementsByTagName('body')[0].appendChild(styleElement); //管理页 if (document.URL.match(/cgi-bin/)){ styleElement.append('.weui-desktop-layout__main {background-color: #ccc5;}'); styleElement.append('.weui-desktop-mass__overview {margin: unset !important;min-width: 115px !important;}'); styleElement.append('.weui-desktop-mass-appmsg__bd {padding-right: unset !important;}'); styleElement.append('.weui-desktop-mass-appmsg__bd div {width: 100% !important;}'); styleElement.append('.weui-desktop-mass-appmsg__ft {display:block !important;}'); styleElement.append('.weui-desktop__unfold-menu-opr-new {display: none !important;}'); styleElement.append('.weui-desktop-mass-appmsg__bd a {display: block !important;height:80px;border-radius: 10px;overflow: hidden !important;}'); styleElement.append('.weui-desktop-mass-appmsg__bd a:hover {background-color: #00ff0005;box-shadow: 5px 5px 10px #3333;}'); styleElement.append('.weui-desktop-mass-media__data-list {display: none !important;}'); styleElement.append('.weui-desktop-pagination {background-color: white;margin-bottom: 5px;}'); styleElement.append('.weui-desktop-pagination__num {display: inline-block !important;width: 30px;border: 1px solid;margin: 0px 5px !important;}'); styleElement.append('.weui-desktop-pagination__nav {background-color: white;padding:0px 5px;}'); styleElement.append('.weui-desktop-pagination__form {background-color: white;padding:0px 5px;}'); styleElement.append('.weui-desktop-pagination {padding: 4px 0px !important;border-radius: 8px; border-top: 3px solid #88b2e8; border-bottom: 3px solid #88b2e8;}'); styleElement.append('.publish_content {padding-bottom: 5px !important;}'); //不显示删除的项目 var deleted=document.getElementsByClassName('weui-desktop-mass-media_del'); for (let i=0;i<deleted.length;i++){ //deleted[i].parentNode.style.display="none"; deleted[i].parentNode.parentNode.parentNode.parentNode.style.backgroundColor="#dfced1"; } //显示三个菜单 var showMenu=document.getElementsByClassName('weui-desktop-mass-media__opr'); for (let i=0;i<showMenu.length;i++){ showMenu[i].style.visibility="visible"; showMenu[i].style.opacity="1"; } } //查看文章页 if (document.URL.match(/s\?__biz/)){ styleElement.append('#activity-detail {padding:0px;}'); styleElement.append('#content_bottom_area {display:none !important;}'); styleElement.append('#js_pc_qr_code {display:none !important;}'); // document.getElementById('js_tags_preview_toast').previousElementSibling.lastElementChild.previousElementSibling.lastChild.previousElementSibling.style.display='none'; }