User:Ilikecomputers/cosmos.js: Difference between revisions
Content added Content deleted
(comments) |
(all this functionality moved somewhere else) Tag: Replaced |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
//goodbye! i don't need you any more! |
|||
//A very hackey way to fix a niche styling issue: |
|||
//Example markup: |
|||
// * This is a bullet point |
|||
// ** {{quote|this is a quote}} |
|||
// ** This is a bullet point after a quote <-- this will have double bullet points |
|||
document.querySelectorAll('table').forEach(function (e) { |
|||
if (e.nextElementSibling && e.nextElementSibling.nodeName === 'UL') { |
|||
var sibling = e.nextElementSibling; |
|||
if (sibling.childNodes[0].childNodes[0].nodeName === 'UL') { |
|||
sibling.childNodes[0].classList.add('nodoublebullet'); |
|||
} |
|||
} |
|||
}) |
|||
document.styleSheets[0].insertRule(".nodoublebullet::marker {content: ''}") |