Skip to content

Commit e47624c

Browse files
committed
fix: Replace '.storylink' with '.titlelink'
1 parent ec1ddb1 commit e47624c

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/features/archive-submission.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function init(metadata) {
22
if (metadata.path === "/item" && metadata.item.type === "story") {
3-
const storyLink = document.querySelector("a.storylink").href;
3+
const storyLink = document.querySelector("a.titlelink").href;
44

55
const separatorPipe = document.createTextNode(" | ");
66
const archiveButton = document.createElement("a");

src/features/open-story-links-in-new-tab.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function init(metadata) {
22
const links = [
3-
...document.querySelectorAll("a.storylink"),
3+
...document.querySelectorAll("a.titlelink"),
44
...(metadata.options.openCommentsInNewTab
55
? document.querySelectorAll("table.itemlist td.subtext > a:last-child")
66
: []),

src/features/show-similar-submissions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async function init(metadata) {
6262
}
6363

6464
const storyLink = document
65-
.querySelector("a.storylink")
65+
.querySelector("a.titlelink")
6666
.href.split("://")
6767
.pop();
6868
const results = await getSimilarSubmissions(storyLink, metadata);

src/libs/dom-utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function getGroupedStories(itemlist) {
6767

6868
for (let i = 0; i < rows.length - 2; i += 3) {
6969
const id = parseInt(rows[i].id, 10);
70-
const storyUrl = rows[i].querySelector("a.storylink").href;
70+
const storyUrl = rows[i].querySelector("a.titlelink").href;
7171

7272
const scoreSpan = rows[i + 1].querySelector("span.score");
7373
const score = scoreSpan ? parseInt(scoreSpan.innerText, 10) : undefined;

src/libs/handle-item-keydowns.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ const comment = {
194194
const story = {
195195
// Open story link
196196
open(activeItem, event) {
197-
const story = activeItem.querySelector("a.storylink");
197+
const story = activeItem.querySelector("a.titlelink");
198198
if (story) {
199199
if (event.ctrlKey || event.metaKey) {
200200
browser.runtime.sendMessage({

0 commit comments

Comments
 (0)