// ==UserScript== // @name 壁纸背景+Live2D看板娘+毒鸡汤-油猴中文网 // @namespace https://bbs.tampermonkey.net.cn/ // @version 0.5.1 // @description 油猴中文网壁纸背景+Live2D看板娘+毒鸡汤!老二次元了~!!! // @description 0.5.0 新增图片切换按钮,复制当前背景图片链接按钮(右侧边)!在弹出页点 “总是允许此域名” 否则无法正常使用此脚本! // @author 张仨 // @match https://bbs.tampermonkey.net.cn/* // @supportURL https://bbs.tampermonkey.net.cn/forum.php?mod=viewthread&tid=1173&extra=page%3D1 // @homepageURL https://bbs.tampermonkey.net.cn/forum.php?mod=viewthread&tid=1173&extra=page%3D1 // @run-at document-start // @grant unsafeWindow // @grant GM_xmlhttpRequest // @grant GM_addStyle // @grant GM_setClipboard // @require https://cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget@latest/autoload.js // ==/UserScript== /* く__,.ヘヽ. / ,ー、 〉 \ ', !-─‐-i / /´ /`ー' L//`ヽ、 Live2D 看板娘 / /, /| , , ', イ / /-‐/ i L_ ハ ヽ! i レ ヘ 7イ`ト レ'ァ-ト、!ハ| | !,/7 '0' ´0iソ| | |.从" _ ,,,, / |./ | レ'| i>.、,,__ _,.イ / .i | レ'| | / k_7_/レ'ヽ, ハ. | | |/i 〈|/ i ,.ヘ | i | .|/ / i: ヘ! \ | kヽ>、ハ _,.ヘ、 /、! !'〈//`T´', \ `'7'ーr' レ'ヽL__|___i,___,ンレ|ノ ト-,/ |___./ 'ー' !_,.:*******************************/ /* * .::::. * .::::::::. * ::::::::::: FUCK YOU * ..:::::::::::' * '::::::::::::' * .:::::::::: * '::::::::::::::.. * ..::::::::::::. * ``:::::::::::::::: * ::::``:::::::::' .:::. * ::::' ':::::' .::::::::. * .::::' :::: .:::::::'::::. * .:::' ::::: .:::::::::' ':::::. * .::' :::::.:::::::::' ':::::. * .::' ::::::::::::::' ``::::. * ...::: ::::::::::::' ``::. * ```` ':. ':::::::::' ::::.. * '.:::::' ':'````.. */ /*** * _ooOoo_ * o8888888o * 88" . "88 * (| -_- |) * O\ = /O * ____/`---'\____ * . ' \\| |// `. * / \\||| : |||// \ * / _||||| -:- |||||- \ * | | \\\ - /// | | * | \_| ''\---/'' | | * \ .-\__ `-` ___/-. / * ___`. .' /--.--\ `. . __ * ."" '< `.___\_<|>_/___.' >'"". * | | : `- \`.;`\ _ /`;.`/ - ` : | | * \ \ `-. \_ __\ /__ _/ .-` / / * ======`-.____`-.___\_____/___.-`____.-'====== * `=---=' * * ............................................. * 佛祖保佑 永无BUG */ /*** * 佛曰: * 写字楼里写字间,写字间里程序员; * 程序人员写程序,又拿程序换酒钱。 * 酒醒只在网上坐,酒醉还来网下眠; * 酒醉酒醒日复日,网上网下年复年。 * 但愿老死电脑间,不愿鞠躬老板前; * 奔驰宝马贵者趣,公交自行程序员。 * 别人笑我忒疯癫,我笑自己命太贱; * 不见满街漂亮妹,哪个归得程序员? */ //CS样式 GM_addStyle(` .lk{ border-radius: 25px; background-color: rgba(255,255,255,0.9); } #online{ border-radius: 25px; } #category_{ border-radius: 25px; overflow: hidden; } .bmw{ border-radius: 13.5px; } .bm_h{ background-color: rgba(255,255,255,0.9); margin-top: 10px !important; padding: 0px 15px; border-radius: 7px; } .comiis_fl_g{ border: 0px solid #fff; } .widthauto{ opacity: 0.9; } .comiis_irswfbox{ border-radius: 25px; opacity: 0.8; } .comiis_irbox{ border-radius: 25px; background-color: rgba(255,255,255,0.9); } .bm lk{ background-color: rgba(255,255,255,0.9); } #online{ background-color: rgba(255,255,255,0.9); } .flg{ background-color: rgba(255,255,255,0.9); } #wp .a_t{ background-color: rgba(255,255,255,0.9); border-radius: 7px; overflow: hidden; } #pt{ background-color: rgba(255,255,255,0.9); margin-top: 10px !important; padding: 0px 15px; border-radius: 7px; } .tl{ background-color: rgba(255,255,255,0.9); overflow: hidden; } .comiis_listinfo{ background-color: rgba(255,255,255,0.9); margin-top: 10px !important; padding: 0px 15px; border-radius: 7px; } .topico{ background-color: rgba(255,255,255,0.9); margin-top: 10px !important; padding: 0px 15px; border-radius: 7px; } .scrolltopa{ background-color: rgba(255,255,255,0.9); margin-top: 10px !important; padding: 0px 15px; border-radius: 7px; } .returnboard{ background-color: rgba(255,255,255,0.9); margin-top: 10px !important; padding: 0px 15px; border-radius: 7px; } .comiis_vrx{ background-color: rgba(255,255,255,0.9); margin-top: 10px !important; padding: 0px 15px; border-radius: 7px; } .pls{ background-color: rgba(255,255,255,0.9); margin-top: 10px !important; padding: 0px 15px; border-radius: 7px; } #fastpostform{ background-color: rgba(255,255,255,0.9); margin-top: 10px !important; padding: 0px 15px; border-radius: 7px; } .replyfast{ background-color: rgba(255,255,255,0.9); margin-top: 10px !important; padding: 0px 15; border-radius: 7px; } .returnlist{ background-color: rgba(255,255,255,0.9); margin-top: 10px !important; padding: 0px 15px; border-radius: 7px; } .class1 span{ position: fixed; right: 0px; width: 33px; height: 66px; font-family: cursive; color: rgba(f, f, f, .8); opacity: .5; background: rgba(0, 0, 0, .5); border-radius: 2px; margin-top: -53px; z-index: 999; text-align: center; cursor: pointer; } .psa{ top: 50%; font-size: 24px; line-height: 66px; } .psa:hover { background: rgba(0, 0, 0, .8); color: #fff; } .btn1{ top: 40%; color: #fff; font-size: 15px; } #nv_forum{ background-image: url(https://tva3.sinaimg.cn/large/0076R7yAgy1fq8ds6c448j31hc0u016f.jpg); background-repeat: no-repeat; background-position: top; background-attachment: fixed; background-size: cover; } `) unsafeWindow.onload = function () { 'use strict'; //跨域请求鸡汤文(首页) GM_xmlhttpRequest({ method: "GET", responseType: "json", url: "https://api.muxiaoguo.cn/api/dujitang", onload: function (e) { let jt = (e.response.data.comment) console.log(jt); var ele = document.getElementById("diymsg1"); ele.innerHTML = jt; } }) //使用脚本加载css资源 let script = document.createElement('link'); script.setAttribute('rel', 'stylesheet'); script.setAttribute('type', 'text/css'); script.href = "https://cdn.jsdelivr.net/npm/font-awesome/css/font-awesome.min.css"; document.documentElement.appendChild(script); //document.getElementById('wp').style.backgroundColor="#ccffff"; //列表白色 let table = document.querySelector('tbody') if (!table) { table.style.backgroundColor = 'white' } //创建按钮 var div, body; div = document.createElement("div"); body = document.querySelector("body"); body.appendChild(div); div.innerHTML = `