Userscript: Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
Undid revision 1084796261 by 63.232.144.33 (talk)
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 WbWeb 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>
 
On desktop browsers such as Firefox, userscripts are enabled by use of a [[userscript manager]] [[browser extension]] such as [[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]] |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.