Skip to content

Instantly share code, notes, and snippets.

@xRahul
Created May 26, 2019 08:04
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 xRahul/da2926ea2fd67db58a25af87f606a02a to your computer and use it in GitHub Desktop.
Save xRahul/da2926ea2fd67db58a25af87f606a02a to your computer and use it in GitHub Desktop.
GeeksForGeeks Distraction Free Editorials UserScript
// ==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