From 4565db38064d60cd0ea8506e0b527be2d8ceb898 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 13 May 2014 23:18:24 -0400 Subject: [PATCH] Note about /addtolist.php. --- main.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 2042ec8..eddd94d 100644 --- a/main.js +++ b/main.js @@ -308,6 +308,11 @@ function hook_edit(anime_id) { }); } +function hook_addtolist() { + /* TODO: this entry point is unimplemented - it's rarely used and difficult + to inject into, so I'm avoiding it for now. */ +} + /* Main extension hook */ $(document).ready(function() { @@ -317,7 +322,9 @@ $(document).ready(function() { else if (href.indexOf("/anime/") != -1 || href.indexOf("/anime.php") != -1) hook_anime(get_anime_id_from_href(href)); else if (href.indexOf("/panel.php") != -1 && href.indexOf("go=add") != -1) - hook_add(null); + hook_add(); else if (href.indexOf("/editlist.php") != -1 && href.indexOf("type=anime") != -1) hook_edit(get_edit_id_from_href(href)); + else if (href.indexOf("/addtolist.php") != -1) + hook_addtolist(); });