A different method to make Wikipedia's math equations selectable without logging in
Wikipedia selectable MathML equations unofficial by danielzgtg

Details
Authordanielzgtg
LicenseCC Zero
Categorymediawiki, wikibooks, wikidata, wikifunctions, wikimedia, wikinews, wikipedia, wikiquote, wikisource, wikiversity, wikivoyage, wiktionary
Created
Updated
Code size1.2 kB
Code checksum429960c5
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
This makes the math equations on Wikimedia wikis selectable. The resulting selection can be copied without superscript and other markup. This is most useful for short equations and Greek letters; you may want to press "Edit" for complex ones. You don't need to log in or edit any common.css. This should be barely any different from the official version.
Source code
/* ==UserStyle==
@name Wikipedia selectable math equations unofficial
@version 20250403.03.31
@namespace ?
==/UserStyle== */
@-moz-document domain("mediawiki.org"), domain("wikibooks.org"), domain("wikidata.org"), domain("wikifunctions.org"), domain("wikimedia.org"), domain("wikinews.org"), domain("wikipedia.org"), domain("wikiquote.org"), domain("wikisource.org"), domain("wikiversity.org"), domain("wikivoyage.org"), domain("wiktionary.org") {
.mwe-math-mathml-a11y {
/*
* Shows the accessibility MathML hidden by
* https://gerrit.wikimedia.org/g/mediawiki/extensions/Math/+/81fa104e07ce641d38a2d7d37a9c68886895635a/modules/ext.math.css#20
*/
clip: revert !important;
overflow: revert !important;
position: revert !important;
width: revert !important;
height: revert !important;
opacity: revert !important;
/* Block the images that this userstyle replaces */
& ~ img {
display:none !important;
}
/*
* You might also want to try the official version at
* https://www.mediawiki.org/wiki/Extension:Math/advancedSettings
*
* I choose to set my math font-family in Firefox not CSS.
*/
}
}