rem: aText=aText.replace(/<b>(.*?)<\/b>/g,'[b]$1[/b]'); aText=aText.replace(/<i>(.*?)<\/i>/g,'[i]$1[/i]'); aText=aText.replace(/<u>(.*?)<\/u>/g,'[u]$1[/u]'); aText=aText.replace(/<del>(.*?)<\/del>/g,'[s]$1[/s]'); aText=aText.replace(/<a class="body" href="(.*?)" target="_blank">(.*?)<\/a>/g,'[link=$1]$2[/link]'); aText=aText.replace(/<a href="(.*?)" target="_blank">(.*?)<\/a>/g,'[link=$1]$2[/link]'); aText=aText.replace(/<a href="(.*?)">(.*?)<\/a>/g,'[link=$1]$2[/link]'); aText=aText.replace(/<font color=".*">(.*?)<\/font>/g,'$1'); /* Old way maybe? */ aText=aText.replace(/<span style="color:.*">(.*?)<\/span>/g,'$1'); aText=aText.replace(/<img .*?src="\/(.*?)".*?>/g,'[img]http: aText=aText.replace(/<img.*? src="(.*?)".*?>/g,'[img]$1[/img]'); aText=aText.replace(/<br><br><span class="small"(.*?)>(.*?)<\/span>/g,''); aText=aText.replace(/<blockquote(.*?)>(.*?)<\/blockquote>/g,''); aText=aText.replace(/\t/g,''); aText=aText.replace(/\n/g,''); aText=aText.replace(/<br>/g,'\n'); 
add:  aText = aText.replace(/<a href=".*?"><i>#([0-9]+)<\/i><\/a>/g,'#$1');  aText = aText.replace(/<(b|i|u)>/g,'[$1]'); aText = aText.replace(/<\/(b|i|u)>/g,'[/$1]'); aText = aText.replace(/<del>/g,'[s]'); aText = aText.replace(/<\/del>/g,'[/s]'); aText = aText.replace(/<a href="([^" \t\n<>]+)" target="_blank">/g,'[link=$1]'); aText = aText.replace(/<a href="(\/[^" \t\n<>]+)">/g,'[link=$1]'); aText = aText.replace(/<\/a>/g,'[/link]');  aText = aText.replace(/<img .*?src="\/(.*?)".*?>/g,'[img]http: aText = aText.replace(/<img.*? src="(.*?)".*?>/g,'[img]$1[/img]'); aText = aText.replace(/<br><br><span class="small"(.*?)>(.*?)<\/span>/g,''); aText = aText.replace(/<blockquote(.*?)>(.*?)<\/blockquote>/g,''); aText = aText.replace(/\t/g,''); aText = aText.replace(/\n/g,''); aText = aText.replace(/<br>/g,'\n');   if (gRTSE.prefsGetBool('extensions.rtse.sponsor')) { aText = aText.replace(/<span style="color: (.*?);">/g,'[color=$1]'); aText = aText.replace(/<\/span>/g,'[/color]'); } else { aText = aText.replace(/<span style="color:.*?">/g,''); aText = aText.replace(/<\/span>/g,''); }   aText = aText.replace(/&amp;/g,'&'); aText = aText.replace(/&lt;/g,'<'); aText = aText.replace(/&gt;/g,'>'); 
context: function RTSE_HTMLtoBB(aText)// EFFECTS: Converts site HTML to BBcode{	aText=aText.replace(/<b>(.*?)<\/b>/g,'[b]$1[/b]');	aText=aText.replace(/<i>(.*?)<\/i>/g,'[i]$1[/i]');	aText=aText.replace(/<u>(.*?)<\/u>/g,'[u]$1[/u]');	aText=aText.replace(/<del>(.*?)<\/del>/g,'[s]$1[/s]');	aText=aText.replace(/<a class="body" href="(.*?)" target="_blank">(.*?)<\/a>/g,'[link=$1]$2[/link]');	aText=aText.replace(/<a href="(.*?)" target="_blank">(.*?)<\/a>/g,'[link=$1]$2[/link]');	aText=aText.replace(/<a href="(.*?)">(.*?)<\/a>/g,'[link=$1]$2[/link]');	aText=aText.replace(/<font color=".*">(.*?)<\/font>/g,'$1'); /* Old way maybe? */	aText=aText.replace(/<span style="color:.*">(.*?)<\/span>/g,'$1');	aText=aText.replace(/<img .*?src="\/(.*?)".*?>/g,'[img]http://www.roosterteeth.com/$1[/img]');	aText=aText.replace(/<img.*? src="(.*?)".*?>/g,'[img]$1[/img]');	aText=aText.replace(/<br><br><span class="small"(.*?)>(.*?)<\/span>/g,'');	aText=aText.replace(/<blockquote(.*?)>(.*?)<\/blockquote>/g,'');	aText=aText.replace(/\t/g,'');	aText=aText.replace(/\n/g,'');	aText=aText.replace(/<br>/g,'\n');	return aText;}
meta: 760	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/760/7c508d9173a42024f02312102f41da9c5df18430/pageFix.js/clean/chrome/content/pageFix.js