Userscript: Difference between revisions

Content deleted Content added
m Removing link(s) Wikipedia:Articles for deletion/Computer Hope closed as delete (XFDcloser)
m Bot: http → https
 
(16 intermediate revisions by 13 users not shown)
Line 1:
{{Short description|Program usually written in JavaScript for modifying web pages}}
{{for|use of userscripts on Wikipedia|Wikipedia:User scripts|selfref=y}}
A '''userscript''' (or '''user script''') is a program, usually written in [[JavaScript]], for modifying [[web page]]s<ref>{{Cite web |date=2017-04-26 |title=User script |url=https://www.computerhope.com/jargon/u/userscri.htm |access-date=2017-08-19 |website=Computer Hope Dictionary |publisher=Computer Hope |quote=script that is run in a Web browser to make live changes to a Web page. These scripts are oftentimes used to add some functionality to a page or to change its appearance. These are typically written in JavaScript, but can be written in other languages as well.}}</ref> to [[augmented browsing|augment browsing]]. Uses include adding shortcut buttons, and keyboard shortcuts, controlcontrolling playback speeds, addadding features to sites, and enhancing the [[browsing history]].<ref>{{Cite web |title=userScripts - Mozilla &#124; MDN |url=https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/userScripts |website=developer.mozilla.org |access-date=2021-06-21}}</ref>
 
On desktop browsers such as Firefox, theyuserscripts are enabled by use of a [[userscript manager]] [[browser extension]] such as [[Tampermonkey]] or [[Greasemonkey]]. The Presto-based Opera-browser-supported userscripts (referred to as User JavaScript<ref>{{Cite web |date=2012-06-02 |title=User JavaScript |url=https://www.opera.com/docs/userjs/ |access-date=2017-08-31 |website=[[Opera.com]] |publisher=[[Opera.com]] |quote=User JavaScript allows you to specify local JavaScript files for Opera to include on every page that you visit.}}</ref>) are placed in a designated directory. Userscripts are often referred to as [[Greasemonkey]] scripts, named after the original userscript manager for Firefox.
 
On Wikipedia, a [[Wikipedia:User scripts|user scripts]] feature is enabled for registered users that allows them to install userscripts to augment editing and viewing of the encyclopedia's pages.<ref>{{Cite book |last=Broughton |first=John |title=Wikipedia: The Missing Manual |publisher=[[O'Reilly Media]] |year=2008 |isbn=978-0596515164 |page=[https://archive.org/details/wikipediamissing00brou_0/page/401 401] |chapter=Chapter 21: Easier Editing with JavaScript |quote=You can customize Wikipedia in ways that make your editing easier with ''user scripts'', which are written in JavaScript code. |chapter-url=https://archive.org/details/wikipediamissing00brou_0/page/401 |chapter-url-access=registration}}</ref>
Line 20:
A handful of the most active contributors in the userscripts.org community<ref>{{Cite web |title=Community - Userscripts.org |url=https://userscripts-mirror.org/users.html |website=userscripts-mirror.org |access-date=2021-06-13}}</ref> created ''OpenUserJS'',<ref>{{Cite web |title=OpenUserJS |url=https://github.com/OpenUserJS |website=GitHub |access-date=2021-06-13}}</ref>{{primary source inline|date=September 2019}} which is actively in use today. Also available is ''Greasy Fork'', a repository largely developed and maintained by Canadian programmer Jason Barnabe.<ref>{{Cite web |title=JasonBarnabe/greasyfork |url=https://github.com/JasonBarnabe/greasyfork |website=GitHub |access-date=2021-06-13}}</ref>{{primary source inline|date=September 2019}}
 
Users of the [[Greasemonkey]]<ref>{{Cite web |title=User Script Hosting - GreaseSpot Wiki |url=https://wiki.greasespot.net/User_Script_Hosting |website=wiki.greasespot.net |access-date=2021-06-13}}</ref> and [[Tampermonkey]]<ref>{{Cite web |title=Tampermonkey • FAQ |url=httphttps://www.tampermonkey.net/ |website=www.tampermonkey.net |access-date=2021-06-13}}</ref> extensions may choose to install {{Not a typo|.user.js}} scripts from any ___location.
 
== See also ==
Line 31:
 
== External links ==
* [https://greasyfork.org/ Greasy Fork]
* [https://openuserjs.org/ OpenUserJS]
* [https://userscripts-mirror.org/ Userscripts.org archival mirror]