Skip to content

Instantly share code, notes, and snippets.

@precla
Last active October 16, 2020 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save precla/bbf345cd2670e423c096d4cca49c1e00 to your computer and use it in GitHub Desktop.
Save precla/bbf345cd2670e423c096d4cca49c1e00 to your computer and use it in GitHub Desktop.
PCEkspert centered
// ==UserScript==
// @name PCEkspert Centered
// @version 0.1.0
// @description pcekspert centered
// @author precla / pci_e3x
// @license GPL 3.0
// @run-at document-start
// @include http://forum.pcekspert.com/
// @include https://forum.pcekspert.com/
// @match http://forum.pcekspert.com/*
// @match https://forum.pcekspert.com/*
// @grant none
// ==/UserScript==
document.addEventListener("DOMContentLoaded", DOM_ContentReady);
function DOM_ContentReady () {
addGlobalStyle("html { max-width: 1440px !important; margin: 0 auto !important; } #posts div#__xclaimwords_wrapper img { max-width: 100% !important } ");
}
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;
head.appendChild(style);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment