Vertix Script

A script created by /u/ReelablePenny14. Script published to make it popular.

目前为 2018-08-08 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Vertix Script
  3. // @namespace http://vertix.io/*
  4. // @version 0.2
  5. // @description A script created by /u/ReelablePenny14. Script published to make it popular.
  6. // @author /u/ReelablePenny14, published to make popular.
  7. // @match http://vertix.io/*
  8. // @grant GM_addStyle
  9. 'use strict';
  10. GM_addStyle(`
  11. #mainTitleText {
  12. width: 100%;
  13. color: #1EB656;
  14. font-size: 100px;
  15. text-align: center;
  16. text-shadow: 0 1px 0 #ff0000, 0 2px 0 #ff3300, 0 3px 0 #ffff00, 0 4px 0 #726767, 0 5px 0 #009900;
  17. -webkit-animation: rainbow 4s linear infinite;
  18. -moz-animation: rainbow 4s linear infinite;
  19. animation: rainbow 4s linear infinite;
  20. }
  21. `);
  22. GM_addStyle(`
  23. @keyframes rainbow {
  24. 0% { color: red; }
  25. 14% { color: orange; }
  26. 28% { color: yellow; }
  27. 42% { color: green; }
  28. 56% { color: blue; }
  29. 70% { color: #4B0082; }
  30. 84% { color: purple; }
  31. }
  32. `);
  33. GM_addStyle(`
  34. @-webkit-keyframes rainbow {
  35. 0% { color: red; }
  36. 14% { color: orange; }
  37. 28% { color: yellow; }
  38. 52% { color: green; }
  39. 46% { color: blue; }
  40. 70% { color: #4B0082; }
  41. 84% { color: purple; }
  42. }
  43. `);
  44. // ==/UserScript==
  45.  
  46. // Permission is hereby granted, free of charge, to any person obtaining a
  47. // copy of this software and associated documentation files
  48. // (the "Software"), to deal in the Software without restriction,
  49. // including without limitation the rights to use, copy, modify, merge,
  50. // publish, distribute, sublicense, and/or sell copies of the Software, and
  51. // to permit persons to whom the Software is furnished to do so, subject to
  52. // the following conditions:
  53. //
  54. // The above copyright notice and this permission notice shall be included
  55. // in all copies or substantial portions of the Software.
  56. //
  57. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  58. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  59. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  60. // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  61. // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  62. // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  63. // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  64.  
  65. (function() {
  66. document.title = "Penny.io";
  67. var title = document.getElementById('mainTitleText');
  68. title.innerHTML = 'Penny.io';
  69. var startButton = document.getElementById('startButton');
  70. startButton.innerHTML = 'Start Game';
  71. var leaderButton = document.getElementById('leaderButton');
  72. leaderButton.innerHTML = 'Leaderboard';
  73. var settingsButton = document.getElementById('settingsButton');
  74. settingsButton.innerHTML = 'Settings';
  75. var instructionButton = document.getElementById('instructionButton');
  76. instructionButton.innerHTML = 'How to Play';
  77.  
  78. var other = document.getElementsByClassName('menuHeader');
  79. other[0].innerHTML = 'Click below to support';
  80. })();