... and forget to commit wowhead.js
Alex Shubert [08-17-12 - 19:47]
... and forget to commit wowhead.js
diff --git a/wowhead.js b/wowhead.js
new file mode 100644
index 0000000..5a83b33
--- /dev/null
+++ b/wowhead.js
@@ -0,0 +1,13 @@
+var quests={}, _result="", x;
+var area = $("div.comment-edit-body textarea");
+$("table.listview-mode-default tr").find("td:first div a").each(function (){
+ if ($(this).text() != "") quests[$(this).text()]= "";
+});
+for(x in quests) {
+ _result += "['"+x+"']=\"\",\n"
+}
+if (area.length) {
+ area.removeAttr("disabled").val(_result);
+} else {
+ $("body").append('<textarea class="comment-editbox" name="commentbody" cols="40" rows="10">'+_result+'</textarea>');
+}
\ No newline at end of file