Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var titles = [];
$('#bodyContent a[title], .toctext')
.not('[title*=":"]')
.each(function(){
if($(this).text().length > 2) {
titles.push($(this).text())
}
});
var rexp = new RegExp("\\\"(.+)\\\"", "g");
$('.external.text')
.each(function(){
var title = $(this).text().replace(rexp,"$1");
if(title.length > 2) {
titles.push(title)
}
});
titles.sort();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment