Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.