Twitter Background Image

Allows you to use images as background for Twitter.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Twitter Background Image
// @author       cass_per
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Allows you to use images as background for Twitter.
// @match        *twitter.com/*
// @license      MIT
// ==/UserScript==

// Replace the https:// url with any image URL
// This URL *MUST* be inside the single qoutes! Do not remove ''.

document.body.style.backgroundImage = "url('https://www.gardeningknowhow.com/wp-content/uploads/2020/12/lonely-japanese-cherry.jpg')";

// Keeps the background image fixed while you scroll. If you delete this the image will stay at the top of the page.
// https://www.w3schools.com/jsref/prop_style_backgroundattachment.asp
document.body.style.backgroundAttachment = "fixed";

// If you want background image to repeat:
// https://www.w3schools.com/jsref/prop_style_backgroundrepeat.asp
document.body.style.backgroundRepeat = "no-repeat";

// If you want to change image sizing/style:
// https://www.w3schools.com/jsref/prop_style_backgroundsize.asp
document.body.style.backgroundSize = "100%";