JSFiddle - React, Tailwind, and code Playground
HTML
Your data is:
<div id="d"></div>
CSS
body {
list-style-image:url('23 "Cows", leaping!');
}
JavaScript
var getStyle = function(el, cssprop) {
if (el.currentStyle) {
return el.currentStyle[cssprop];
} else if (document.defaultView && document.defaultView.getComputedStyle) {
return document.defaultView.getComputedStyle(el, "")[cssprop];
} else {
return (el.style) ? el.style[cssprop] : 0;
}
};
var pullCSSMeta = function() {
var aMeta = getStyle(document.body, 'listStyleImage').split('/'),
meta = aMeta[aMeta.length - 1];
return decodeURIComponent(meta.substr(0, meta.length - 1).replace(/"$/,''));
};
document.getElementById('d').innerHTML = pullCSSMeta();