// ==UserScript== // @name Anime1 Wide // @namespace // @description 为Anime1的视频播放启用宽屏样式 // @author Shira // @homepage // @run-at document-start // @match https://anime1.me/* // @version 1.00 // @namespace https://greasyfork.org/users/437495 // @downloadURL none // ==/UserScript== (function() {var css = ""; if (false || (new RegExp("^(http|https)://anime1.me/.*$")).test(document.location.href)) css += [ "@media screen and (min-width: 769px) {.content-area {width: 100% !important;}}", ".vframe {width: 1200px !important; height: 640px !important;}", "#secondary {display: none !important;}" ].join("\n"); var node = document.createElement("style"); node.type = "text/css"; node.appendChild(document.createTextNode(css)); var heads = document.getElementsByTagName("head"); if (heads.length > 0) { heads[0].appendChild(node); } var bodys = document.getElementsByTagName("body"); if (bodys.length > 0) { bodys[0].appendChild(node); } })();