Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox #5

Open
wants to merge 27 commits into
base: chrome
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
9d77cac
firefox init
joshxviii Sep 6, 2024
0057093
Changed file type
joshxviii Sep 6, 2024
e27e5d3
Update manifest
joshxviii Sep 6, 2024
07338c7
update sfx files
joshxviii Sep 6, 2024
72d500b
added sfx audio
joshxviii Sep 7, 2024
b90d140
updated sounds
joshxviii Sep 7, 2024
7111f46
Fixed Cranky and Lazy Voice
joshxviii Sep 7, 2024
e442dc8
Caps lock variation, arrow key noise. changed to C scale.
joshxviii Sep 9, 2024
9cda071
Animalese editor start
joshxviii Sep 11, 2024
233de40
removed unused assets
joshxviii Sep 12, 2024
0d1d1db
Values now save when closing and opening browser
joshxviii Sep 12, 2024
f3cfa01
Fixed disable button
joshxviii Sep 12, 2024
8195a93
Disable check every event and fallback key strokes for mobile
joshxviii Sep 13, 2024
10c374e
Sound check is false by default
joshxviii Sep 13, 2024
0592a7a
Update background.js
joshxviii Sep 13, 2024
bda3cb8
fallbacktext fix
joshxviii Sep 13, 2024
d49773f
Mobile input support and enabled on install
joshxviii Sep 13, 2024
e76d079
removed global keyFallback
joshxviii Sep 16, 2024
93ff2f9
New sounds for '/', '\' and money
joshxviii Jan 9, 2025
df3cbc9
changed 'Uchi' to 'Big Sister'
joshxviii Jan 10, 2025
f8fd6ce
Unicode regex checks
joshxviii Jan 17, 2025
fbb251c
Merge branch 'firefox' of https://github.com/joshxviii/animalese-typi…
joshxviii Jan 17, 2025
32911b3
Language support
joshxviii Jan 18, 2025
bc28ca0
context validation check fix
joshxviii Jan 18, 2025
e86ca3b
crtl key is no longer ignored for special characters
joshxviii Jan 18, 2025
adbad1a
fixed storage values not updating correctly
joshxviii Jan 20, 2025
0ae6b0e
Fixed injecting too many scripts
joshxviii Jan 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fallbacktext fix
  • Loading branch information
joshxviii committed Sep 13, 2024
commit bda3cb8c95ac4afc3a3fd5467209243a7928f3a6
4 changes: 2 additions & 2 deletions animalese.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ chrome.runtime.sendMessage({type: 'update_values'});

let keyFallback;
document.addEventListener('input', function (e) {
keyFallback = e.data===null ? "" : e.data.slice(-1);
keyFallback = e.data===null ? "" :( (typeof e.data === 'undefined') ? "" : e.data.slice(-1));
}, true);
document.addEventListener('keydown', function (e) {
//chrome.runtime.sendMessage({type: 'load'});
Expand All @@ -20,6 +20,6 @@ for (var i = 0; i < ifs.length; i++) {
if (!e.ctrlKey) chrome.runtime.sendMessage({ type: 'type', key: e.key , keycode: (e.key.length==1)?e.key.charCodeAt(0):e.keyCode , input_type: e.target.type});
}, true);
fc.addEventListener('input', function (e) {
keyFallback = e.data===null ? "" : e.data.slice(-1);
keyFallback = e.data===null ? "" :( (typeof e.data === 'undefined') ? "" : e.data.slice(-1));
}, true);
}
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ async function play_audio(audio_path, volume, random_pitch=0.0, pitch=0.0, cutof

//apply volume gain
gainNode = audioCtx.createGain();
gainNode.gain.value = volume * vol * 0.9;
gainNode.gain.value = volume * vol * 0.95;
gainNode.connect(audioCtx.destination);

source = audioCtx.createBufferSource();
Expand Down