Skip to Content
Wikipedia: The Missing Manual
book

Wikipedia: The Missing Manual

by John Broughton
January 2008
Beginner
504 pages
16h 56m
English
O'Reilly Media, Inc.
Content preview from Wikipedia: The Missing Manual

Adding and Deleting Scripts

To use user scripts, you create a personal JavaScript page, which only you and Wikipedia administrators can edit. On this page, you put the user scripts that you want to use, or pointers to other pages where JavaScript code is stored (which Wikipedia uses to add code to your page).

When you want to stop using a script, you edit that personal page, deleting the JavaScript code or pointer, or marking it as non-executable information. That’s called commenting it out, and it just means you’re telling the Wikipedia software not to follow those instructions.

Note

In late 2007, Wikipedia added a new feature that lets you implement user scripts with just a couple of clicks. On the My Preferences page, check the Gadgets tab to see if the script you want to add is listed on that tab. If so, you can save time by turning it on that tab, rather than following the instructions in this section. (For details, see Gadgets.)

Your Personal JavaScript Page

Creating your JavaScript page is as easy as creating a subpage in your own user space, as described in Chapter 3. See Personal Subpages if you need a refresher on subpages. This chapter assumes that you’re using the standard Monobook skin for your Wikipedia window (Skin), and so you’ll name your personal page monobook.js. (If you use a different skin, see the box on Removing Scripts.)

When you’re ready to do the JavaScript jive, go to your user page, and follow these steps:

  1. On your user page, click “edit this page”. In the edit ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Wikipedia Reader's Guide: The Missing Manual

Wikipedia Reader's Guide: The Missing Manual

John Broughton
How Wikipedia Works

How Wikipedia Works

Phoebe Ayers, Charles Matthews, Ben Yates
Word 2013 Bible

Word 2013 Bible

Lisa A. Bucki

Publisher Resources

ISBN: 9780596515164Errata Page