Skip to content

Instantly share code, notes, and snippets.

@erikvold
Created September 9, 2013 02:43
Show Gist options
  • Save erikvold/6490913 to your computer and use it in GitHub Desktop.
Save erikvold/6490913 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @id www.attackmagazine.com-4bb9e0c0-f0bc-8d47-a540-d7d92ddc020d@erikvold
// @name Wideer Attack Magazine
// @version 1.0
// @namespace erikvold
// @author Erik Vold
// @description
// @include http://www.attackmagazine.com/*
// @run-at document-end
// ==/UserScript==
[
GM_xpath('//div[@id="wrapper"]/div[@class="aside"]'),
document.getElementById('comments'),
document.getElementById('colophon'),
GM_xpath('//div[@id="articles"]/div[@class="tags"]')
].forEach(function(ele) {
ele.parentNode.removeChild(ele);
});
document.getElementById('content').setAttribute('style', 'width: auto;');
document.getElementById('header').setAttribute('style', 'width: auto;');
GM_xpath('//div[@id="articles"]//div[@class="text-wrap"]').setAttribute('style', 'width: auto;');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment