全网首发|独家整理的最新考研考证网课资源,火速入群!
// ==UserScript==
// @name 全网首发|独家整理的最新考研考证网课资源,火速入群!
// @version 8.8
// @namespace http://tampermonkey.net/
// @description 23年考研公开课、专业课,2022年英语四六级、计算机二级、普通话考试、教师资格证、法律资格考试证等。
// @author 小学生
// @match *://*.chaoxing.com/*
// @match *://*.edu.cn/*
// @match *://*.nbdlib.cn/*
// @match *://*.hnsyu.net/*
// @connect i.zhishixueyuan.cn
// @run-at document-end
// @grant unsafeWindow
// @grant GM_xmlhttpRequest
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_info
// @grant GM_setClipboard
// @antifeature ads
// @license MIT
// ==/UserScript==
function main() {
let style = document.createElement("style");
style.innerHTML = `
/* 调整内容卡片宽度为94% */
div#container div#content_left {
width: 94% !important;
}
/* 倒圆角、半径20px */
.result.c-container.new-pmd {
border-radius: 20px !important;
}
/* 按钮区宽度调整为100% */
#wrapper_wrapper > .result-molecule.new-pmd, #wrapper > #wrapper_wrapper > .result-molecule.new-pmd > #page {
width: 100% !important;
padding-left: 0;
}
#page div[class*=page-inner] {
padding-left: 0;
}
/* 隐藏页码按钮 */
#page a, #page > div > strong {
display: none;
}
/* 增强显示“上/下一页”按钮 */
#wrapper #page a.n {
display: block;
margin-top: -20px;
margin-right: 0 !important;
width: 45%;
background: #ffcece;
border-style: solid !important;
border-width: thin !important;
border-color: #d8b2b2 !important;
border-radius: 10px !important;
}
/* 控制“上/一页”按钮到同一行排版 */
#page div[class*=page-inner] {
display: flex;
flex-direction: row;
justify-content: space-evenly;
}
`.replaceAll(" ".repeat(8), "");
document.head.appendChild(style);
}
window.onload = main;