diff --git a/README b/README index e69de29..e09e34f 100644 --- a/README +++ b/README @@ -0,0 +1 @@ +Bookcrawler branch which works on google appengine. \ No newline at end of file diff --git a/chrome-extension/contentscript.js b/chrome-extension/contentscript.js index 149a6cb..63aea90 100644 --- a/chrome-extension/contentscript.js +++ b/chrome-extension/contentscript.js @@ -1,4 +1,8 @@ +var re = /ISBN[:\s]*([X0-9\\-]*)/g; +rawISBN = document.body.innerText.match(re)[0]; +isbn = rawISBN.replace(/-/g, "").slice(-10, -1) + function createRootElement(id) { root = document.createElement("div"); root.id = id; @@ -46,9 +50,6 @@ function showBooks(responseText) { } } -var re = /ISBN[:\s]*([0-9\\-]*)/g; -rawISBN = document.body.innerText.match(re)[0]; -isbn = rawISBN.replace(/-/g, "").slice(-10) //alert(isbn); chrome.extension.sendRequest({'action' : 'fetchBooks', 'selectedText' : isbn}, showBooks); diff --git a/chrome-extension/icon.png b/chrome-extension/icon.png deleted file mode 100644 index 103ff36..0000000 Binary files a/chrome-extension/icon.png and /dev/null differ diff --git a/chrome-extension/icon_128.png b/chrome-extension/icon_128.png new file mode 100755 index 0000000..8b089da Binary files /dev/null and b/chrome-extension/icon_128.png differ diff --git a/chrome-extension/index.html b/chrome-extension/index.html index 897bbbb..ef8b124 100644 --- a/chrome-extension/index.html +++ b/chrome-extension/index.html @@ -4,7 +4,7 @@