arxiv html beautify

beautify arxiv

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

  1. // ==UserScript==
  2. // @name arxiv html beautify
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.13
  5. // @description beautify arxiv
  6. // @author dlutor
  7. // @match https://arxiv.org/html/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=arxiv.org
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. window.onload=function(){
  17. document.querySelector("body > header.desktop_header").remove();
  18. document.querySelector("#main > div > div.package-alerts.ltx_document > button > span").click();
  19. const style = document.createElement('style');
  20. style.innerHTML = `.ltx_p, .ltx_abstract .ltx_p{ font-family: 'STIX Two Math';}
  21. .ltx_transformed_inner>.ltx_p{ font-family: auto;}
  22. .ltx_text.ltx_ref_title {display: flex;}
  23. .ltx_tocentry_section>.ltx_ref>.ltx_ref_title>.ltx_tag {margin-right: 0rem;}`;
  24. document.head.appendChild(style);
  25. document.querySelector("#openForm").remove();
  26. }
  27.  
  28. // Your code here...
  29. })();