dotfiles

<-- duh.
git clone https://hhvn.uk/dotfiles
git clone git://hhvn.uk/dotfiles
Log | Files | Refs | Submodules | LICENSE

scripts.js (9493B)


      1 function addGlobalStyle(css) {
      2 	var head, style;
      3 	head = document.getElementsByTagName('head')[0];
      4 	if (!head) { return; }
      5 	style = document.createElement('style');
      6 	style.type = 'text/css';
      7 	style.innerHTML = css;
      8 	head.appendChild(style);
      9 }
     10 var hostname = window.location.hostname;
     11 if (hostname == "www.youtube.com") {
     12 addGlobalStyle("#watch7-sidebar *, #watch7-content *{background-color:#141726 !important; border-radius:#141726 !important;}#masthead-positioner, #masthead-positioner-height-offset{display:none !important;}#meta-contents{margin-bottom:2vw !important;}ytd-watch-flexy #secondary{padding:2.5vw !important;}ytd-watch-flexy #player{display:none !important;}ytd-watch-flexy #primary-inner, ytd-watch-flexy #secondary-inner{padding:2.5vw !important;margin:0.5vw !important;background-color:#14172666 !important}.ytp-videowall-still-info-content *{background-color:#0a0a10cc !important;padding:1vw;margin:0 !important;}.ytp-videowall-info-content{padding:0 !important;}a *{font-weight:bold !important;}*{color:#1e5eb3 !important;}#columns{margin:0 !important;padding-left:4vw !important;padding-right:4vw} .avatar-container *{  background-color:#141726 !important;}a{  font-weight:bold !important;}.sbdd_a *{  background-color:#141726 !important;  border:0 !important;}.ytp-ad-image-overlay *{  display:none !important;}ytd-video-masthead-ad-v3-renderer{  display:none !important;}ytd-section-list-renderer{  background-color:#070911 !important;}.ytd-page-manager{  background-color:#070911 !important;}#channel-container *{  background-color:#141726 !important;}app-toolbar *{  background-color:#141726 !important;g}ytd-guide-renderer{  background-color:#141726 !important;}ytd-mini-guide-renderer,ytd-mini-guide-renderer *{  background-color:#141726 !important;}ytd-section-list-renderer{  background-color:#070911 !important;}.ytd-page-manager{  background-color:#070911 !important;}#channel-container *{  background-color:#141726 !important;}app-toolbar *{  background-color:#141726 !important;g}ytd-guide-renderer{  background-color:#141726 !important;}ytd-clarification-renderer{  display:none !important;}::placeholder,input{font-family:monospace;}.ytd-playlist-panel-renderer{background:rgba(0,0,0,0) !important;}ytd-player #container #movie_player{background-color:#0a0a10 !important;}#merch-shelf{display:none !important;}#columns{background-color:#0a0a10;}#masthead-container #container{  background-color:#141726;}#masthead-container #container #logo-icon-container,#country-code,#guide-icon,#end #buttons{  display:none;}#container.ytd-searchbox input.ytd-searchbox{ color:#bbbbff !important;;}html{  font-family:monospace !important;  font-size:9px !important;}#top-level-buttons{  display:none !important;}ytd-menu-renderer{  display:none !important;}#companion,#like-bar{  display:none !important;}.style-scope .ytd-sentiment-bar-renderer{  display:none !important;}#subscribe-button{  display:none !important;}ytd-rich-metadata-renderer{  display:none !important;}yt-dropdown-menu{  display:none !important;}ytd-comment-simplebox-renderer{  display:none;}.ytd-comments #header{  display:none !important;}.ytd-video-owner-renderer{  display:none;}span{  color:#ffffff;}ytd-expander{  margin-left:0 !important;;}#collapsible .style-scope .ytd-video-secondary-info-renderer{  display:none !important;}ytd-player{  background-color:#0a0a10;}.ytp-gradient-bottom{  display:none;}.ytp-chrome-controls{  background-color:#141726;}");
     13 document.getElementsByTagName("html")[0].setAttribute("dark","true");
     14 }
     15 if (hostname == "gitlab.com") {
     16 var element = document.getElementsByTagName("tr");
     17 element.outerHTML = element.outerHTML;
     18 addGlobalStyle("*{color:#1e5eb3 !important;}#js-tab-pipeline *{background-color:#0a0a10 !important}form *{background-color:#0a0a10 !important;}h1,h2,h3,h4,h5,h6{color:inherit !important;}.avatar-container *{  background-color:#141726 !important;}.top-bar{  background:#111111 !important;}aside{  background-color:#111111 !important;}.js-jobs-container{  background-color:#111111 !important;}.build-job *{  background-color:#222222 !important;  border:0 !important;}body.ui-indigo .navbar-gitlab .navbar-sub-nav > li.active > button{  background-color:rgba(10,10,10,0.5) !important;}.content-block, .content-block *, .content-block * *{  background-color:#141726 !important;}.dropdown{  background-color:rgba(0,0,0,0) !important;}.file-holder *{  background-color:#141726 !important;}.banner-callout{  display:none !important;}.bg-light{ background-color:#141726 !important; border:none !important;}*{  color:#1e5eb3 !important;  border-radius:0 !important;}.avatar-tile{  background-color:#141726 !important;}.avatar-container{  background-color:rgba(0,0,0,0) !important;}textarea{  border:0 !important;  background-color:rgba(50,50,50,0.5) !important;}.input-group-prepend,.input-group-prepend div{  border:0 !important;  background-color:rgba(25,25,25,0.5) !important;}gspan{color:#aaaaaa !important}.commit-sha-group div{  background-color:#141726 !important;  border:0 !important;  color:#ffffff !important;}.ci-status-link{  display:none !important;}.card, .card div{  background-color:#141726 !important;}.card{  border:0 !important;}.row-content-block{  background-color:#141726;  border:0 !important;}.commit-header{  background-color:#141726 !important;  border:0 !important;}body{font-family:monospace !important}.toggle-sidebar-button{  background-color:#141726;  border:0 !important;}.dropdown-menu{  background-color:#141726;}input{  background:rgba(50,50,50,0.5) !important;}.cover-block{  background-color:#141726;  color:#ffffff !important;  padding-bottom:5vh !important;}.cover-block p,.cover-block .cover-title{  color:#ffffff !important;}.profile-link-holder{  color:#ffffff !important;}.cover-block .scrolling-tabs-container .nav-links{  border-bottom:0;  position:relative;  top:5vh;}.cover-block .scrolling-tabs-container .nav-links li{  border-top:#ffffff 1px solid !important;}.user-caller{display:none !important;}.avatar-container{border:0 !important;border-radius:0 !important;}article{border:0 !important;}article div{background-color:#141726 !important;  border:0 !important;  color:#ffffff !important;}article p{  color:#ffffff !important;}code{  background-color:rgba(15,15,15,0.5)}body{  background-color:#0a0a10;  color:#1e5eb3 !important;}#content-body input,#content-body button,#content-body.dropdown,#content-body a{  border:none;  background-color:rgba(0,0,0,0) !important;  color:#1e5eb3 !important;font-weight:bold !important;}header{  background-color:#141726 !important;}.nav-sidebar{  background-color:#141726 !important;}.fly-out-list{  background-color:#141726 !important;  border:0;  border:#393982 1px solid !important;  color:#ffffff !important;}a{  color:#ffffff !important;}.info-well{  background-color:rgba(0,0,0,0);  border:0;}.bs-callout{  display:none !important;}.count-badge-count{  display:none !important;}table{  border:0 !important;  background-color:rgba(0,0,0,0) !important;  color:#ffffff !important;}.table-holder{  border:0 !important;}thead th{  background-color:#141726 !important;  border:0 !important;}tr{  border-bottom-color:#141726 !important;}tr:hover{  border-bottom-color:#141726 !important;  display:}");
     19 }
     20 if (hostname == "searx.olymp.to" || hostname == "searx.me") {addGlobalStyle("*{color:#1e5eb3 !important;border-color:#1e5e3 !important;}#categories label{  background-color:#141726;  border:none !important;  padding:1vw;  cursor:pointer;  border-bottom:#5555 5px solid !important;}.result{  background-color:rgba(0,0,0,0) !important;}.highlight{  background-color:#aaa !important;}.alert{  background-color:rgba(10,10,10,0.5) !important;}.panel div{  background-color:#0a0a10 !important;  color:#1e5eb3 !important;}.panel img{  border:7.5px solid #141726}.searx-navbar{  background-color:#141726;}body{  background-color:#0a0a10;  font-family:monospace !important;}input,button{  background-color:rgba(0,0,0,0) !important;}.footer{  display:none;}");}
     21 function wikipedia() {addGlobalStyle("#mw-panel{margin:0 !important;width:10vw !important;}body{margin-right:10vw !important;}mw-navigation{display:none !important;}*{  border-color:#333333 !important;}img{  background-color:#333 !important;}code{color:#892b2b;border:0 !important;border-bottom:#fff 1px solid !important}html *{  background-color:#0a0a10 !important;  border-radius:0 !important;}p,h1,h2,h3,h4,h5,h6{  color:#892b2b !important;}.collapsible-heading div{  display:none !important;}th,td{  color:#ffffff;}a{  color:#3ab475 !important;}div{  color:#892b2b !important;}.mw-wiki-logo{  display:none !important;}#p-logo{  display:none !important;}#content{  border:none !important;}#mp-upper *,#mp-bottom *,#mp-center *,#mp-other-content *,#mp-other-lower *{  border:0 !important;}");}
     22 if (hostname == "en.wikipedia.org") {
     23 wikipedia();
     24 }
     25 if (hostname == "en.m.wikipedia.org") {
     26 wikipedia();
     27 }
     28 if (hostname == "duckduckgo.com") {addGlobalStyle("body *{background-color:#0a0a10 !important;color:#1e5eb3 !important;}a *{text-decoration:underline !important;}#header_wrapper *{background-color:#141726 !important;}.header--aside{display:none !important;}#header_wrapper{width:100vw !important; background-color:#141726 !important;}.header__search{border:#1e5eb3 1px solid !important;}div.search-filters-wrap::before{display:none !important;}div.search-filters-wrap::after{display:none !important;}.results--ads{display:none !important;}#header, #header *{background-color:#141726 !important;}")
     29 }