Expands wowhead Site to take full width
当前为
// ==UserScript==
// @name Wowhead Expand Site
// @namespace http://tampermonkey.net/
// @version 0.7
// @description Expands wowhead Site to take full width
// @author Twitter: @AcademicoMDP
// @match *://*.wowhead.com/*
// @grant none
// ==/UserScript==
var expandSite = function(){
var el = document.getElementsByClassName('header-expand-site');
for (var i=0;i<el.length; i++) {
el[i].click();
}
};
window.onload = function() {
expandSite();
setTimeout(function(){
document.body.scrollTop = 0; // For Safari
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
}, 0);
};