Short Url: http://caseywatts.com/chromeextensionworkshop
Alternate Short Url: http://tinyurl.com/blatant-panda
Other gists & tricks: http://caseywatts.com/gists-and-tricks
- Inspiration - Some Chrome Extensions to Inspire You
Short Url: http://caseywatts.com/chromeextensionworkshop
Alternate Short Url: http://tinyurl.com/blatant-panda
Other gists & tricks: http://caseywatts.com/gists-and-tricks
Cloud To Butt Plus Chrome Extension
You should know some javascript before coming to this workshop. If you can google and copy-paste that will get you most of the way there, but you should at least understand the commands you’re typing. You definitely don’t have to be able to write this sort of thing from memory.
Before coming to this workshop make sure you know how to:
This part of the workshop should be done in groups of 2-3 people. Use javascript to do a find-and-replace on the entire page, in the Chrome Developer Console.
Try to complete this challenge above on your own before looking at this. If you get stuck, ask people around you for guidance first. Once you've completed it you should check over the guide to make sure you understand everything that's happened. There's also a challenge at the bottom of the guide!
Take your find-and-replace code from earlier, and make it into a bookmarklet!
Follow this guide:
Time to take the code from earlier and make it into a Chrome Extension!
Here are some example extensions you might care about (some of Casey's examples, and other ones)
Related - another way to extend a browser's functionality is to add a search engine! Here are a bunch for Yale:
Environment | How |
---|---|
Developer Console | Yes. If it's already on the page, or if you import it with something like jQuerify |
Bookmarklet | Sort of. Bookmarklets have to be short. Importing a library or other js file is possible, but more difficult. See [Script Inclusion (Browser Power)](http://subsimple.com/bookmarklets/tips.php#Script Inclusion) and Bookmarklets with jQuery. |
Chrome Extension | Absolutely! Just include jQuery in your package. |
Same rules as above
Same rules as above
It's been taught now at least 4 times in 3 continents, with great feedback from students! :D