Teste super simples

Testa se o script roda

  1. // ==UserScript==
  2. // @name Teste super simples
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Testa se o script roda
  6. // @match https://www.haxball.com/play*
  7. // @grant none
  8. // ==/UserScript==
  9.  
  10. (function() {
  11. 'use strict';
  12. console.log("Script rodou!");
  13. let div = document.createElement("div");
  14. div.textContent = "Olá, Haxball!";
  15. div.style.position = "absolute";
  16. div.style.top = "20px";
  17. div.style.left = "20px";
  18. div.style.backgroundColor = "red";
  19. div.style.padding = "5px";
  20. document.body.appendChild(div);
  21. })();