arxiv html beautify (美化arxiv html版,沉浸式阅读)

beautify arxiv 美化arxiv html版,修改字体等,学术必备好帮手

اعتبارا من 20-03-2025. شاهد أحدث إصدار.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name         arxiv html beautify (美化arxiv html版,沉浸式阅读)
// @namespace    http://tampermonkey.net/
// @version      0.142
// @description  beautify arxiv 美化arxiv html版,修改字体等,学术必备好帮手
// @author       dlutor
// @match        https://arxiv.org/html/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=arxiv.org
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    window.onload=function(){
        document.querySelector("body > header.desktop_header").remove();
        document.querySelector("#main > div > div.package-alerts.ltx_document > button > span").click();
        const style = document.createElement('style');
        style.innerHTML = `.ltx_p, .ltx_abstract  .ltx_p{ font-family: 'STIX Two Math';}
        .ltx_transformed_inner>.ltx_p{ font-family: auto;}
        .ltx_text.ltx_ref_title {display: flex;}
        .ltx_tocentry_section>.ltx_ref>.ltx_ref_title>.ltx_tag {margin-right: 0rem;}
        body:after {content: ""; position: inherit;}
        nav.ltx_TOC {padding-top: 15px;}
        .ltx_page_main > .ltx_page_content {margin: 10px 1em 3.5em 1em;}`;
        document.head.appendChild(style);
        document.querySelector("#openForm").remove();
    }

    // Your code here...
})();