Torn Better UI

Make Torn Beautiful

目前为 2024-11-27 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Torn Better UI
  3. // @namespace http://tampermonkey.net/
  4. // @version alpha-1.0
  5. // @description Make Torn Beautiful
  6. // @author Jayam Patel
  7. // @match https://www.torn.com/*
  8. // @icon https://raw.githubusercontent.com/jayam04/torn-scripts/master/tornBetterUI/icon.png
  9. // @license Apache License 2.0
  10. // @grant none
  11. // @require https://update.greasyfork.org/scripts/501645/1416051/Torn%20UI%20Elements%20%28for%20Developers%29.js
  12. // @require https://update.greasyfork.org/scripts/501648/1416074/Constants%20for%20Torn%20Scripts%20%28for%20Developers%29.js
  13. // ==/UserScript==
  14.  
  15. function realignTornUI() {
  16. const mainContainer = document.getElementById("mainContainer");
  17. mainContainer.style.marginLeft = "20px";
  18. }
  19.  
  20. function updateFont() {
  21. const mainContainer = document.getElementById("mainContainer");
  22. mainContainer.style.fontFamily = "Monaco, monospace";
  23. }
  24.  
  25. function main() {
  26. realignTornUI();
  27. updateFont();
  28. }
  29.  
  30. main();