Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Userscript for todoist.com (Non-Premium)
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