Skip to content

Instantly share code, notes, and snippets.

@stripedpurple
Last active May 17, 2020 21:33
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 stripedpurple/8ef75ff5057ee12732bee80239234fb2 to your computer and use it in GitHub Desktop.
Save stripedpurple/8ef75ff5057ee12732bee80239234fb2 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name toools.us css fixer
// @namespace http://tampermonkey.net/
// @version 1.0
// @description try to take over the world!
// @author You
// @match *://toool.us/*
// @grant none
// @update https://gist.github.com/viruscmd/8ef75ff5057ee12732bee80239234fb2/raw/tools.us.user.js
// ==/UserScript==
(function() {
'use strict';
addStyle(`
body {
margin: auto;
padding: 0 1.5rem;
max-width: 1024px;
width: 100%;
box-sizing: border-box;
}
img {
max-width: 100%;
height: auto;
}
`)
function addStyle(styleString) {
const style = document.createElement('style');
style.textContent = styleString;
document.head.append(style);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment