dapanyuntu.better

dapanyuntu better

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         dapanyuntu.better
// @namespace    linux.do/u/io.oi/dapanyuntu.better
// @version      1.0.0
// @author       LINUX.DO
// @description  dapanyuntu better
// @license      MIT
// @icon         https://dapanyuntu.com/favicon.ico
// @match        https://dapanyuntu.com/*
// @grant        GM_addStyle
// ==/UserScript==

(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} ");

(function () {
  'use strict';

  window.addEventListener("load", () => {
    var _a, _b, _c, _d;
    (_a = document.querySelector("div.view h1")) == null ? void 0 : _a.remove();
    (_b = document.querySelector("div.view h2")) == null ? void 0 : _b.remove();
    (_c = document.querySelector("div.view div.zoom")) == null ? void 0 : _c.remove();
    document.querySelectorAll("div.sidebar3").forEach((el) => el.remove());
    (_d = document.querySelector("div#ss-chat-p")) == null ? void 0 : _d.remove();
  });

})();