agubelu / Twitter background restorer

// ==UserScript==
// @name        Twitter background restorer
// @namespace   agubelu
// @include     https://twitter.com/
// @grant       GM_getValue
// @grant       GM_setValue
// @version     1
// ==/UserScript==

  var bg_url = GM_getValue("backgroundURL", false);

  if(!bg_url) {
   bg_url = prompt("Please input your background image URL:", "");
   GM_setValue("backgroundURL", bg_url);
  }

  document.body.style.backgroundImage = "url('" + bg_url + "')";
  document.body.style.backgroundRepeat = "no-repeat";
  document.body.style.backgroundAttachment = "fixed";