Advertisement
Linniem

ehentai script

Aug 27th, 2022
556
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 0.89 KB | Source Code | 0 0
  1. // ==UserScript==
  2. // @name         ehentai 5 to 6 col
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  change the column count
  6. // @author       Linniem
  7. // @match        https://e-hentai.org/*
  8. // @match        https://exhentai.org/*
  9. // @icon         https://www.google.com/s2/favicons?sz=64&domain=e-hentai.org
  10. // @grant        GM_addStyle
  11. // ==/UserScript==
  12.  
  13. if (!document.querySelector('.gld')) {
  14.     return;
  15. }
  16.  
  17. GM_addStyle(`
  18.  
  19.     .gld {
  20.         grid-template-columns: repeat(6, 1fr) !important;
  21.     }
  22.  
  23.     .gl3t > a > img {
  24.         width: 100% !important;
  25.         height: auto !important;
  26.     }
  27.  
  28.     .gl3t {
  29.         width: 100% !important;
  30.         height: auto !important;
  31.         border: none !important;
  32.     }
  33.  
  34.     .gl1t {
  35.         width: 100% !important;
  36.         min-width: 0px !important;
  37.         max-width: 9999px !important;
  38.     }
  39.  
  40. `);
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement