Search results
Results from the WOW.Com Content Network
User scripts are written in JavaScript, and both of the above code snippets are in JavaScript. The second snippet uses JQuery , which is a JavaScript library that specializes in manipulating HTML . $ is a JQuery function that lets us target the HTML element we want.
First, make sure you are registered and logged in.Only logged-in users can install user scripts. to edit your common.js file.; Add the following line: {{subst:Lusc|script_path}} – replace "script_path" with the full name of the .js page that opens when a script's "(source)" link is clicked.
Any script that does nothing other than add a link to a page to a menu, panel or toolbar belongs to § Shortcuts. Any script that makes an edit to a page (i.e. increases the user's contributions) or changes the appearance or behavior of the edit form (action=edit/submit) belongs to § Editing.
If you would like to use or write user scripts, or learn or write JavaScript, or about JavaScript, for the betterment of Wikipedia (and beyond), including improving the coverage of JavaScript-related topics and support pages, you've come to the right place.
The script at the page Wikipedia:WikiProject User scripts/Scripts/User tabs has three full lines of comment (two at the top, one at the bottom); these have two slashes at the beginning. The actual code that will be executed is the middle fifteen lines.
There are a number of pages designed to help with Wikipedia maintenance and editing which are generated by copying the entire Wikipedia database to a machine and running a script or program on it. Here you can request that someone with a recent copy of the database dump and the appropriate skills update the Specialpages and other pages ...
An advanced API for interacting with Wikipedia content is being developed, large parts of which are already operational. The various possibilities are described at mw:API . The idea is to send an AJAX request (see below) to the API containing a query.
BeanShell is a small, free, embeddable Java source interpreter with object scripting language features, written in Java. It runs in the Java Runtime Environment (JRE), dynamically executes standard Java syntax and extends it with common scripting conveniences such as loose types, commands, and method closures, like those in Perl and JavaScript.