Skip to content

Commit

Permalink
Merge pull request #117 from fireblocks/SlavaSereb-patch-42
Browse files Browse the repository at this point in the history
Update scalar-api-interaction.js
  • Loading branch information
SlavaSereb authored Nov 26, 2024
2 parents 4dd85c2 + b515432 commit c69479e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scalar-api-interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// Function to hide the specified element
function hideElement() {
const elementToHide = document.querySelector('#app > div.api-references-layout > div.scalar-app.scalar-api-reference.references-layout.references-sidebar.references-sidebar-mobile-open > section > div.narrow-references-container > div:nth-child(2) > section > div > div > div:nth-child(2) > div > div > div:nth-child(2)');
const elementToHide = document.querySelector('#app > div.api-references-layout > div.scalar-app.scalar-api-reference.references-layout.references-sidebar.references-sidebar-mobile-open > section > div.narrow-references-container > div:nth-child(2) > section > div > div > div:nth-child(2) > div > div > div:nth-child(1)');
console.log("Found element to hide:", !!elementToHide);
if (elementToHide) {
elementToHide.style.display = 'none';
Expand Down

0 comments on commit c69479e

Please sign in to comment.