Skip to content

Instantly share code, notes, and snippets.

@kzelda
Last active June 23, 2016 09:41
Show Gist options
  • Save kzelda/d1e53dbfe5300e0fc394d362869db079 to your computer and use it in GitHub Desktop.
Save kzelda/d1e53dbfe5300e0fc394d362869db079 to your computer and use it in GitHub Desktop.
DotnetOdyssey.com custom look
// ==UserScript==
// @name DotnetOdyssey
// @namespace http://tampermonkey.net/
// @version 0.1
// @description DotnetOdyssey full page
// @author You
// @match http://www.dotnetodyssey.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
setInterval(function(){
try{ document.querySelector(".sumome-share-client-wrapper").remove(); }catch(e){}
try{ document.querySelector("#sumome-welcomemat-wrapper").remove(); }catch(e){}
try{ document.body.style.paddingTop = "0px"; }catch(e){}
try{ document.querySelector(".x-navbar-wrap").remove(); }catch(e){}
try{ document.querySelector("aside").remove(); }catch(e){}
try{ document.querySelector(".x-main").style.width = "100%"; }catch(e){}
try{ document.querySelector(".entry-wrap").style.padding = "10px"; }catch(e){}
},500);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment