This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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