Skip to content

Instantly share code, notes, and snippets.

@samuelstevens9
Last active July 7, 2017 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuelstevens9/d48328100851270f62f41a33188f9c84 to your computer and use it in GitHub Desktop.
Save samuelstevens9/d48328100851270f62f41a33188f9c84 to your computer and use it in GitHub Desktop.
GreaseMonkey Script to make WIRED Easy to Read
// ==UserScript==
// @name Wired Easy Read
// @namespace samuelstevens9
// @include https://www.wired.com/story/*
// @include https://www.wired.com/\d+?/\d+?/.*
// @version 1
// @grant none
// ==/UserScript==
var arts = document.getElementsByTagName('article');
var bge = document.createElement('div');
bge.style.backgroundColor = "#FFF";
bge.style.position="fixed";
bge.id = "sambo_bge";
bge.style.top = 0;
bge.style.left = 0;
bge.style.width = "100%"
bge.style.height = "100%"
bge.style.zIndex = 1000000000000;
bge.style.overflow = "scroll";
bge.style.padding = "50px 25%";
document.body.appendChild(bge);
bge.appendChild(arts[0]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment