Greasy Fork is available in English.
Geeksforgeeks browse experience improve
当前为
// ==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;
"><</div>`;
ele = document.querySelector('body');
ele = ele.firstChild;
ele.outerHTML = btn + ele.outerHTML;
*/
})();