Last active
February 26, 2020 00:39
-
-
Save harshitaarora/d07fb174cf7e7da58458f4ed0e78af19 to your computer and use it in GitHub Desktop.
Made by Gleb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[].slice.call(document.querySelector('#content ul').children).sort((a, b)=>{ | |
const arr={'A':3,'B':1,'I':2}; | |
return arr[a.children[0].nodeName]-arr[b.children[0].nodeName]; | |
}).map(x => document.querySelector('#content ul').appendChild(x)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also if I click on links of any books directly from the website (or even in new tab), the green or light blue color goes away :/
The way to fix it is by doing inspect element on one of the book links and going to the <a href = "amazon.com/link" part, clicking on it, and deselecting the following checkbox there:
a:visited {
/* color: blue; */
}