Guest User

avenoel - clic optimise

a guest
Nov 26th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Avenoel - mobile
  3. // @namespace http://userstyles.org
  4. // @description avenoel version mobile
  5. // @author grosseviande
  6. // @homepage https://userstyles.org/styles/150924
  7. // @include http://avenoel.org/*
  8. // @include https://avenoel.org/*
  9. // @include http://*.avenoel.org/*
  10. // @include https://*.avenoel.org/*
  11. // @run-at document-start
  12. // @version 0.20171125200240
  13. // ==/UserScript==
  14. (function() {var css = [
  15. "@namespace url(http://www.w3.org/1999/xhtml);",
  16. " .topics-title a {",
  17. " display: block;",
  18. " margin: auto;",
  19. " height: 100%;",
  20. " width: 100%;",
  21. " }"
  22. ].join("\n");
  23. if (typeof GM_addStyle != "undefined") {
  24. GM_addStyle(css);
  25. } else if (typeof PRO_addStyle != "undefined") {
  26. PRO_addStyle(css);
  27. } else if (typeof addStyle != "undefined") {
  28. addStyle(css);
  29. } else {
  30. var node = document.createElement("style");
  31. node.type = "text/css";
  32. node.appendChild(document.createTextNode(css));
  33. var heads = document.getElementsByTagName("head");
  34. if (heads.length > 0) {
  35. heads[0].appendChild(node);
  36. } else {
  37. // no head yet, stick it whereever
  38. document.documentElement.appendChild(node);
  39. }
  40. }
  41. })();
Advertisement
Add Comment
Please, Sign In to add comment