Geeksforgeeks browse improve

Geeksforgeeks browse experience improve

Verze ze dne 23. 02. 2023. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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;
*/
})();