Skip to content

Instantly share code, notes, and snippets.

@fuzzyfox
Created September 11, 2013 10:06
Show Gist options
  • Save fuzzyfox/6521667 to your computer and use it in GitHub Desktop.
Save fuzzyfox/6521667 to your computer and use it in GitHub Desktop.
JavaScript: Mozilla TowTruck bookmarklet

Mozilla TowTruck Bookmarklet

This is a simple bookmarklet that you can use to run Mozilla TowTruck on any website.

Installation

Simple. Bookmark the link below:

javascript:(function(window,document,undefined){var script=document.createElement('script');script.setAttribute('src','https://towtruck.mozillalabs.com/towtruck.js');document.body.appendChild(script);setTimeout(function(){try{window.TowTruck(window);}catch(e){alert('Failed to load TowTruck');}},400);})(this,this.document);

Usage

Click to activate TowTruck on your end and send the link it provides to a friend. Note They too will need to have this bookmarklet.

If you've recieved a TowTruck link, but TowTruck has not openned just click the bookmarklet your end, and it should pop open ready to start working.

(function(window,document,undefined){var script=document.createElement('script');script.setAttribute('src','https://towtruck.mozillalabs.com/towtruck.js');document.body.appendChild(script);setTimeout(function(){try{window.TowTruck(window);}catch(e){alert('Failed to load TowTruck');}},400);})(this,this.document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment