Skip to content

Instantly share code, notes, and snippets.

@MightyPork
Created July 23, 2015 17:41
Show Gist options
  • Save MightyPork/c3fbf70449a71c3b5c23 to your computer and use it in GitHub Desktop.
Save MightyPork/c3fbf70449a71c3b5c23 to your computer and use it in GitHub Desktop.
Userscript to fix twitter's background
// ==UserScript==
// @name Twitter Background Fixer
// @namespace http://your.homepage/
// @version 0.1
// @description Adds your custom color and image back to twitter's background.
// @author MightyPork
// @match https://twitter.com/
// @grant none
// ==/UserScript==
var color = 'black';
var image = 'https://pbs.twimg.com/profile_background_images/378800000180754009/9E1_aiGs.png';
var css = 'body { background:'+color+' url("'+image+'") no-repeat center top fixed !important;}';
var elem = document.createElement('STYLE');
elem.textContent = css;
document.head.appendChild(elem);
// Fuck twitter's redesign
// ~ MightyPork
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment