Skip to content

Commit 677d94e

Browse files
authored
Merge pull request #33 from mlsof21/fix-store-transfer
update query selector for store and transfer - ms
2 parents ad2f2f4 + 266ceaa commit 677d94e

File tree

5 files changed

+227
-224
lines changed

5 files changed

+227
-224
lines changed

CHANGELOG.md

Lines changed: 80 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,80 @@
1-
### 1.2.5 - 2023-02-27 - The Reversion
2-
- Revert previous change since it broke generic queries and item pulls (by weapon/energy type, etc.)
3-
4-
### 1.2.4 - 2023-02-25 - The One Where IKELOS Weapons Maybe Work
5-
6-
- Weapons with periods AND underscores (IKELOS weapons) are now parsed even better.
7-
- If a weapon contains a shorthand for a weapon type (IKELOS SMG) is handled since the code no longer only performs one type of search or the other. It will do both types and if a weapon name was matched, it'll override any generic weapon search.
8-
9-
### 1.2.3 - 2022-11-25 - Parsing Issues
10-
11-
- Weapons with periods in their name (IKELOS weapons, a few others) are now parsed correctly
12-
- Slight optimization for transferring weapons by name (no longer populates the search bar with `name:"<weapon>"`)
13-
14-
### 1.2.2 - 2022-10-04 - Activation Phrase Fix
15-
16-
- Added fix for capital letter in activation phrase by trimming/lowercasing everywhere
17-
18-
### 1.2.1 - 2022-10-03 - Only in Inventory
19-
20-
- Added fix for loading DIM on another tab. Previously required reloading the page on the inventory tab. Now Voice DIM will load no matter what page is started on
21-
- Added fix for a user having the item popup sidebar being collapsed.
22-
23-
### 1.2.0 - 2022-09-24 - Always Listening
24-
25-
- Added a toggle-able `Always Listening` mode
26-
- Each command must be prefixed with an activation phrase (defaulted to `okay ghost`)
27-
- Added fix for `maxPower` command (didn't work in normal DIM, only in beta)
28-
- Added fix for search already being populated when performing a command.
29-
30-
### 1.1.3 - 2022-09-20 - Perk fix
31-
32-
- Fixed perk matching
33-
34-
### 1.1.2 - 2022-09-19 - Options page links
35-
36-
- Added an `onInstalled` event for the extension. It'll direct users to the options page.
37-
- Link to the options page from the `?`
38-
39-
### 1.1.1 - 2022-09-16 - Better performance
40-
41-
- Use a `waitForElement/waitForSearchToUpdate` function instead of arbitrarily sleeping in code
42-
- Results in at least a 300% improvement in action duration
43-
44-
### 1.1.0 - 2022-09-13 - The One with Custom Commands
45-
46-
- Quite a few changes in this one
47-
- Reworked how the extension waits for the search to update visible (not dimmed) items
48-
- Really reworked how all UI interactions are performed
49-
- Added the ability to customize the command words for particular actions
50-
- Visit the options page (click the extension icon) to set these
51-
- Added a `store` command for storing items in the vault
52-
- Added an `equip` command for directly equipping an item on your current character (when possible)
53-
- This works like how `transfer` previously did, and `transfer` has been updated to only transfer, not equip
54-
- (from above) `Transfer` now only transfers instead of equipping
55-
- Added mic icon on page with a link to the website
56-
- When listening, there will be text next to the icon that updates as the user speaks their command
57-
- Added link to the [Voice DIM website](https://www.voicedim.com) via the `?` icon.
58-
- Fixed `Start Farming mode` command if a user has at least 10 loadouts saved
59-
60-
### 1.0.1 - 2022-08-23 - Corrected Shortcut
61-
62-
- Defaulted the shortcut correctly (set to `Ctrl+Shift+0`)
63-
64-
### 1.0.0 - 2022-08-19 - Initial Release
65-
66-
- See [Reddit post](https://www.reddit.com/r/DestinyTheGame/comments/wseigx/interact_with_dim_using_your_voice/) about the available commands with more info
67-
- Commands are available to:
68-
- Transfer a weapon by name
69-
- Transfer a weapon with particular perks
70-
- Transfer a weapon by attribute (energy type, slot, ammo type, etc)
71-
- Collect from the postmaster
72-
- Start/Stop farming mode
73-
- Equip loadouts by name
74-
- Equip max power
75-
- Use global shortcut to activate listening
1+
### 1.2.6 - 2023-04-10 - Query selector updates
2+
3+
- Update query selectors for `store` and `transfer`
4+
5+
### 1.2.5 - 2023-02-27 - The Reversion
6+
7+
- Revert previous change since it broke generic queries and item pulls (by weapon/energy type, etc.)
8+
9+
### 1.2.4 - 2023-02-25 - The One Where IKELOS Weapons Maybe Work
10+
11+
- Weapons with periods AND underscores (IKELOS weapons) are now parsed even better.
12+
- If a weapon contains a shorthand for a weapon type (IKELOS SMG) is handled since the code no longer only performs one type of search or the other. It will do both types and if a weapon name was matched, it'll override any generic weapon search.
13+
14+
### 1.2.3 - 2022-11-25 - Parsing Issues
15+
16+
- Weapons with periods in their name (IKELOS weapons, a few others) are now parsed correctly
17+
- Slight optimization for transferring weapons by name (no longer populates the search bar with `name:"<weapon>"`)
18+
19+
### 1.2.2 - 2022-10-04 - Activation Phrase Fix
20+
21+
- Added fix for capital letter in activation phrase by trimming/lowercasing everywhere
22+
23+
### 1.2.1 - 2022-10-03 - Only in Inventory
24+
25+
- Added fix for loading DIM on another tab. Previously required reloading the page on the inventory tab. Now Voice DIM will load no matter what page is started on
26+
- Added fix for a user having the item popup sidebar being collapsed.
27+
28+
### 1.2.0 - 2022-09-24 - Always Listening
29+
30+
- Added a toggle-able `Always Listening` mode
31+
- Each command must be prefixed with an activation phrase (defaulted to `okay ghost`)
32+
- Added fix for `maxPower` command (didn't work in normal DIM, only in beta)
33+
- Added fix for search already being populated when performing a command.
34+
35+
### 1.1.3 - 2022-09-20 - Perk fix
36+
37+
- Fixed perk matching
38+
39+
### 1.1.2 - 2022-09-19 - Options page links
40+
41+
- Added an `onInstalled` event for the extension. It'll direct users to the options page.
42+
- Link to the options page from the `?`
43+
44+
### 1.1.1 - 2022-09-16 - Better performance
45+
46+
- Use a `waitForElement/waitForSearchToUpdate` function instead of arbitrarily sleeping in code
47+
- Results in at least a 300% improvement in action duration
48+
49+
### 1.1.0 - 2022-09-13 - The One with Custom Commands
50+
51+
- Quite a few changes in this one
52+
- Reworked how the extension waits for the search to update visible (not dimmed) items
53+
- Really reworked how all UI interactions are performed
54+
- Added the ability to customize the command words for particular actions
55+
- Visit the options page (click the extension icon) to set these
56+
- Added a `store` command for storing items in the vault
57+
- Added an `equip` command for directly equipping an item on your current character (when possible)
58+
- This works like how `transfer` previously did, and `transfer` has been updated to only transfer, not equip
59+
- (from above) `Transfer` now only transfers instead of equipping
60+
- Added mic icon on page with a link to the website
61+
- When listening, there will be text next to the icon that updates as the user speaks their command
62+
- Added link to the [Voice DIM website](https://www.voicedim.com) via the `?` icon.
63+
- Fixed `Start Farming mode` command if a user has at least 10 loadouts saved
64+
65+
### 1.0.1 - 2022-08-23 - Corrected Shortcut
66+
67+
- Defaulted the shortcut correctly (set to `Ctrl+Shift+0`)
68+
69+
### 1.0.0 - 2022-08-19 - Initial Release
70+
71+
- See [Reddit post](https://www.reddit.com/r/DestinyTheGame/comments/wseigx/interact_with_dim_using_your_voice/) about the available commands with more info
72+
- Commands are available to:
73+
- Transfer a weapon by name
74+
- Transfer a weapon with particular perks
75+
- Transfer a weapon by attribute (energy type, slot, ammo type, etc)
76+
- Collect from the postmaster
77+
- Start/Stop farming mode
78+
- Equip loadouts by name
79+
- Equip max power
80+
- Use global shortcut to activate listening

package.json

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
1-
{
2-
"name": "voice-dim",
3-
"version": "1.2.5",
4-
"description": "Perform common DIM actions by using speech recognition.",
5-
"main": "dist/chrome/js/voice-dim.js",
6-
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1",
8-
"zip": "npm run build && python scripts/build.py",
9-
"build": "rimraf dist/ && webpack --env mode=production --config webpack.config.js",
10-
"watch": "webpack --env mode=development --config webpack.config.js --progress --watch",
11-
"update-version": "python scripts/update_version.py"
12-
},
13-
"repository": {
14-
"type": "git",
15-
"url": "https://github.com/mlsof21/voice-dim.git"
16-
},
17-
"keywords": [
18-
"Voice DIM",
19-
"DIM Voice",
20-
"Destiny",
21-
"2",
22-
"speech",
23-
"recognition",
24-
"voice"
25-
],
26-
"author": "mlsof21",
27-
"license": "ISC",
28-
"bugs": {
29-
"url": "https://github.com/mlsof21/voice-dim/issues"
30-
},
31-
"homepage": "https://github.com/mlsof21/voice-dim#readme",
32-
"dependencies": {
33-
"annyang": "^2.6.1",
34-
"fuse.js": "^6.6.2"
35-
},
36-
"devDependencies": {
37-
"@types/annyang": "^2.6.2",
38-
"@types/chrome": "^0.0.193",
39-
"@types/web": "^0.0.1",
40-
"@typescript/lib-dom": "npm:@types/web@^0.0.71",
41-
"copy-webpack-plugin": "^11.0.0",
42-
"rimraf": "^3.0.2",
43-
"ts-loader": "^9.3.1",
44-
"typescript": "^4.7.4",
45-
"webpack": "^5.74.0",
46-
"webpack-cli": "^4.10.0",
47-
"webpack-visualizer-plugin2": "^1.0.0"
48-
}
49-
}
1+
{
2+
"name": "voice-dim",
3+
"version": "1.2.6",
4+
"description": "Perform common DIM actions by using speech recognition.",
5+
"main": "dist/chrome/js/voice-dim.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1",
8+
"zip": "npm run build && python scripts/build.py",
9+
"build": "rimraf dist/ && webpack --env mode=production --config webpack.config.js",
10+
"watch": "webpack --env mode=development --config webpack.config.js --progress --watch",
11+
"update-version": "python scripts/update_version.py"
12+
},
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/mlsof21/voice-dim.git"
16+
},
17+
"keywords": [
18+
"Voice DIM",
19+
"DIM Voice",
20+
"Destiny",
21+
"2",
22+
"speech",
23+
"recognition",
24+
"voice"
25+
],
26+
"author": "mlsof21",
27+
"license": "ISC",
28+
"bugs": {
29+
"url": "https://github.com/mlsof21/voice-dim/issues"
30+
},
31+
"homepage": "https://github.com/mlsof21/voice-dim#readme",
32+
"dependencies": {
33+
"annyang": "^2.6.1",
34+
"fuse.js": "^6.6.2"
35+
},
36+
"devDependencies": {
37+
"@types/annyang": "^2.6.2",
38+
"@types/chrome": "^0.0.193",
39+
"@types/web": "^0.0.1",
40+
"@typescript/lib-dom": "npm:@types/web@^0.0.71",
41+
"copy-webpack-plugin": "^11.0.0",
42+
"rimraf": "^3.0.2",
43+
"ts-loader": "^9.3.1",
44+
"typescript": "^4.7.4",
45+
"webpack": "^5.74.0",
46+
"webpack-cli": "^4.10.0",
47+
"webpack-visualizer-plugin2": "^1.0.0"
48+
}
49+
}

public/manifest.chrome.json

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
1-
{
2-
"name": "Voice DIM",
3-
"description": "Control DIM with your voice.",
4-
"version": "1.2.5",
5-
"manifest_version": 3,
6-
"background": {
7-
"service_worker": "js/background.js"
8-
},
9-
"content_scripts": [
10-
{
11-
"matches": ["https://*.destinyitemmanager.com/*"],
12-
"js": ["js/voiceDim.js"],
13-
"css": ["css/voiceDim.css"]
14-
}
15-
],
16-
"commands": {
17-
"dim-listen": {
18-
"suggested_key": {
19-
"default": "Ctrl+Shift+0"
20-
},
21-
"description": "Start/Stop listening for DIM commands",
22-
"global": true
23-
}
24-
},
25-
"action": {
26-
"default_icon": "icons/icon_128.png",
27-
"default_title": "Voice DIM"
28-
},
29-
"icons": {
30-
"16": "icons/icon_16.png",
31-
"32": "icons/icon_32.png",
32-
"48": "icons/icon_48.png",
33-
"128": "icons/icon_128.png"
34-
},
35-
"options_ui": {
36-
"page": "html/options.html",
37-
"open_in_tab": true
38-
},
39-
"host_permissions": ["https://www.bungie.net/*"],
40-
"permissions": ["tabs", "storage"],
41-
"web_accessible_resources": [
42-
{
43-
"resources": ["icons/icon_large.png"],
44-
"matches": ["https://*.destinyitemmanager.com/*"]
45-
}
46-
]
47-
}
1+
{
2+
"name": "Voice DIM",
3+
"description": "Control DIM with your voice.",
4+
"version": "1.2.6",
5+
"manifest_version": 3,
6+
"background": {
7+
"service_worker": "js/background.js"
8+
},
9+
"content_scripts": [
10+
{
11+
"matches": ["https://*.destinyitemmanager.com/*"],
12+
"js": ["js/voiceDim.js"],
13+
"css": ["css/voiceDim.css"]
14+
}
15+
],
16+
"commands": {
17+
"dim-listen": {
18+
"suggested_key": {
19+
"default": "Ctrl+Shift+0"
20+
},
21+
"description": "Start/Stop listening for DIM commands",
22+
"global": true
23+
}
24+
},
25+
"action": {
26+
"default_icon": "icons/icon_128.png",
27+
"default_title": "Voice DIM"
28+
},
29+
"icons": {
30+
"16": "icons/icon_16.png",
31+
"32": "icons/icon_32.png",
32+
"48": "icons/icon_48.png",
33+
"128": "icons/icon_128.png"
34+
},
35+
"options_ui": {
36+
"page": "html/options.html",
37+
"open_in_tab": true
38+
},
39+
"host_permissions": ["https://www.bungie.net/*"],
40+
"permissions": ["tabs", "storage"],
41+
"web_accessible_resources": [
42+
{
43+
"resources": ["icons/icon_large.png"],
44+
"matches": ["https://*.destinyitemmanager.com/*"]
45+
}
46+
]
47+
}

0 commit comments

Comments
 (0)