Hides unnecessary elements on arxiv.org/html/*
, giving you a clean view.
arXiv HTML Debloat by PRO-2684
Mirrored from https://github.com/PRO-2684/gadgets/raw/main/arxiv_html_debloate/arxiv_html_debloate.user.css
Details
AuthorPRO-2684
Licensegpl-3.0
Categoryarxiv
Created
Updated
Size1.5 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
See GitHub repo for detailed information
Source code
/* ==UserStyle==
@name arXiv HTML Debloat
@namespace github.com/openstyles/stylus
@version 1.0.2
@description Hides unnecessary elements on `arxiv.org/html/*`, giving you a clean view.
@author PRO-2684
@license gpl-3.0
@preprocessor stylus
@var checkbox hideReportIssue 'Hide "Report Issue"' 1
@var checkbox hideReportSel 'Hide "Report Issue for Selection"' 1
@var checkbox hideBeta 'Hide Beta banner' 1
@var checkbox hideTargetSec 'Hide License and Watermark' 0
@var checkbox hideHeader 'Hide Header' 0
@var checkbox hideAlerts 'Hide Alerts of Conversion Errors' 0
==/UserStyle== */
@-moz-document url-prefix("https://arxiv.org/html/") {
if hideReportIssue {
#openForm {
display: none;
}
}
if hideReportSel {
#small-report-button {
display: none !important;
}
}
if hideBeta {
body:after {
content: "";
display: none;
}
}
if hideTargetSec {
#target-section {
display: none;
}
}
if hideHeader {
header.desktop_header, header.mob_header {
display: none;
}
// Shrink top margin so as to fill the gap
.ltx_page_main > .ltx_page_content {
margin-top: 1em;
}
.ltx_page_main >.ltx_TOC {
padding-top: 1em;
}
}
if hideAlerts {
.package-alerts {
display: none;
}
}
}