diff --git a/manifest.json b/manifest.json index 89fc2bd..c9f409c 100644 --- a/manifest.json +++ b/manifest.json @@ -2,6 +2,12 @@ "manifest_version": 2, "name": "AIMS-Helper", "version": "0.1", + "content_scripts":[ + { + "matches":["https://aims.iith.ac.in/aims/"], + "js":["/src/captcha/captcha_filler_1.js"] + } + ], "background": { "scripts": ["/src/bg/background.js"], "persistent":false diff --git a/src/captcha/captcha_filler_1.js b/src/captcha/captcha_filler_1.js new file mode 100644 index 0000000..c4244df --- /dev/null +++ b/src/captcha/captcha_filler_1.js @@ -0,0 +1,3 @@ +str = document.getElementById("appCaptchaLoginImg").src; +captcha = str.slice(str.length-5); +document.getElementById("captcha").value = captcha; \ No newline at end of file