3 ms·
paste to console var e = document.getElementsByClassName('markup--strong');for (var i = 0; i < e.length; i++) {e[i].style.fontWeight = 'normal'}
by 0942v8653 10y ago
paste to console
var e = document.getElementsByClassName('markup--strong');for (var i = 0; i < e.length; i++) {e[i].style.fontWeight = 'normal'}
- rahulchowdhury 10y agoThanks for the command, but I have already done it myself :-D :-P
- jffry 10y agoI do a lot of fiddling around in the console for things like these, and the advent of ES2016 for..of loops makes this quite a lot simpler nowadays: for (let a of document.querySelectorAll('a')) { a.style.fontWeight = 'normal' } Alternatively, you can use the more functional: Array.from(document.querySelectorAll('a')).map(a => a.style.fontWeight = 'bold') If your browser supports the spread operator you could equivalently do: [...document.querySelectorAll('a')].map(a => a.style.fontWeight = 'bold')