Userscript: Difference between revisions

Content deleted Content added
Bluelinking 1 books for verifiability.) #IABot (v2.1alpha3
m Bot: http → https
 
(38 intermediate revisions by 27 users not shown)
Line 1:
{{Short description|Program usually written in JavaScript for modifying web pages}}
{{about|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
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, controlling playback speeds, adding 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>
|url=https://www.computerhope.com/jargon/u/userscri.htm
|title=User script
|date=2017-04-26
|website=[[Computer Hope Dictionary]]
|publisher=[[Computer Hope]]
|access-date=2017-08-19
|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]]. On desktop browsers such as Firefox, they are enabled by use of a [[userscript manager]] [[browser extension]] such as [[Greasemonkey]]. The Presto-based Opera-browser-supported userscripts (referred to as User JavaScript<ref>{{cite web
|url=https://www.opera.com/docs/userjs/
|title=User JavaScript
|date=2012-06-02
|website=[[Opera.com]]
|publisher=[[Opera.com]]
|access-date=2017-08-31
|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 desktop browsers such as Firefox, userscripts are enabled by use of a [[userscript manager]] [[browser extension]] such as [[Tampermonkey]] or [[Greasemonkey]]. The Presto-based Opera-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]] |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 |year=2008 |chapter=Chapter 21: Easier Editing with JavaScript |title=Wikipedia: The Missing Manual |url=https://archive.org/details/wikipediamissing00brou_0/page/401 |publisher=[[O'Reilly Media]] |page=[https://archive.org/details/wikipediamissing00brou_0/page/401 401] |isbn=978-0596515164 |quote=You can customize Wikipedia in ways that make your editing easier with ''user scripts'', which are written in JavaScript code. |url-access=registration }}</ref>
 
On Wikipedia, a [[Wikipedia:User_scriptsUser 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>{{citeCite book |last=Broughton |first=John |year=2008 |chapter=Chapter 21: Easier Editing with JavaScript |title=Wikipedia: The Missing Manual |url=https://archive.org/details/wikipediamissing00brou_0/page/401 |publisher=[[O'Reilly Media]] |year=2008 |isbn=978-0596515164 |page=[https://archive.org/details/wikipediamissing00brou_0/page/401 401] |isbnchapter=978-0596515164Chapter 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>
 
== Userscript managers ==
Line 27 ⟶ 16:
One aspect of userscripts is that they can be shared. They can be uploaded to a userscript repository where they become available to other users for downloading.
 
Historically (circa 2005-20112005–2011) userscripts.org, created by American programmer Jesse Andrews, was the largest such repository for userscripts. Over time, the site was transitioned between various maintainers before it went offline completely in May 2014.<ref>{{Cite web |date=May 9, 2014 |title=Userscripts.org down for good? Here are alternatives - gHacks Tech News |url=https://www.ghacks.net/2014/05/09/userscripts-org-good-alternatives/ |website=gHacks Technology News |access-date=2021-06-13}}</ref> All that remains is a mirror, which is useful for archival purposes.<ref>[{{Cite web |title=Jesse Andrews - Userscripts.org |url=https://userscripts-mirror.org/users/anotherjesse Userscripts|website=userscripts-mirror.org mirror : creator Jesse Andrew's profile]|access-date=2021-06-13}}</ref>{{primary source inline|date=September 2019}}
 
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 A snapshot of the most active members in |website=userscripts-mirror.org] |access-date=2021-06-13}}</ref> created ''OpenUserJS'',<ref>[{{Cite web |title=OpenUserJS |url=https://github.com/orgs/OpenUserJs/people Collaborators of OpenUserJs onOpenUserJS |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/graphs/contributors Code|website=GitHub metrics for greasyfork, a Ruby based userscript repository]|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 Userscript|website=wiki.greasespot.net hosting|access-date=2021-06-13}}</ref> and [[Tampermonkey]]</ref>{{primaryCite sourceweb inline|datetitle=SeptemberTampermonkey 2019}} andFAQ Tampermonkey<ref>[|url=https://www.tampermonkey.net/faq.php#Q102 Tampermonkey|website=www.tampermonkey.net FAQ]</ref>{{primary source inline|access-date=September 20192021-06-13}}</ref> extensions may choose to install {{Not a typo|.user.js}} scripts from any ___location.
 
== References ==
{{Reflist}}
 
== See also ==
Line 40 ⟶ 26:
* [[List of augmented browsing software]]
* [[Scripting language]]
 
== References ==
{{Reflist}}
 
== External links ==
* [https://greasyfork.org/ Greasy Fork]
 
* [https://openuserjs.org/ OpenUserJS]
 
* [https://userscripts-mirror.org/ Userscripts.org archival mirror]
* [https://www.greasespot.net/ Greasespot.net, official website for Greasemonkey (Firefox extension)]