Skip to content

Commit 553dba0

Browse files
committed
[userscript] amazon-prime-gaming-highlighter: fix getCardsInSection selector
1 parent 79b2d6c commit 553dba0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

userscripts/amazon-prime-gaming-highlighter/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// @supportURL https://github.com/0xdevalias/userscripts/issues
1010
// @downloadURL https://github.com/0xdevalias/userscripts/raw/main/userscripts/amazon-prime-gaming-highlighter/amazon-prime-gaming-highlighter.user.js
1111
// @namespace https://www.devalias.net/
12-
// @version 1.0.1
12+
// @version 1.0.2
1313
// @match https://gaming.amazon.com/home
1414
// @grant none
1515
// ==/UserScript==

userscripts/amazon-prime-gaming-highlighter/amazon-prime-gaming-highlighter.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// @supportURL https://github.com/0xdevalias/userscripts/issues
77
// @downloadURL https://github.com/0xdevalias/userscripts/raw/main/userscripts/amazon-prime-gaming-highlighter/amazon-prime-gaming-highlighter.user.js
88
// @namespace https://www.devalias.net/
9-
// @version 1.0.1
9+
// @version 1.0.2
1010
// @match https://gaming.amazon.com/home
1111
// @grant none
1212
// ==/UserScript==
@@ -116,7 +116,7 @@
116116
}
117117

118118
function getCardsInSection(section) {
119-
const sectionCardsSelector = `div[data-a-target="${section}"] div.swiper-slide__child, div[data-a-target="${section}"] div.offer-list__content__grid div.tw-block`;
119+
const sectionCardsSelector = `div[data-a-target="${section}"] .tw-card`;
120120

121121
return Array.from(document.querySelectorAll(sectionCardsSelector));
122122
}

0 commit comments

Comments
 (0)