Created
April 30, 2014 12:55
-
-
Save dasgib/b615b85010d6a267bc42 to your computer and use it in GitHub Desktop.
Userscript for todoist.com (Non-Premium)
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
window.onload = function() { | |
// add "overview" button | |
var filters_list = document.getElementById('top_filters'); | |
var home_filter = document.createElement('li'); | |
home_filter.setAttribute('class', 'filter current'); | |
home_filter.innerHTML = '<img src="https://d3ptyyxy2at9ui.cloudfront.net/76084e29cb2cf72b320e888edc583dfb.gif" width="20" height="18" class="cmp_filter_inbox" style="background-position: -2px -649px">Overview'; | |
home_filter.onclick = function() { document.location.href = 'https://todoist.com' } | |
filters_list.insertBefore(home_filter, filters_list.firstChild); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment