Skip to content

Commit

Permalink
version 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bjesus committed Feb 20, 2024
1 parent 5db223e commit 9caffc2
Show file tree
Hide file tree
Showing 27 changed files with 11,855 additions and 0 deletions.
20 changes: 20 additions & 0 deletions background.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
let buttonClicked = false;

browser.browserAction.onClicked.addListener(async (tab) => {
buttonClicked = !buttonClicked;

if (buttonClicked) {
browser.tabs.executeScript(tab.id, {
file: "/scripts/load.js",
});
browser.browserAction.setIcon({
path: "/icons/icon-on.svg",
tabId: tab.id,
});
} else {
browser.tabs.executeScript(tab.id, {
file: "/scripts/remove.js",
});
browser.browserAction.setIcon({ path: null, tabId: tab.id });
}
});
51 changes: 51 additions & 0 deletions icons/icon-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions icons/icon-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions icons/icon-on.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/iconX2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/iconX3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"manifest_version": 2,
"name": "Eyeroll",
"version": "1.2",
"description": "Scroll pages with the blink of an eye",
"permissions": [
"activeTab",
"storage"
],
"background": {
"scripts": [
"background.js"
],
"persistent": false
},
"browser_action": {
"default_icon": "icons/icon-dark.svg",
"theme_icons": [
{
"light": "icons/icon-light.svg",
"dark": "icons/icon-dark.svg",
"size": 16
},
{
"light": "icons/icon-light.svg",
"dark": "icons/icon-dark.svg",
"size": 32
}
]
},
"web_accessible_resources": [
"style.css",
"tensor/script.js",
"tensor/face_landmarker.task",
"mediapipe-tasks-vision-0.10.9/vision_bundle.cjs",
"mediapipe-tasks-vision-0.10.9/vision_bundle.cjs.map",
"mediapipe-tasks-vision-0.10.9/vision_bundle.mjs.map",
"mediapipe-tasks-vision-0.10.9/vision_bundle.mjs",
"mediapipe-tasks-vision-0.10.9/vision.d.ts",
"mediapipe-tasks-vision-0.10.9/wasm/vision_wasm_internal.wasm",
"mediapipe-tasks-vision-0.10.9/wasm/vision_wasm_nosimd_internal.wasm",
"mediapipe-tasks-vision-0.10.9/wasm/vision_wasm_internal.js",
"mediapipe-tasks-vision-0.10.9/wasm/vision_wasm_nosimd_internal.js"
],
"icons": {
"48": "icons/icon.png",
"96": "icons/iconX2.png"
},
"options_ui": {
"page": "options.html",
"browser_style": true
},
"commands": {
"_execute_browser_action": {
"suggested_key": {
"default": "Ctrl+Alt+E"
},
"description": "Toggle Eyeroll"
}
}
}
20 changes: 20 additions & 0 deletions mediapipe-tasks-vision-0.10.9/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "@mediapipe/tasks-vision",
"version": "0.10.9",
"description": "MediaPipe Vision Tasks",
"main": "vision_bundle.cjs",
"browser": "vision_bundle.mjs",
"module": "vision_bundle.mjs",
"exports": {
"import": "./vision_bundle.mjs",
"require": "./vision_bundle.cjs",
"default": "./vision_bundle.mjs",
"types": "./vision.d.ts"
},
"author": "mediapipe@google.com",
"license": "Apache-2.0",
"type": "module",
"types": "vision.d.ts",
"homepage": "http://mediapipe.dev",
"keywords": [ "AR", "ML", "Augmented", "MediaPipe", "MediaPipe Tasks" ]
}
Loading

0 comments on commit 9caffc2

Please sign in to comment.