User:Enterprisey/strike-archived.js

// $( function {    var archivedDivs = document.querySelectorAll( "div.boilerplate.archived" ),        toc = document.querySelector( "#toc ul" ),        possHdr,        tocSel;    if( !toc ) return;    for( var i = 0; i < archivedDivs.length; i++ ) {        possHdr = archivedDivs[i].previousElementSibling;        if( possHdr && possHdr.matches( "h1,h2,h3,h4,h5,h6" ) ) {            tocSel = "a[href$='" + $.escapeSelector( possHdr.querySelector( ".mw-headline" ).id ) + "']";            toc.querySelector( tocSel ).style.textDecoration = "line-through";        }    } } ); //