${user_command}
${new_user_commands_innerHTML}// ==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 0.8.3 // @author WhiteSevs // @description 用于【移动端】的百度系列产品优化,包括【百度搜索】、【百家号】、【百度贴吧】、【百度文库】、【百度经验】、【百度百科】、【百度知道】、【百度翻译】、【百度图片】、【百度地图】 // @match *://m.baidu.com/* // @match *://www.baidu.com/* // @match *://baijiahao.baidu.com/* // @match *://tieba.baidu.com/* // @match *://wk.baidu.com/* // @match *://tanbi.baidu.com/* // @match *://jingyan.baidu.com/* // @match *://baike.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/* // @connect www.baidu.com // @connect m.baidu.com // @connect tieba.baidu.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 unsafeWindowresponse // @require https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/3.4.1/jquery.min.js // @require https://greasyfork.org/scripts/449471-viewer/code/Viewer.js // @require https://greasyfork.org/scripts/455186-whitesevsutils/code/WhiteSevsUtils.js // @run-at document-start // @downloadURL none // ==/UserScript== (function () { let log = new Utils.Log(GM_info); log.config({ logMaxCount: 20000, autoClearConsole: true, }); let httpx = new Utils.Httpx(GM_xmlhttpRequest); httpx.config({ onabort: function () { log.error("请求取消"); }, ontimeout: function () { log.error("请求超时"); }, onerror: function (response) { log.error(["httpx-onerror 请求异常", response]); }, }); const CSDN_FLAG_CSS = ` .csdn-flag-component-box .praise { padding-right: 20px; background: #ff5722; text-indent: 1em; border-top-left-radius: 50px; border-top-right-radius: 50px; border-bottom-left-radius: 50px; border-bottom-right-radius: 50px; background: -webkit-linear-gradient(left,#ff5722,#f78d6b); background: -o-linear-gradient(right,#ff5722,#f78d6b); background: -moz-linear-gradient(right,#ff5722,#f78d6b); background: linear-gradient(to right,#ff5722,#f78d6b); } .csdn-flag-component-box .praise,.csdn-flag-component-box .share { /*width: 110px; height: 34px; line-height: 34px;*/ height:auto; line-height:normal; color: #fff; background: #ff0505; border-radius: 5px; padding: 2px; } .csdn-flag-component-box a { display: inline-block; font-size: 14px; } .csdn-flag-component-box { /*margin: 0 auto; text-align: center; display: inline;*/ display: flex; margin: 0; text-align: left; font-size: 0; position: relative; width: 260px; margin: 5px 0px; } `; class LoadingView { constructor() { 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 = `
${user_command}
${new_user_commands_innerHTML}