Created
October 22, 2014 07:09
-
-
Save kuzeko/fba1d6a63ff23aa5f8cb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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