Regarding this line:
if ( window.BAWarnAsJsMessage === true ) { mw.util.jsMessage( warningText.replace( / id="badanchorwarn-/g, ' id="badanchorwarn-jsmsg-' ) ); }
GeSHi doesn't seem to like regexes that have a space as the first character. Pygments handles them correctly.
I have confirmed that the script still runs. --Eighty5cacao (talk) 19:37, 16 January 2017 (UTC)