We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd13f33 commit 8c6dc4cCopy full SHA for 8c6dc4c
index.user.js
@@ -12,8 +12,8 @@ if(location.pathname !== "/submitpage.php") return;
12
const { editor } = unsafeWindow;
13
14
const editorElement = editor.textInput.getElement();
15
-const rid = document.querySelector("input#rid").value;
16
-const storageName = `editor_${rid}`;
+const problemNumber = document.querySelector("input#problem_id").value;
+const storageName = `editor_${problemNumber}`;
17
const getSaved = () => {
18
const saved = JSON.parse(localStorage.getItem(storageName));
19
if(saved === null) return null;
0 commit comments