Skip to content

Instantly share code, notes, and snippets.

@harshitaarora
Last active February 26, 2020 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harshitaarora/d07fb174cf7e7da58458f4ed0e78af19 to your computer and use it in GitHub Desktop.
Save harshitaarora/d07fb174cf7e7da58458f4ed0e78af19 to your computer and use it in GitHub Desktop.
Made by Gleb
[].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));
@harshitaarora
Copy link
Author

harshitaarora commented Dec 27, 2019

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; */
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment