Greasy Fork

arxiv html beautify

beautify arxiv

目前为 2025-03-17 提交的版本。查看 最新版本

// ==UserScript==
// @name         arxiv html beautify
// @namespace    http://tampermonkey.net/
// @version      0.13
// @description  beautify arxiv 
// @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;}`;
        document.head.appendChild(style);
        document.querySelector("#openForm").remove();
    }

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