Upside down screen remake -bonk.io

Upside down screen in bonk.io but chat isn't upside down.

安装此脚本
作者推荐脚本

您可能也喜欢Code Injector - Bonk.io

安装此脚本
  1. // ==UserScript==
  2. // @name Upside down screen remake -bonk.io
  3. // @namespace LCDAngel99
  4. // @match https://bonk.io/gameframe-release.html
  5. // @grant none
  6. // @version 1.0
  7. // @author LCDAngel99
  8. // @description Upside down screen in bonk.io but chat isn't upside down.
  9. // @license The Unlicense
  10. // ==/UserScript==
  11.  
  12. setInterval(() => {
  13. let iframe = document.getElementById("maingameframe");
  14. let w;
  15. if (iframe) w = iframe.contentWindow;
  16. else w = window;
  17.  
  18. let mainCanvas = w.document.getElementsByTagName('canvas');
  19. if (mainCanvas) {
  20. mainCanvas[2].style.transformOsrigin = "center";
  21. mainCanvas[2].style.transform = "rotate(180deg)";
  22. }
  23. }, 1000);