NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name coingecko.compact // @namespace Greasemonkey Scripts // @include https://www.coingecko.com/* // @grant none // @description Make Coingecko more compact // @version 1.0 // @license MIT // ==/UserScript== (function() { 'use strict'; setTimeout(function(){ try{ var barraCoins = document.querySelector("body > div.header.dashboard > div:nth-child(5) > div"); var barraTop = document.querySelector("body > div.header.dashboard > div.tw-hidden.d-lg-block.middle-header.text-black.text-2xs > div"); barraTop.appendChild(barraCoins); document.querySelector(".middle-header").style.padding = 0; document.querySelector("body > div.header.dashboard > div:nth-child(5)").style.display = 'none'; document.getElementsByClassName("main-header")[0].style.height = "40px"; document.querySelector("body > div.header.dashboard").style.height = "60px"; //document.querySelector("body > div.container > div:nth-child(3) > div > div > div.row.no-gutters.tw-flex-auto.tw-justify-between").style.padding = "3px"; document.querySelector("body > div.container > div:nth-child(3) > div:nth-child(6) > div > div.portfolio-overview").style.paddingBottom = "0px"; document.querySelector("body > div.container > div:nth-child(3) > div:nth-child(6) > div > div.portfolio-overview > span:nth-child(1)").classList.remove('p-3'); document.querySelector("body > div.container > div:nth-child(3) > div:nth-child(6) > div > div.portfolio-overview > span:nth-child(2)").classList.remove('p-3'); document.querySelector("body > div.container > div:nth-child(3) > div:nth-child(6) > div > div.portfolio-overview > span:nth-child(3)").classList.remove('p-3'); }catch(e){ console.log("Compactar1: ", e);} try{ var ele1 = document.querySelector("body > div.container > div:nth-child(3) > div:nth-child(6) > div > div.portfolio-overview > span:nth-child(1)"); var ele2 = document.querySelector("body > div.container > div:nth-child(3) > div:nth-child(6) > div > div.portfolio-overview > span:nth-child(2)"); var ele3 = document.querySelector("body > div.container > div:nth-child(3) > div:nth-child(6) > div > div.portfolio-overview > span:nth-child(3)"); var barraSemiTop = document.querySelector("body > div.container > div:nth-child(3) > div:nth-child(6) > div > div.row.no-gutters.tw-justify-between.tw-flex.tw-items-center"); barraSemiTop.style.padding = "0px"; barraSemiTop.appendChild(ele1); barraSemiTop.appendChild(ele2); barraSemiTop.appendChild(ele3); }catch(e){ console.log("Compactar2: ", e);} try{ // Alterar atura Barra de conversao document.querySelector("body > div.container > div.full-width-mobile > div").style.paddingTop = "0px"; var base = "body > div.container > div.full-width-mobile > div > div.converter-field.tw-flex.flex-column.flex-md-row.tw-items-center.tw-justify-center.tw-py-4"; document.querySelector(base).style.marginBottom = "0px"; document.querySelector(base).style.height = "30px"; document.querySelector(base).children[0].children[0].style.height = "30px"; document.querySelector(base).children[0].children[1].style.height = "30px"; document.querySelector(base).children[2].children[0].style.height = "30px"; document.querySelector(base).children[2].children[1].style.height = "30px"; document.querySelector(base).children[2].children[1].children[0].classList.remove('tw-h-12'); document.querySelector(base).children[2].children[1].children[0].children[0].children[0].style.height = '30px' document.querySelector("#from_amount").style.height = "30px"; document.querySelector("#to_amount").style.height = "30px"; }catch(e){ console.log("Compactar3: ", e);} try{ // Mover barra de conversao var divBase = document.querySelector("body > div.container > div.tw-grid.tw-grid-cols-1.lg\\:tw-grid-cols-3 > div.tw-col-span-3.md\\:tw-col-span-2"); var divComCalculos = document.querySelector("body > div.container > div.full-width-mobile > div"); divComCalculos.style.paddingTop = "30px"; divBase.appendChild(divComCalculos); } catch(e){ console.log("Compactar 4", e); } },200); })();