User:Kalotus/common.js

$('div#bodyContent a').wrap( " " );

$('div#bodyContent a').each(function {

// 1. Add isDisabled class to parent span this.parentElement.classList.add('isDisabled'); this.parentElement.setAttribute('title', this.href); // 2. Store href so we can add it later this.setAttribute('data-href', this.href); // 3. Remove href this.href = ''; // 4. Set aria-disabled to 'true' this.setAttribute('aria-disabled', 'true');

});