Userscript

A userscript (or user script) is a program, usually written in JavaScript, for modifying web pages[1] to augment browsing. Uses include adding shortcut buttons and keyboard shortcuts, controlling playback speeds, adding features to sites, and enhancing the browsing history.[2]

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[3]) 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 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]

Userscript managers

A userscript manager is a type of browser extension and augmented browsing technology that provides a user interface to manage scripts. The main purpose of a userscript manager is to execute scripts on webpages as they are loaded. The most common operations performed by a userscript manager include downloading, creating, installing, organizing, deleting and editing scripts, as well as modifying script permissions (e.g. website exceptions).

Userscript repositories

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.[5] All that remains is a mirror, which is useful for archival purposes.[6][non-primary source needed]

A handful of the most active contributors in the userscripts.org community[7] created OpenUserJS,[8][non-primary source needed] which is actively in use today. Also available is Greasy Fork, a repository largely developed and maintained by Canadian programmer Jason Barnabe.[9][non-primary source needed]

Users of the Greasemonkey[10] and Tampermonkey[11] extensions may choose to install .user.js scripts from any location.

See also

References

  1. ^ "User script". Computer Hope Dictionary. Computer Hope. 2017-04-26. Retrieved 2017-08-19. 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.
  2. ^ "userScripts - Mozilla | MDN". developer.mozilla.org. Retrieved 2021-06-21.
  3. ^ "User JavaScript". Opera.com. 2012-06-02. Retrieved 2017-08-31. User JavaScript allows you to specify local JavaScript files for Opera to include on every page that you visit.
  4. ^ Broughton, John (2008). "Chapter 21: Easier Editing with JavaScript". Wikipedia: The Missing Manual. O'Reilly Media. p. 401. ISBN 978-0596515164. You can customize Wikipedia in ways that make your editing easier with user scripts, which are written in JavaScript code.
  5. ^ "Userscripts.org down for good? Here are alternatives - gHacks Tech News". gHacks Technology News. May 9, 2014. Retrieved 2021-06-13.
  6. ^ "Jesse Andrews - Userscripts.org". userscripts-mirror.org. Retrieved 2021-06-13.
  7. ^ "Community - Userscripts.org". userscripts-mirror.org. Retrieved 2021-06-13.
  8. ^ "OpenUserJS". GitHub. Retrieved 2021-06-13.
  9. ^ "JasonBarnabe/greasyfork". GitHub. Retrieved 2021-06-13.
  10. ^ "User Script Hosting - GreaseSpot Wiki". wiki.greasespot.net. Retrieved 2021-06-13.
  11. ^ "Tampermonkey • FAQ". www.tampermonkey.net. Retrieved 2021-06-13.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.