Skip to content

Instantly share code, notes, and snippets.

@unlobito
Created July 26, 2010 00:49
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 unlobito/490043 to your computer and use it in GitHub Desktop.
Save unlobito/490043 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name FixFA
// @namespace http://labs.henriwatson.com/greasemonkey/fixfa/
// @description Change the amount of screen space FA uses.
// @include http://*.furaffinity.net/*
// @include https://*.furaffinity.net/*
// ==/UserScript==
(function() {
// Detect Firebug
if (document.getElementsByTagName("div")[0].id == "_firebugConsole") {
content = document.getElementsByTagName("div")[1];
} else {
content = document.getElementsByTagName("div")[0];
}
// Change the CSS for the div we hooked onto
// The end result should be this "position: absolute; width: 80%; left: 50%; margin-left: -40%;"
content.style.position = "absolute";
content.style.width = "80%";
content.style.left = "50%";
content.style.marginLeft = "-40%";
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment