arxiv html beautify

beautify arxiv

目前為 2025-03-17 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name arxiv html beautify
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  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';} .ltx_transformed_inner>.ltx_p{ font-family: auto;}`;
  21. document.head.appendChild(style);
  22. document.querySelector("#openForm").remove();
  23. }
  24.  
  25. // Your code here...
  26. })();