this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

checkpoint

+42 -17
+1 -1
background.js
··· 2 2 const runtime = typeof browser !== 'undefined' ? browser.runtime : chrome.runtime; 3 3 const tabs = typeof browser !== 'undefined' ? browser.tabs : chrome.tabs; 4 4 const storage = typeof browser !== 'undefined' ? browser.storage.local : chrome.storage.local; 5 - const action = typeof browser !== 'undefined' ? browser.action : chrome.action; 5 + const action = typeof browser !== 'undefined' ? browser.browserAction : chrome.action; 6 6 7 7 // On extension installation, check if privacy consent was already accepted and show it if not 8 8 runtime.onInstalled.addListener(() => {
+25 -4
build_extension.sh
··· 1 - mkdir -p ./extension_packages/ff_build 2 - cp manifest-firefox.json ./extension_packages/ff_build/manifest.json 3 - cp ./*.png ./*.js ./*.html ./*.md LICENSE ./extension_packages/ff_build/ 4 - zip -j ./extension_packages/skylink-firefox.zip ./extension_packages/ff_build/* 1 + #!/bin/sh 2 + 3 + clean() { 4 + rm -rf ./extension_packages 5 + } 6 + 7 + build_firefox() { 8 + mkdir -p ./extension_packages/ff_build 9 + cp manifest-firefox.json ./extension_packages/ff_build/manifest.json 10 + cp ./*.png ./*.js ./*.html ./*.md LICENSE ./extension_packages/ff_build/ 11 + zip -j ./extension_packages/skylink-firefox.zip ./extension_packages/ff_build/* 12 + } 13 + 14 + while [ $# -gt 0 ]; do 15 + case "$1" in 16 + --firefox) 17 + build_firefox 18 + ;; 19 + *) 20 + echo "Invalid option: $1" 21 + exit 1 22 + ;; 23 + esac 24 + shift 25 + done
+2 -2
content.js
··· 48 48 } 49 49 }); 50 50 } else { 51 - // If the user hasn't accepted the privacy consent, show the consent page again 52 - tabs.create({ url: "privacy_consent.html" }); 51 + // Send a message to the background script to show the consent page 52 + browser.runtime.sendMessage({ type: 'SHOW_CONSENT' }); 53 53 } 54 54 } 55 55
+13 -9
manifest-firefox.json
··· 1 1 { 2 - "manifest_version": 3, 2 + "manifest_version": 2, 3 3 "name": "SkyLink - Bluesky DID Detector", 4 4 "short_name": "SkyLink", 5 5 "version": "1.2.0", 6 6 "author": "jesse@adhdjesse.com", 7 - "action": { 7 + "browser_action": { 8 8 "default_icon": { 9 9 "48": "logo48_gray.png", 10 10 "128": "logo128_gray.png" ··· 15 15 "128": "logo128.png" 16 16 }, 17 17 "description": "Detects Decentralized Identifiers (DIDs) in a domain's TXT records and links to the associated Bluesky profile.", 18 - "permissions": ["tabs", "management", "storage", "<all_urls>"], 19 - "content_security_policy": { 20 - "extension_pages": "script-src 'self'; object-src 'self'" 21 - }, 22 - "background": { 18 + "permissions": ["activeTab", "tabs", "management", "storage", "<all_urls>"], 19 + "content_security_policy": "script-src 'self'; object-src 'self'", 20 + "background": { 23 21 "scripts": ["background.js"] 24 22 }, 23 + "content_scripts": [ 24 + { 25 + "matches": ["<all_urls>"], 26 + "js": ["content.js"] 27 + } 28 + ], 25 29 "browser_specific_settings": { 26 30 "gecko": { 27 - "id": "sanitybit@gmail.com", 28 - "strict_min_version": "109.0" 31 + "id": "jesse@adhdjesse.com", 32 + "strict_min_version": "79.0" 29 33 } 30 34 } 31 35 }
+1 -1
manifest.json
··· 2 2 "manifest_version": 3, 3 3 "name": "SkyLink - Bluesky DID Detector", 4 4 "short_name": "SkyLink", 5 - "version": "1.1.0", 5 + "version": "1.2.0", 6 6 "author": "jesse@adhdjesse.com", 7 7 "action": { 8 8 "default_icon": { "48": "logo48_gray.png", "128": "logo128_gray.png" }