wsmudcss

自用

  1. // ==UserScript==
  2. // @name wsmudcss
  3. // @namespace http://userstyles.org
  4. // @description 自用
  5. // @author yunv K
  6. // @homepage https://userstyles.org/styles/166762
  7. // @include http://game.wsmud.com/*
  8. // @include https://game.wsmud.com/*
  9. // @include http://*.game.wsmud.com/*
  10. // @include https://*.game.wsmud.com/*
  11. // @include http://www.wsmud.com/*
  12. // @include https://www.wsmud.com/*
  13. // @include http://*.www.wsmud.com/*
  14. // @include https://*.www.wsmud.com/*
  15. // @run-at document-start
  16. // @version 0.20190105004514
  17. // ==/UserScript==
  18. (function() {var css = [
  19. ".container{ position: fixed; top: 0;left: 0;width:60%;}",
  20. ".content-room{width:95%; border: 1px solid #fffcee; }",
  21. ".content-message{width:98%;}",
  22. ".channel{ position: fixed;top:1%;left: 60%;width:40%;min-height: 98%;}",
  23. ".map { position: fixed; top: 30%;z-index: 15;border: 1px solid #fffcee;background: #9e9d9b; }",
  24. ".dialog {position: fixed;left: 6%;z-index: 14;width:50%;background: #121212;}",
  25. ".dialog-confirm{ position: fixed; top: 60%;left: 30%;width:50%; z-index: 15;border: 1px solid #fffcee;background: #9e9d9b; }",
  26. ".dialog-skills {",
  27. " min-height:20em; ",
  28. "}",
  29. ".dialog-tasks {",
  30. " height:30em;",
  31. "}",
  32. ".dialog-confirm {",
  33. " left: 6%;top:20%;",
  34. "}",
  35. ".item-plushp{",
  36. " width: 130px;",
  37. "}",
  38. ".progress.mp .progress-bar{",
  39. " background-color: #0004ff;",
  40. "}",
  41. "@media(min-width: 1440px) {",
  42. " body {",
  43. " width: 100%;",
  44. "}",
  45. "}"
  46. ].join("\n");
  47. if (typeof GM_addStyle != "undefined") {
  48. GM_addStyle(css);
  49. } else if (typeof PRO_addStyle != "undefined") {
  50. PRO_addStyle(css);
  51. } else if (typeof addStyle != "undefined") {
  52. addStyle(css);
  53. } else {
  54. var node = document.createElement("style");
  55. node.type = "text/css";
  56. node.appendChild(document.createTextNode(css));
  57. var heads = document.getElementsByTagName("head");
  58. if (heads.length > 0) {
  59. heads[0].appendChild(node);
  60. } else {
  61. // no head yet, stick it whereever
  62. document.documentElement.appendChild(node);
  63. }
  64. }
  65. })();