Are you using LeetCode to learn programming?
Here is a short js
code to toggle solved problem.
-
Install this extension: https://chrome.google.com/webstore/detail/custom-javascript-for-web/ddbjnfjiigjmcpcpkmhogomapikjbjdk
-
Open https://leetcode.com/problemset/algorithms/ in Chrome
-
Open the Custom JavaScript for Websites 2 extension: copy and paste below code:
function toggle() {
$('.ac').parent().parent().toggle();
}
$("#navBar-right").prepend('<li><a href="#" onclick="toggle()">Toggle Solved</a></li>');
Click Save button and enjoy!
Create a bookmarklet with below line:
javascript:(function(){document.body.appendChild(document.createElement('script')).src='https://dl.dropboxusercontent.com/u/4121165/js/toggle-display-leetcode.js';})();
You only need click the bookmarklet to toggle solved problems.