File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
userscripts/amazon-prime-gaming-highlighter Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 9
9
// @supportURL https://github.com/0xdevalias/userscripts/issues
10
10
// @downloadURL https://github.com/0xdevalias/userscripts/raw/main/userscripts/amazon-prime-gaming-highlighter/amazon-prime-gaming-highlighter.user.js
11
11
// @namespace https://www.devalias.net/
12
- // @version 1.0.5
12
+ // @version 1.0.6
13
13
// @match https://gaming.amazon.com/home
14
14
// @grant GM_openInTab
15
15
// ==/UserScript==
Original file line number Diff line number Diff line change 6
6
// @supportURL https://github.com/0xdevalias/userscripts/issues
7
7
// @downloadURL https://github.com/0xdevalias/userscripts/raw/main/userscripts/amazon-prime-gaming-highlighter/amazon-prime-gaming-highlighter.user.js
8
8
// @namespace https://www.devalias.net/
9
- // @version 1.0.5
9
+ // @version 1.0.6
10
10
// @match https://gaming.amazon.com/home
11
11
// @grant GM_openInTab
12
12
// ==/UserScript==
215
215
216
216
function collectClaimURLs ( ) {
217
217
const claimButtons = new Set (
218
- Array . from ( document . querySelectorAll ( '.item-card__claim-button a[href]' ) ) ,
218
+ Array . from ( document . querySelectorAll ( '.item-card__claim-button a[href]' ) )
219
+ . map ( ( button ) => button . href )
220
+ . filter ( ( url ) => ! url . includes ( '/web-games/' ) ) ,
219
221
) ;
220
222
221
- return Array . from ( claimButtons )
222
- . map ( ( button ) => button . href )
223
- . filter ( ( url ) => ! url . includes ( '/web-games/' ) ) ;
223
+ return Array . from ( claimButtons ) ;
224
224
}
225
225
226
226
function copyURLsToClipboard ( urls ) {
You can’t perform that action at this time.
0 commit comments