arxiv html beautify

Beautify arxiv. 美化arxiv html版,修改字体等,沉浸式阅读,学术必备好帮手

  1. // ==UserScript==
  2. // @name arxiv html beautify
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.144
  5. // @description Beautify arxiv. 美化arxiv html版,修改字体等,沉浸式阅读,学术必备好帮手
  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. body:after {content: ""; position: inherit;}
  25. nav.ltx_TOC {padding-top: 15px;}
  26. .ltx_page_main > .ltx_page_content {margin: 10px 1em 3.5em 1em;}`;
  27. document.head.appendChild(style);
  28. document.querySelector("#openForm").remove();
  29. }
  30.  
  31. // Your code here...
  32. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址