Created
May 26, 2019 08:04
-
-
Save xRahul/da2926ea2fd67db58a25af87f606a02a to your computer and use it in GitHub Desktop.
GeeksForGeeks Distraction Free Editorials UserScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name GeeksForGeeks Distraction Free Editorials | |
// @namespace http://tampermonkey.net/ | |
// @version 0.4 | |
// @description Hide the left and right sidebars and top nav bar for distraction free editorial reading | |
// @author Rahul Jain (https://rahulja.in) | |
// @match https://www.geeksforgeeks.org/*/ | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
if (jQuery('#secondary').length > 0) | |
jQuery('#secondary').hide(); | |
if (jQuery('.leftSideBarParent').length > 0) | |
jQuery('.leftSideBarParent').hide(); | |
if (jQuery('#primary').length > 0) | |
jQuery('#primary').css('width', '98%'); | |
if (jQuery('#masthead').length > 0) | |
jQuery('#masthead').hide(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment