User:Bequw/singleQuote.js

//Implements a User pref to switch from double quotes to single quotes jQuery(function {	var dqSpans = [];	if(document.querySelectorAll)		dqSpans = document.querySelectorAll('.mention-gloss-double-quote');	else { //IE <8		var spans = document.getElementsByTagName('span');		for (var i = 0; i < spans.length; i++){			if(spans[i].getAttribute('class') == 'mention-gloss-double-quote')				dqSpans.push(spans[i]);		}	}	if (dqSpans.length % 2 === 0){		for(var i = 0; i < dqSpans.length; i += 2){			dqSpans[i].innerHTML = '\;			dqSpans[i+1].innerHTML = '\;		}	} });