From 13bb9ff93a88ea4594caf3d63f3dbd3bfccfdf45 Mon Sep 17 00:00:00 2001 From: Shiv Shankar Kanaujiya <73483959+shivprime94@users.noreply.github.com> Date: Wed, 3 May 2023 23:06:19 +0530 Subject: [PATCH] updated the language selection using document --- scripts/leetcode.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/leetcode.js b/scripts/leetcode.js index a4569f25..47af4d9a 100644 --- a/scripts/leetcode.js +++ b/scripts/leetcode.js @@ -39,10 +39,7 @@ let uploadState = { uploading: false }; /* Get file extension for submission */ function findLanguage() { const tag = [ - ...document.getElementsByClassName( - 'ant-select-selection-selected-value', - ), - ...document.getElementsByClassName('Select-value-label'), + ...document.getElementsByTagName("div")[133] ]; if (tag && tag.length > 0) { for (let i = 0; i < tag.length; i += 1) {