RedditSimplifier

turns off subreddit style and hides sidebar

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         RedditSimplifier
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  turns off subreddit style and hides sidebar
// @author       hello_frenz
// @match        https://www.reddit.com/*
// @match        https://old.reddit.com/*
// @grant        none
// ==/UserScript==



//Paste: https://pastebin.com/XfdxTbzU

(function() {
    'use strict';
    var chkStyle = $("#res-style-checkbox");
    if (chkStyle.prop('checked')){
        chkStyle.click();
    }
    $(".side").hide();
    var hide = $("<button id='btnHideSide'>");
    hide.text(">>");
    hide.css("position", "absolute");
    hide.css("bottom", "0px");
    hide.css("right", "0px");
    hide.css("height", "13px");
    hide.css("line-height", "10px");
    hide.css("margin", "0px");
    hide.css("padding", "0px");
    hide.css("display", "none");
    hide.click(function(){
        $(".side").hide();
        $("#btnShowSide").show();
        $("#btnHideSide").hide();
    });
    $("#header").append(hide);
    var show = $("<button id='btnShowSide'>");
    show.text("<<");
    show.css("position", "absolute");
    show.css("bottom", "0px");
    show.css("right", "0px");
    show.css("height", "13px");
    show.css("line-height", "10px");
    show.css("margin", "0px");
    show.css("padding", "0px");
    show.click(function(){
        $(".side").show();
        $("#btnShowSide").hide();
        $("#btnHideSide").show();
    });
    $("#header").append(show);
    // Your code here...
})();