Skip to content

Instantly share code, notes, and snippets.

@markbao
Last active August 29, 2015 14:26
Show Gist options
  • Save markbao/305f74549b9a7c47dfff to your computer and use it in GitHub Desktop.
Save markbao/305f74549b9a7c47dfff to your computer and use it in GitHub Desktop.
Userscript to add a Twitter list to the Twitter web interface's menu bar. Looks like this: http://i.imgur.com/ji9TLOU.png
// ==UserScript==
// @name Twitter List in Menu Bar
// @description Userscript to add a Twitter list to the Twitter web interface's menu bar. By Mark Bao. Looks like this: http://i.imgur.com/ji9TLOU.png
// @version 1
// @namespace https://twitter.com/
// @include https://twitter.com/*
// ==/UserScript==
var text = '<li class="list-item">\
<a role="button" href="[REPLACE-ME]-https://twitter.com/username/lists/list-name" class="" data-placement="bottom" data-original-title="">\
<span class="text">[REPLACE-ME]-List-Name</span>\
</a>\
</li>'
var mbar = document.getElementById('global-actions');
mbar.insertAdjacentHTML('beforeend', text);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment