Greasemonkey/Tampermonkey/Violentmonkey test style

If you install this and all text turns red, then things are working.

Zainstaluj skrypt?
Skrypt zaproponowany przez autora

Może Ci się również spodobać. Autokahoot

Zainstaluj skrypt
  1. // ==UserScript==
  2. // @name Greasemonkey/Tampermonkey/Violentmonkey test style
  3. // @namespace http://userstyles.org
  4. // @description If you install this and all text turns red, then things are working.
  5. // @author JasonBarnabe
  6. // @homepage http://greatest.deepsurf.us/scripts/1
  7. // @run-at document-start
  8. // @version 20231121.2
  9. // @include *
  10. // ==/UserScript==
  11. (function() {
  12. var css = "*{ color: #F00 !important; }";
  13. if (typeof GM_addStyle != "undefined") {
  14. GM_addStyle(css);
  15. } else if (typeof PRO_addStyle != "undefined") {
  16. PRO_addStyle(css);
  17. } else if (typeof addStyle != "undefined") {
  18. addStyle(css);
  19. } else {
  20. var node = document.createElement("style");
  21. node.type = "text/css";
  22. node.appendChild(document.createTextNode(css));
  23. var heads = document.getElementsByTagName("head");
  24. if (heads.length > 0) {
  25. heads[0].appendChild(node);
  26. } else {
  27. // no head yet, stick it whereever
  28. document.documentElement.appendChild(node);
  29. }
  30. }
  31. })();