// ==UserScript== // @name 咕咕镇屏幕适配 // @namespace http://tampermonkey.net/ // @version 2.0.0 // @description 修改样式 // @author aotmd // @match https://www.guguzhen.com/* // @grant none // @downloadURL none // ==/UserScript== function addStyle(rules) { var styleElement = document.createElement('style'); styleElement.type = 'text/css'; document.getElementsByTagName('head')[0].appendChild(styleElement); styleElement.appendChild(document.createTextNode(rules)); } addStyle(` div[style='width:1200px;margin: 0 auto;'] { width: 70%!important; } `); /*addStyle(` #pkcall,#closeresult { border: none; color: white; text-align: center; text-decoration: none; display: inline-block; font-size: 10px; margin: 4px 10px; width: 100px; border-radius: 15px; -webkit-transition-duration: 0.4s; transition-duration: 0.4s; cursor: pointer; background-color: white; color: black; border: 2px solid #4CAF50; } #pkcall:hover,#closeresult:hover { background-color: #4CAF50; color: white; } div#result { line-height: 1; padding: 10px; padding-bottom: 50px; border: 2px solid transparent; border-color: #9d15f3; width: 100px; text-align: center; margin: 10px; border-radius: 10px; transition-duration: 1s; } div#result:hover { background-color: #2ae23894; border-color: #ffffff00; } `);*/ /*var b= document.getElementsByClassName("panel panel-primary")[0]; b.innerHTML = "" + b.innerHTML; var jsjfunction=function () { var pk = document.getElementsByClassName("btn dropdown-toggle fyg_lh40"); var s = "