Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name 5 To 6 Column
- // @match *://e-hentai.org/*
- // @match *://exhentai.org/*
- // @icon https://www.google.com/s2/favicons?domain=e-hentai.org
- // ==/UserScript==
- // https://www.codegrepper.com/code-examples/css/tampermonkey+custom+css
- function addGlobalStyle(css) {
- var head, style;
- head = document.getElementsByTagName('head')[0];
- if (!head) { return; }
- style = document.createElement('style');
- style.type = 'text/css';
- style.innerHTML = css.replace(/;/g, ' !important;');
- head.appendChild(style);
- }
- (function() {
- let gdo4 = document.getElementById("gdo4");
- if (gdo4)
- if (gdo4.childNodes[0].onclick) {
- let gdtls = document.getElementsByClassName("gdtl");
- for (let gdtl of gdtls)
- gdtl.style.width = "238px";//>202
- let gdt = document.getElementById("gdt");
- gdt.style.padding = "0px";
- gdt.style.maxWidth = "1920px";//gdtl.style.width * 6
- }
- let ido = document.getElementsByClassName("ido")[0];
- if (ido)
- ido.style.maxWidth = "1920px";//fullscreen
- let itg_gld = document.getElementsByClassName("itg gld")[0];
- if (itg_gld)
- itg_gld.style.gridTemplateColumns = "repeat(6,1fr)";
- // modify min-width of gl1t
- addGlobalStyle(".gl1t {min-width: 0px}");
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement