Search results
Results from the WOW.Com Content Network
In order for user scripts like wikEd to function as a wiki user script (common.js installation), the following line has to be added to the MediaWiki configuration file LocalSettings.php by a server administrator (a site-wide installation does not need this setting):
Greasemonkey is a userscript manager made available as a Mozilla Firefox extension. It enables users to install scripts that make on-the-fly changes to web page content after or before the page is loaded in the browser (also known as augmented browsing ).
Userscripts are often referred to as Greasemonkey scripts, named after the original userscript manager for Firefox. On Wikipedia, a user scripts feature is enabled for registered users that allows them to install userscripts to augment editing and viewing of the encyclopedia's pages. [4]
It first emerged as a Greasemonkey userscript that was wrapped to support Google Chrome. Eventually the code was re-used and published as a standalone extension for Chrome which had more features than Chrome's native script support. [2] In 2011, Tampermonkey was ported to Android, enabling users to use userscripts on Android's internal browser. [3]
User scripts are written in JavaScript, and both of the above code snippets are in JavaScript. The second snippet uses JQuery , a JavaScript library that specializes in manipulating HTML . $ is a JQuery function that lets us target the HTML element we want.
In order to install a user script for your Wikipedia account, add the following line to Special:MyPage/common.js or Special:MyPage/skin.js: {{subst:iusc|script_path}} Replace script_path with the full .js page name of the user script to be installed. The template must be substituted (subst:), or else it won't work. Bypass your cache after ...
In Firefox (with the Greasemonkey add-on) or in Chrome, you can install a simple script that prevents editing while logged out on all Wikimedia Foundation sites. Once the script is installed and you click on Edit while logged out, it pops up a notice that you are not logged in and does not proceed.
In order to install a user script for your Wikipedia account, add the following line to Special:MyPage/common.js or Special:MyPage/skin.js: {{subst:iusc|script_path}} Replace script_path with the full .js page name of the user script to be installed. The template must be substituted (subst:), or else it won't work. Bypass your cache after ...