Greasy Fork is available in English.

Down with the sloth!

Replace the header background on /r/Guildwars2/

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name     Down with the sloth!
// @include https://*.reddit.com/r/Guildwars2/*
// @description:en Replace the header background on /r/Guildwars2/
// @run-at document-start
// @grant    GM_addStyle
// @version 1.6
// @namespace https://greasyfork.org/users/31925
// @description Replace the header background on /r/Guildwars2/
// ==/UserScript==

GM_addStyle ("#header::after , #header::before {display: none !important;}");
var position = Math.floor((Math.random() * 100) + 1); 
var picarray = ["http://i.imgur.com/ea5u5eO.jpg" , "http://i.imgur.com/TEJetJY.jpg" , "http://i.imgur.com/9w3wJve.jpg" , "http://i.imgur.com/UULnDzW.jpg" , "http://i.imgur.com/h0hZfon.jpg" , "http://i.imgur.com/jMsPyQR.jpg" , "http://i.imgur.com/HoiSUqN.jpg" , "http://i.imgur.com/oCYUddy.jpg"]
var picture = picarray[Math.floor(Math.random() * picarray.length)]; 

document.addEventListener("load", function() {
var costumheader = document.getElementById("header");
costumheader.style.backgroundImage = "url('" + picture + "')";
costumheader.style.backgroundPosition = "50% " + position + "%";
costumheader.style.backgroundSize = "cover";
}, true);

// if you dont like the parallax scroll effect delete or rem the script after this line.

document.onscroll = function() {
parallax = "50% " + (position + (-window.scrollY / 15)).toFixed(1) + "%";
document.getElementById("header").style.backgroundPosition = parallax; };