dapanyuntu.better

dapanyuntu better

  1. // ==UserScript==
  2. // @name dapanyuntu.better
  3. // @namespace linux.do/u/io.oi/dapanyuntu.better
  4. // @version 1.0.0
  5. // @author LINUX.DO
  6. // @description dapanyuntu better
  7. // @license MIT
  8. // @icon https://dapanyuntu.com/favicon.ico
  9. // @match https://dapanyuntu.com/*
  10. // @grant GM_addStyle
  11. // ==/UserScript==
  12.  
  13. (t=>{if(typeof GM_addStyle=="function"){GM_addStyle(t);return}const e=document.createElement("style");e.textContent=t,document.head.append(e)})(" .view{height:64px!important;padding:0!important}.view .view-select{height:100%!important;margin-left:0!important}.view .view-select .column1{height:100%!important;padding:10px!important}.view .fr{height:64px!important;line-height:64px!important;padding-top:0!important}.map-scan .sidebar{height:auto!important;padding:10px!important}.map-scan .sidebar :is(select){width:100%!important} ");
  14.  
  15. (function () {
  16. 'use strict';
  17.  
  18. window.addEventListener("load", () => {
  19. var _a, _b, _c, _d;
  20. (_a = document.querySelector("div.view h1")) == null ? void 0 : _a.remove();
  21. (_b = document.querySelector("div.view h2")) == null ? void 0 : _b.remove();
  22. (_c = document.querySelector("div.view div.zoom")) == null ? void 0 : _c.remove();
  23. document.querySelectorAll("div.sidebar3").forEach((el) => el.remove());
  24. (_d = document.querySelector("div#ss-chat-p")) == null ? void 0 : _d.remove();
  25. });
  26.  
  27. })();