diff --git a/actions/worker.py b/actions/worker.py index fd77cc8..3fa1dce 100644 --- a/actions/worker.py +++ b/actions/worker.py @@ -24,3 +24,25 @@ patched = data.replace("maxCollaborationNameLength=15", "maxCollaborationNameLength=99999") f.write(patched) f.close() + +regex = r"vendor-.{8}\.js" +match = re.search(regex, r.text).group() + +vendor = requests.get("https://assets-cdn.kahoot.it/controller/v2/assets/" + match) + +# just save it with the same name +f = open(match, "wb") +f.write(vendor.content) +f.close() + +regex = r"index-.{8}\.css" +match = re.search(regex, r.text).group() + +css = requests.get("https://assets-cdn.kahoot.it/controller/v2/assets/" + match) + +# just save it with the same name +f = open(match, "wb") +f.write(css.content) +f.close() + +print("Patched successfully!") diff --git a/infinite-name/docs.md b/infinite-name/docs.md index 7b333f0..5b03ee2 100644 --- a/infinite-name/docs.md +++ b/infinite-name/docs.md @@ -1,8 +1,8 @@ -# Docs for chrome extension +# Docs for the extension ## Installation: -Depends on browser. Chrome (and a few others?) will not allow a random .crx file, but Chromium derivatives like -Brave, Edge and Opera all seem to work fine (tested on Opera and Edge) +Depends on browser. Chrome (and a few others?) will not allow any .crx file, but Chromium derivatives like +Brave, Edge and Opera should work fine (tested on Opera and Edge) Just open the .crx file with the browser of choice. If it fails, you can load the extension unpacked in developer mode: @@ -16,12 +16,8 @@ If it fails, you can load the extension unpacked in developer mode: NOTE: Recently Kazoo has stopped working when not running unpacked. Not sure why, probably MV3. ## Usage: -No usage! Kazoo will automagically reroute the `index.js` request. +No usage! Kazoo will automagically patch Kahoot. # FAQ ### Wll you make a Firefox extension? -spam me in the issues section if you wanna see this - -### Whoa, how did you hack this? -It works by waiting as a rootkit in the nickname text input -in order to break the machine's control over... no, no; it just reroutes a web request. That's all it is. +Yes! Docs are cooking, but extension is done. \ No newline at end of file diff --git a/infinite-name/kazoo/bg.js b/infinite-name/kazoo/bg.js deleted file mode 100644 index d92b680..0000000 --- a/infinite-name/kazoo/bg.js +++ /dev/null @@ -1,6 +0,0 @@ -chrome.action.onClicked.addListener((tab) => { - chrome.scripting.executeScript({ - target: {tabId: tab.id}, - files: ['kazoo/jackbox.js'] - }); - }); \ No newline at end of file diff --git a/infinite-name/kazoo/jackbox.js b/infinite-name/kazoo/jackbox.js deleted file mode 100644 index 6709ebd..0000000 --- a/infinite-name/kazoo/jackbox.js +++ /dev/null @@ -1,8 +0,0 @@ -try { - var nnbox = document.getElementById("username") - nnbox.removeAttribute('maxlength') - } - catch { - - } - \ No newline at end of file diff --git a/infinite-name/kazoo/zapper.json b/infinite-name/kazoo/zapper.json index fa9f463..8b58770 100644 --- a/infinite-name/kazoo/zapper.json +++ b/infinite-name/kazoo/zapper.json @@ -2,7 +2,7 @@ { "id": 1, "priority": 1, - "action": {"type": "redirect", "redirect": {"url": "https://cdn.jsdelivr.net/gh/ByzantineProcess/kazoo@js/fakekahoot.js"}}, - "condition": {"urlFilter": "https://assets-cdn.kahoot.it/controller/v2/assets/*.js"} + "action": {"type": "redirect", "redirect": {"url": "https://byzantineprocess.github.io/Kazoo/fakekahoot.js"}}, + "condition": {"regexFilter": "https://assets-cdn.kahoot.it/controller/v2/assets/index-[A-Za-z0-9]*.js"} } ] \ No newline at end of file diff --git a/infinite-name/manifest.json b/infinite-name/manifest.json index 34e1cfb..f327d23 100644 --- a/infinite-name/manifest.json +++ b/infinite-name/manifest.json @@ -1,6 +1,6 @@ { "name": "Kazoo!", - "version": "0.6", + "version": "1", "manifest_version": 3, "description": "Kazoo homepage: https://github.com/ByzantineProcess/Kazoo", "icons": { @@ -9,18 +9,15 @@ "action": { "default_title": "Kazoo!" }, - "permissions": ["activeTab", "scripting", "declarativeNetRequest", "declarativeNetRequestFeedback"], - "background": { - "service_worker": "kazoo/bg.js" - }, + "permissions": ["declarativeNetRequest", "declarativeNetRequestFeedback"], "declarative_net_request" : { "rule_resources" : [{ - "id": "maxzapper", + "id": "zapper", "enabled": true, "path": "kazoo/zapper.json" }] }, "host_permissions": [ - "https://*/*" + "*://*.kahoot.it/*" ] } \ No newline at end of file