Userscript: Difference between revisions

Content deleted Content added
Undid part of revision 1029622563 by Pengolin (talk) The Mozilla dev network is not spam
Filled in 1 bare reference(s) with reFill 2 and reference clean-up
Line 1:
{{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, keyboard shortcuts, control playback speeds, add features to sites, and enhancing [[browsing history]].<ref>[{{Cite web |title=userScripts - Mozilla &#124; MDN |url=https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/userScripts userScripts|website=developer.mozilla.org |access- Mozilla MDN]date=2021-06-21}}</ref>
A '''userscript''' (or '''user script''') is a program, usually written in [[JavaScript]], for modifying [[web page]]s<ref>{{cite web
|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]]. Uses include adding shortcut buttons, keyboard shortcuts, control playback speeds, add features to sites, and enhancing [[browsing history]].<ref>[https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/userScripts userScripts - Mozilla MDN]</ref>
 
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>{{citeCite 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.
|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 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>{{citeCite book |last=Broughton |first=John |year=2008 |chapter=Chapter 21: Easier Editing with JavaScript |title=Wikipedia: The Missing Manual |chapter-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 29 ⟶ 15:
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–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 |urldate=https://www.ghacks.net/May 9, 2014/05/09/userscripts-org-good-alternatives/ |title=Userscripts.org down for good? Here are alternatives - gHacks Tech News |dateurl=May 9, https://www.ghacks.net/2014/05/09/userscripts-org-good-alternatives/ |website=gHacks Technology News |accessdateaccess-date=June 13, 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|title=Jesse Andrews - Userscripts.org|website=userscripts-mirror.org |accessdateaccess-date=June 2021-06-13, 2021}}</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|title=Community - Userscripts.org|website=userscripts-mirror.org |accessdateaccess-date=June 13, 2021-06-13}}</ref> created ''OpenUserJS'',<ref>{{Cite web |title=OpenUserJS |url=https://github.com/OpenUserJS|title=OpenUserJS |website=GitHub |accessdateaccess-date=June 2021-06-13, 2021}}</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|title=JasonBarnabe/greasyfork |website=GitHub |accessdateaccess-date=June 2021-06-13, 2021}}</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|title=User Script Hosting - GreaseSpot Wiki|website=wiki.greasespot.net |accessdateaccess-date=June 13, 2021-06-13}}</ref> and Tampermonkey<ref>{{Cite web |title=Tampermonkey • FAQ |url=http://www.tampermonkey.net/|title=Tampermonkey • FAQ|website=www.tampermonkey.net |accessdateaccess-date=June 13, 2021-06-13}}</ref> extensions may choose to install .user.js scripts from any ___location.
 
== See also ==