Skip to content
Open
Changes from 1 commit
Commits
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
8 changes: 4 additions & 4 deletions scripts/leetcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,10 @@ function findCode(
const e = document.getElementsByClassName('status-column__3SUg');
if (checkElem(e)) {
// for normal problem submisson
const submissionRef = e[1].innerHTML.split(' ')[1];
submissionURL =
'https://leetcode.com' +
submissionRef.split('=')[1].slice(1, -1);
const submissionRef = e[1].href;
console.log(submissionRef);
Comment thread
sidd5449 marked this conversation as resolved.
Outdated
submissionURL = submissionRef;
console.log(submissionURL);
Comment thread
sidd5449 marked this conversation as resolved.
Outdated
} else {
// for a submission in explore section
const submissionRef = document.getElementById('result-state');
Expand Down