Advertisement
Guest User

Userscript for Mangaupdates - reduces font size and padding

a guest
Mar 12th, 2019
737
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        Mangaupdates smaller font size & padding
  3. // @description Reduces the font size from 14 to 12 and reduces padding between list entries
  4. // @match       *://www.mangaupdates.com/*
  5. // @version     1.0
  6. // @grant       none
  7. // ==/UserScript==
  8.  
  9. function addGlobalStyle(css) {
  10. var head, style;
  11. head = document.getElementsByTagName('head')[0];
  12. if (!head) { return; }
  13. style = document.createElement('style');
  14. style.type = 'text/css';
  15. style.innerHTML = css;
  16. head.appendChild(style);
  17. }
  18.  
  19. addGlobalStyle('html { font-size: 12px ! important; }');
  20. addGlobalStyle('.p-1 { padding: 0.1rem ! important; }');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement