Installing CSN

User-scripting is a technique that allows for the functional customization of a web browser. Firefox was the first to support this capability through GreaseMonkey, allowing an extension written in JavaScript to operate at a higher level of trust within the browser than is traditionally possible within an HTML web page. The idea proved popular, and has subsequently become supported in many other browsers.

Given the issue of security, getting a user-script extension going in your Web browser can be a bit fiddly. The purpose of this page is to help you through this process step by step in setting up CSN for each of the main Web browsers. The details presented here are strongly based on the this article at StackApps. The StackApps article has more by way of snapshots showing you want you be seeing through the installation process, however some of these popups appear to be slightly out of sync now with the latest versions of these browsers.

Firefox

Firefox needs the GreaseMonkey add-on to be installed to be able to run user scripts.

  1. Install the Greasemonkey add-on if you haven't done so, and restart your browser if prompted to do so.

  2. Click on this link computer-says-no.user.js.

  3. A Greasemonkey Installation dialog will appear. The popup shows which web site domains the user-script will be active on, and asks you to confirm that you wish to install the script.

  4. The script should now be installed. Refresh any tabs affected by the script or else open a new tab and start using CSN.

Chrome

The latest versions of Chrome are able to run user scripts natively.

  1. Download/Save the computer-says-no.user.js user-script.

  2. Open chrome://chrome/extensions/, or Click on Wrench -> Tools -> Extensions.

  3. Open the folder where the code was downloaded (accessed from the download bar at the bottom of Chrome).

  4. Drag the computer-says-no.user.js file into the Extensions tab. A small-ish target area will appear in the centre of the page.

    Note: you may need to switch on Developer Mode in Chrome's extension tab to be allowed in install the CSN javascript file as it does not come from one of the officially recognize sources of user-scripts.

  5. After that, you'll get the prompt to install the extension. Say OK.

  6. The script should now be installed. Refresh any tabs affected by the script or else open a new tab and start using CSN.

Safari

Safari needs the NinjaKit extension to be installed to be able to run the CSN user-script.

  1. Go to the NinjaKit homepage. The page is in Japanese, but don't worry—the install link is in English.

  2. Click on the "NinjaKit for Safari" link.

  3. If you are prompted to open or save the file, select open. If the file automatically downloads, find the downloaded file (NinjaKit.safariextz) and double-click it.

  4. When Safari pops up a message confirming you want to install NinjaKit, click install.

    Your Safari should now have a new icon (a Ninja four-pointed "throwing star") next to the main URL address bar in the browser. Restart Safari if this has not yet appeared.

  5. Now you are now ready to install the CSN user script, which—all going well—is acomplished by clicking on this link for computer-says-no.user.js which should bring up a popup asking if you want to install. Click Install.

    Note: for NinjaKit to offer to install the script you will need to have your popup blocker off—at least for the www.nzdl.org site this script is coming from. If you do not wish to do that, then you can manually install the CSN user-script by clicking on the Ninja star icon in the URL address bar to access this exention in Safari. Then, click on the Scripts tab, followed by pressing the "add new script" button. From there you can copy and past the CSN user-script over the top of the boiler-plate syntax that appears, and and press Save.

  6. The script should now be installed. Refresh any tabs affected by the script or else open a new tab and start using CSN.

Opera

The latest versions of Opera are able to run the CSN user-script natively.

  1. Create a folder for userscripts. (eg, C:\Program Files\Opera Browser\Userscripts\ - it does not need to be within the Program Files folder, anywhere is fine.)

  2. Within Opera, go to Tools -> Preferences.

  3. Click the Advanced tab.

  4. Click Content in the choices on the left.

  5. Click JavaScript options.

  6. For the User JavaScript files, click Choose.

  7. Select the userscripts folder created in step 1. and click ok.

  8. Click on the link to the computer-says-no.user.js file and save it to the userscripts folder created in step 1.

  9. The script should now be installed. Refresh any tabs affected by the script or else open a new tab and start using CSN.

Internet Explorer

Internet Explorer needs the IEPro7 extension to be installed to be able to run the CSN user-script. Don't be put off by the "7" in the name—this extension runs well in IE8 and above.

  1. Download and install IEPRo7.

  2. Restart Internet Explorer.

  3. Click on this link for computer-says-no.ieuser.js and save it to the IEPRof7 scripts folder. By default, this will be C:\Program Files\IEPro\userscripts.

    Note: unlike the user-scripting capabilities in other web browsers, for IEPro script names have to end in ieuser.js rather than user.js. This is the reason for providing a slightly different link for IE above, but otherwise the Javascript code is exactly the same.

  4. To control which user scripts are active, In Internet Explorer, go to Tools -> IE7 Preferences -> User Script.

    Note: you might have to switch on IE's Menu Bar to access the Tools menu. You can do this by right clicking on the main title bar to IE and selecting Menu Bar from the list of choices that come up.

  5. The script should now be installed. Refresh any tabs affected by the script or else open a new tab and start using CSN.