Geeksforgeeks browse improve

Geeksforgeeks browse experience improve

Fra 23.02.2023. Se den seneste versjonen.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Geeksforgeeks browse improve
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Geeksforgeeks browse experience improve
// @author       fvydjt
// @match        https://www.geeksforgeeks.org/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=geeksforgeeks.org
// @grant        GM_addStyle
// ==/UserScript==

(function() {
    'use strict';
    // Wide Screen Display
    let css = `
        body.single .article-page_flex .leftBar {
        flex-basis: calc(55% + 2px);
        max-width: calc(95% + 2px);
        min-width: calc(80% + 2px);
    }
    `;
    let css2 = `
    .make_sticky {
        position: initial !important;
    }
    `;
    GM_addStyle(css);
    GM_addStyle(css2);
    // remove ads in article
    let ele = document.querySelector('.inArticleAds');
    ele.outerHTML='';
    // create button for menu control
    /*
    let btn = `<div id="btn" style="
    position: fixed;
    z-index: 1;
    left: 238px;
    top: 300px;
    width: 20px;
    height: 30px;
    background: #308d46;
    font-size: 18px;
    border-radius: 0% 100% 100% 0%;
    padding-left: 2px;
    padding-top: 4px;
    font-weight: bold;
    color: #cddc39;
">&lt;</div>`;
    ele = document.querySelector('body');
    ele = ele.firstChild;
    ele.outerHTML = btn + ele.outerHTML;
*/
})();