This file contains hidden or 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
/* 1. Paste this entire gist over at https://mrcoles.com/bookmarklet/ to generate a bookmarklet */ | |
/* 2. Use a meaningful Name like: 🎧 📖 Links */ | |
/* 3. Drag the generated bookmarklet link to your Bookmarks Toolbar. */ | |
/* 4. Click on the bookmarklet when you're on the Overdrive loan page, e.g. https://yourlibrary.overdrive.com/account/loans */ | |
/* 5. The "Download MP3 audiobook" link should appear like it used to. */ | |
$('a[data-format-id="audiobook-overdrive"]').each(function() { | |
var listenBtn = $(this); | |
if (listenBtn.hasClass('script-added')) { |
This file contains hidden or 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
function addFullScreenMenu () { | |
var menu = document.createElement('menu'); | |
var item = document.createElement('menuitem'); | |
menu.setAttribute('id', 'fsmenu'); | |
menu.setAttribute('type', 'context'); | |
item.setAttribute('label', 'Fullscreen'); | |
item.addEventListener('click', function (e) { | |
if (window.fullScreen) { | |
document.body.mozCancelFullScreen(); |
This file contains hidden or 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
# pip is a tool for installing Python packages. | |
sudo easy_install pip | |
# Essential tools for any self-respecting Python programmer. | |
sudo pip install virtualenv virtualenvwrapper ipython | |
# This is where we keep Python environments. | |
mkdir ~/.virtualenvs | |
# Set up our shell for virtualenvwrapper. |