${userComment}
${newUserCommentHTML}// ==UserScript== // @name 【移动端】-百度系优化 // @icon https://www.baidu.com/favicon.ico // @namespace https://greasyfork.org/zh-CN/scripts/418349-移动端-百度系优化 // @supportURL https://greasyfork.org/zh-CN/scripts/418349-移动端-百度系优化/feedback // @version 2023.11.17.14 // @author WhiteSevs // @run-at document-start // @description 用于【移动端】的百度系列产品优化,包括【百度搜索】、【百家号】、【百度贴吧】、【百度文库】、【百度经验】、【百度百科】、【百度知道】、【百度翻译】、【百度图片】、【百度地图】、【百度好看视频】、【百度爱企查】、【百度问题】、【百度识图】等 // @match *://m.baidu.com/* // @match *://www.baidu.com/* // @match *://baijiahao.baidu.com/* // @match *://tieba.baidu.com/* // @match *://www.tieba.com/* // @match *://wk.baidu.com/* // @match *://tanbi.baidu.com/* // @match *://jingyan.baidu.com/* // @match *://baike.baidu.com/* // @match *://wapbaike.baidu.com/* // @match *://zhidao.baidu.com/* // @match *://fanyi.baidu.com/* // @match *://fanyi-app.baidu.com/* // @match *://image.baidu.com/* // @match *://map.baidu.com/* // @match *://xue.baidu.com/* // @match *://mbd.baidu.com/* // @match *://aiqicha.baidu.com/* // @match *://pos.baidu.com/* // @match *://haokan.baidu.com/* // @match *://graph.baidu.com/* // @match *://pan.baidu.com/* // @match *://yiyan.baidu.com/* // @match *://chat.baidu.com/* // @match *://easylearn.baidu.com/* // @match *://uf9kyh.smartapps.cn/* // @connect www.baidu.com // @connect m.baidu.com // @connect tieba.baidu.com // @connect www.tieba.com // @connect baike.baidu.com // @grant GM_addStyle // @grant GM_registerMenuCommand // @grant GM_unregisterMenuCommand // @grant GM_getValue // @grant GM_setValue // @grant GM_deleteValue // @grant GM_listValues // @grant GM_xmlhttpRequest // @grant GM_info // @grant unsafeWindow // @require https://update.greasyfork.icu/scripts/449471/1249086/Viewer.js // @require https://update.greasyfork.icu/scripts/455186/1281176/WhiteSevsUtils.js // @require https://update.greasyfork.icu/scripts/465772/1274595/DOMUtils.js // @downloadURL none // ==/UserScript== (function () { /** * 是否为调试模式 */ const DEBUG = false; /** * @type {import("../库/Viewer")} */ const Viewer = window.Viewer; /** * @type {import("../库/Utils")} */ const utils = window.Utils.noConflict(); /** * @type {import("../库/DOMUtils")} */ const DOMUtils = window.DOMUtils.noConflict(); const log = new utils.Log(GM_info); log.config({ debug: DEBUG, logMaxCount: 20000, autoClearConsole: true, tag: true, }); const httpx = new utils.Httpx(GM_xmlhttpRequest); httpx.config({ logDetails: DEBUG, onabort: function () { log.error("请求取消"); }, ontimeout: function () { log.error("请求超时"); }, onerror: function (response) { log.error(["httpx-onerror 请求异常", response]); }, }); /** * 菜单对象 */ let GM_Menu = new utils.GM_Menu({ GM_getValue, GM_setValue, GM_registerMenuCommand, GM_unregisterMenuCommand, }); class LoadingView { constructor() { this.loadingViewElement = null; this.loadingClassName = "whitesev-page-isloading"; this.loadingTextClassName = "whitesev-isloading-text"; this.loadingIconClassName = "whitesev-isloading-icon"; this.loadingOutSideIconClassName = "whitesev-isloading-outside"; this.loadingWithInIconClassName = "whitesev-isloading-within"; this.html = `
${_pageText_}
${userComment}
${newUserCommentHTML}