diff --git a/README.md b/README.md index 2f380bd..3b9685e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # NTUFullText A Chrome or Opera plugin allows NTU staff and students to seamlessly retrieve full text. -![ntufull logo](./icon_128.png) +![ntufull logo](./icon_384.png) This project follows the same method as used in "NTU Library Proxy" (seems not continued) on Chrome webstore, which is described in http://www.ntu.edu.sg/library/Pages/fulltextNTUL.aspx. diff --git a/icon_128.png b/icon_128.png index bf8e812..e577359 100644 Binary files a/icon_128.png and b/icon_128.png differ diff --git a/icon_16.png b/icon_16.png index 167367f..70d7d9b 100644 Binary files a/icon_16.png and b/icon_16.png differ diff --git a/icon_384.png b/icon_384.png new file mode 100644 index 0000000..3d808a1 Binary files /dev/null and b/icon_384.png differ diff --git a/icon_48.png b/icon_48.png index 8bc1353..8eb6930 100644 Binary files a/icon_48.png and b/icon_48.png differ diff --git a/icon_64.png b/icon_64.png index 63cf4d0..789e565 100644 Binary files a/icon_64.png and b/icon_64.png differ diff --git a/manifest.json b/manifest.json index f563bd0..84c55e8 100644 --- a/manifest.json +++ b/manifest.json @@ -8,7 +8,7 @@ "default_title": "NTU Full Text", "name": "NTU Full Text Plugin" }, - "description": "A plugin allows NTU staff and students to seamlessly retrieve full text.", + "description": "A plugin allows NTU staffs and students to seamlessly retrieve full text.", "icons": { "128": "icon_128.png", "16": "icon_16.png", @@ -19,5 +19,5 @@ "name": "NTU Full Text", "permissions": [ "http://*/*", "https://*/*" ], "update_url": "https://clients2.google.com/service/update2/crx", - "version": "1.3.0" + "version": "1.5.0" } diff --git a/ntufull.svg b/ntufull.svg index d06d976..6b3c9f9 100644 --- a/ntufull.svg +++ b/ntufull.svg @@ -16,9 +16,9 @@ version="1.1" inkscape:version="0.91 r13725" sodipodi:docname="ntufull.svg" - inkscape:export-filename="C:\ntufull\icon_3_128.png" - inkscape:export-xdpi="97.464149" - inkscape:export-ydpi="97.464149"> + inkscape:export-filename="C:\ntufull\icon_384.png" + inkscape:export-xdpi="292.39249" + inkscape:export-ydpi="292.39249"> image/svg+xml - + @@ -88,95 +88,92 @@ id="layer1" transform="translate(-445.74021,-103.11028)"> - - - - - - + id="g4689" + transform="translate(-2.0035181,0)"> + + + + + + + + + + + + + - - - - - - - - - - - + r="3.4092648" + cy="171.63544" + cx="505.58133" + id="circle4193" + style="color:black;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:black;solid-opacity:1;fill:black;fill-opacity:1;fill-rule:nonzero;stroke:black;stroke-width:1.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" /> + + diff --git a/plugin.crx b/plugin.crx new file mode 100644 index 0000000..32a1cb1 Binary files /dev/null and b/plugin.crx differ diff --git a/plugin.nex b/plugin.nex index 8b22025..e54a173 100644 Binary files a/plugin.nex and b/plugin.nex differ diff --git a/plugin/addProxyURL.js b/plugin/addProxyURL.js index 271487d..1016255 100644 --- a/plugin/addProxyURL.js +++ b/plugin/addProxyURL.js @@ -1,2 +1,5 @@ -var proxy = ".ezlibproxy1.ntu.edu.sg"; -window.location.href = "http://"+window.location.hostname+proxy+window.location.pathname+window.location.search; +var proxy = "ezlibproxy1.ntu.edu.sg" +var headurl = "http://ezlibproxy1.ntu.edu.sg/login?url="; +if (window.location.hostname.indexOf(proxy) == -1) { + window.location.href = headurl + window.location.href; +} diff --git a/plugin/icon_128.png b/plugin/icon_128.png index bf8e812..e577359 100644 Binary files a/plugin/icon_128.png and b/plugin/icon_128.png differ diff --git a/plugin/icon_16.png b/plugin/icon_16.png index 167367f..70d7d9b 100644 Binary files a/plugin/icon_16.png and b/plugin/icon_16.png differ diff --git a/plugin/icon_48.png b/plugin/icon_48.png index 8bc1353..8eb6930 100644 Binary files a/plugin/icon_48.png and b/plugin/icon_48.png differ diff --git a/plugin/icon_64.png b/plugin/icon_64.png index 63cf4d0..789e565 100644 Binary files a/plugin/icon_64.png and b/plugin/icon_64.png differ diff --git a/plugin/manifest.json b/plugin/manifest.json index c1a10e1..dee605b 100644 --- a/plugin/manifest.json +++ b/plugin/manifest.json @@ -8,7 +8,7 @@ "default_title": "NTU Full Text", "name": "NTU Full Text Plugin" }, - "description": "A plugin allows NTU staff and students to seamlessly retrieve full text from the Internet.", + "description": "A plugin allows NTU staffs and students to seamlessly retrieve full text.", "icons": { "128": "icon_128.png", "16": "icon_16.png", @@ -17,7 +17,7 @@ }, "manifest_version": 2, "name": "NTU Full Text", - "permissions": ["http://*/*", "https://*/*" ], + "permissions": [ "http://*/*", "https://*/*" ], "update_url": "https://clients2.google.com/service/update2/crx", - "version": "1.3.0" + "version": "2.0.0" }