Skip to content

Instantly share code, notes, and snippets.

@Far-Se
Created March 23, 2022 19:53
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 Far-Se/fcece745f2c954c026f1b493494eb4bc to your computer and use it in GitHub Desktop.
Save Far-Se/fcece745f2c954c026f1b493494eb4bc to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name xCSS Minimalistic Scroll
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http://*/*
// @match https://*/*
// @grant none
// @run-at document-start
// @icon https://t1.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://www.w3schools.com/
// ==/UserScript==
setInterval(()=>{
if(!document.getElementById('xScroll'))
{
document.body.insertAdjacentHTML('afterend',`<style id="xScroll" type="text/css">
html::-webkit-scrollbar {
width: 5px!important;
height: 5px!important;
}
html::-webkit-scrollbar-thumb {
background-color: #383838!important;
border: 2px solid #484848!important;
border-radius: 5px!important;
}
html::-webkit-scrollbar-track {
background-color: transparent!important;
}
html::-webkit-scrollbar-thumb:hover {
background: #282828!important;
}
html::-webkit-scrollbar-thumb:active {
background: #181818!important;
}
html::-webkit-scrollbar-corner {
background: #383838!important;
}
</style>`);
}
},100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment