Difference between revisions of "WebFund 2013F: Tutorial 13"

From Soma-notes
Jump to navigation Jump to search
(Created page with "In this tutorial you will be learning about adding JavaScript code to your browser to modify the behavior and content of selected web pages. Such JavaScript code is knows as ...")
 
Line 6: Line 6:


First, you should install the appropriate browser extension:
First, you should install the appropriate browser extension:
* Greasemonkey for Firefox, or
* [https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/ Greasemonkey] for Firefox, or
* Tampermonkey for Chrome/Chromium
* Tampermonkey for Chrome/Chromium ([https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo Chrome web store] or [http://tampermonkey.net/ project page])
While Chrome has native support for user scripts; however, the interface is a bit clunky without an extension.
While Chrome has native support for user scripts; however, the interface is a bit clunky without an extension.



Revision as of 16:34, 5 December 2013

In this tutorial you will be learning about adding JavaScript code to your browser to modify the behavior and content of selected web pages. Such JavaScript code is knows as greasemonkey scripts or user scripts.

This material is purely optional. If you have been having difficulty we suggest that you use this tutorial time to get help with the assignments and past tutorials. You will get full marks for this tutorial simply for attending and working on class-related material during that time.

Getting Started

First, you should install the appropriate browser extension:

While Chrome has native support for user scripts; however, the interface is a bit clunky without an extension.

Note the rest of the instructions assume the use of Firefox and Greasemonkey; however, all of the code should work on either browser.

Changing Google's Interface

Adding a link to all pages

Explore