Skip to content

Instantly share code, notes, and snippets.

View vikasrtr's full-sized avatar
🎯
Focusing

Vikas Raturi vikasrtr

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am vikasrtr on github.
  • I am vikasrtr (https://keybase.io/vikasrtr) on keybase.
  • I have a public key ASBYHu90XC2slKFvBEn837dND7hlEe2VmazJccNBWHQ7vwo

To claim this, I am signing this object:

@vikasrtr
vikasrtr / bg-bookmarklet.js
Created October 22, 2018 05:31
Chnage White Background on Pages to some grey shade for eye comfort
// Keep adding more sites
javascript:(function(){
document.body.style.backgroundColor = "#eee";
var hostname = window.location.host;
if (hostname.includes("medium.com")) {
var mediumDivs=document.getElementsByClassName("section-content");
Array.prototype.forEach.call(mediumDivs,function(e){e.style.backgroundColor="#eee"});
} else if (hostname.includes("spark.apache.org")) {
var sparkDocs=document.getElementsByClassName("container-wrapper");
Array.prototype.forEach.call(sparkDocs,function(e){e.style.backgroundColor="#eee"});