Jump to content

Wikipedia:WikiProject User scripts: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Lupin (talk | contribs)
Requests: angela's request
Line 133: Line 133:


*In [http://bloglines.com/ bloglines] and [http://gmail.com gmail], I can get to the next blog post or email just by pressing ''j''. I've got so used to this functionality that I keep pressing ''j'' on the wiki, expecting to jump to the next heading on the page. Is anyone capable of making a user script to do this? [http://www.mattkruse.com/javascript/anchorposition/source.html This script] by Matt Kruse might be a good starting point. [[User:Angela|Angela]][[user talk:Angela|.]] 07:34, 24 January 2006 (UTC)
*In [http://bloglines.com/ bloglines] and [http://gmail.com gmail], I can get to the next blog post or email just by pressing ''j''. I've got so used to this functionality that I keep pressing ''j'' on the wiki, expecting to jump to the next heading on the page. Is anyone capable of making a user script to do this? [http://www.mattkruse.com/javascript/anchorposition/source.html This script] by Matt Kruse might be a good starting point. [[User:Angela|Angela]][[user talk:Angela|.]] 07:34, 24 January 2006 (UTC)

** I've written something to do this. Try adding <nowiki>{{subst:js|User:Lupin/sectionkeys.js}}</nowiki> and (if you need it) <nowiki>{{subst:Wikipedia:WikiProject_User_scripts/Scripts/addOnloadFunction.js}}</nowiki> to your user javascript file. [[User:Lupin|'''Lupin''']]|[[User_talk:Lupin|talk]]|[[Wikipedia:Tools/Navigation popups|popups]] 23:14, 25 January 2006 (UTC)


*Fast checking from recent changes would be nice. It would be interesting to have a script which automatically checks if you're referred to an article from [[Special:Recentchanges]], and takes some verification action. For example, the insertion of an '''iframe''' at the top of the article, perhaps 6-10 lines long, directed on a [http://www.fuckinggoogleit.com google] search for the article title without surrounding quotes. For experimental data showing the potential value, see recent deletion log for [[Shridhar Chillal]] and google the article title. Manually googling in all honesty takes about 15-20 seconds; having this automated saves enough time to knock out a [[psychological barrier]]. --[[User:Bluefoxicy|John Moser]] 08:54, 25 January 2006 (UTC)
*Fast checking from recent changes would be nice. It would be interesting to have a script which automatically checks if you're referred to an article from [[Special:Recentchanges]], and takes some verification action. For example, the insertion of an '''iframe''' at the top of the article, perhaps 6-10 lines long, directed on a [http://www.fuckinggoogleit.com google] search for the article title without surrounding quotes. For experimental data showing the potential value, see recent deletion log for [[Shridhar Chillal]] and google the article title. Manually googling in all honesty takes about 15-20 seconds; having this automated saves enough time to knock out a [[psychological barrier]]. --[[User:Bluefoxicy|John Moser]] 08:54, 25 January 2006 (UTC)

Revision as of 23:14, 25 January 2006

This project is about Wikipedia user scripts. For a general collection, see Wikipedia:Scripts. For Greasemonkey user scripts, see Wikipedia:Tools/Greasemonkey user scripts. For other tools, see Wikipedia:Tools.
For basic help with using and installing these scripts, see m:Help:User style.

Some Wikipedians have formed a project to better create, organize and share User scripts. This page and its subpages contain their suggestions; it is hoped that this project will help to focus the efforts of other Wikipedians. If you would like to help, please inquire on the talk page and see the to-do list there. Currently, the focus is on scripts for monobook.js, but it may eventually expand to all skins.

For more information on WikiProjects, please see Wikipedia:WikiProjects and Wikipedia:WikiProject best practices.

Subpages

  • Scripts - a library of user scripts.
  • Tutorial - a tutorial on how to start using or writing user scripts.
  • Techniques - a list of commonly used techniques.


Similar pages

Participants

Goals

  1. Provide a central store of user scripts
  2. Make it easy for people to use user scripts
  3. Create a plugin system for user scripts


Tasks

  1. Create a tutorial/walkthrough of how to set up scripts and how to get started writing your own.
    can we please get on this task asap!  ALKIVAR 19:17, 8 November 2005 (UTC)[reply]
    Unless you know javascript, I think that this will just consist of "Find a nice script somewhere and copy it/follow the instructions for installing it". We don't have any sort of generic framework that a non-programmer can use to install or create scripts as far as I know. Lupin|talk|popups 01:07, 9 November 2005 (UTC)[reply]
    Er, what about /Tutorial? JesseW, the juggling janitor 18:14, 9 November 2005 (UTC)

Requests

It's not what you asked for, but if you're using firefox you can install Retro Find and Regular Expression Find to get regexp searching throughout pages, including textareas. Lupin|talk|popups 13:10, 3 December 2005 (UTC)[reply]
function addAlexaLinks() {
  for (var i=0; i<document.links.length; ++i) {
    var l=document.links[i]; 
    if(l.className.indexOf('external') != 0) continue;
    var sp=document.createElement('span');
    sp.innerHTML=' [<a href="http://www.alexa.com/data/details/?url=' + l.href + '">alexa</a>]';
    if(l.nextSibling) l.parentNode.insertBefore(sp, l.nextSibling);
    else l.parentNode.appendChild(sp);
  }
}
addOnloadFunction(addAlexaLinks);
  • In bloglines and gmail, I can get to the next blog post or email just by pressing j. I've got so used to this functionality that I keep pressing j on the wiki, expecting to jump to the next heading on the page. Is anyone capable of making a user script to do this? This script by Matt Kruse might be a good starting point. Angela. 07:34, 24 January 2006 (UTC)[reply]
    • I've written something to do this. Try adding {{subst:js|User:Lupin/sectionkeys.js}} and (if you need it) {{subst:Wikipedia:WikiProject_User_scripts/Scripts/addOnloadFunction.js}} to your user javascript file. Lupin|talk|popups 23:14, 25 January 2006 (UTC)[reply]
  • Fast checking from recent changes would be nice. It would be interesting to have a script which automatically checks if you're referred to an article from Special:Recentchanges, and takes some verification action. For example, the insertion of an iframe at the top of the article, perhaps 6-10 lines long, directed on a google search for the article title without surrounding quotes. For experimental data showing the potential value, see recent deletion log for Shridhar Chillal and google the article title. Manually googling in all honesty takes about 15-20 seconds; having this automated saves enough time to knock out a psychological barrier. --John Moser 08:54, 25 January 2006 (UTC)[reply]

Resources

Contact

  1. IRC: irc://irc.freenode.net:6667/#wikipedia-wikiproject-scripts

References

Devmo JavaScript Reference FileSystemObject - this only works on Windows.

Tools

  • Colorizer: http://blogs.applibase.net/prasad/downloads/jscolorizer/jscolorizer.html (needs a few tweaks to be perfectly set up for the wiki, though: remove the >pre> tags, put a single space at the beginning of every line. Somebody want to make these minor changes and host it on their webspace?).
    • CHANGES: Thanks for putting up the requirements, I have made the required changes, so now you can get colorized code with/without <pre> tags, you can select each line indentation.
      • Thanks so much for making the changes I requested! It is much better! If I may, I'd like to request one other addition - a way to replace the br/ tags with real newlines; that way the output won't all end up on one line. Just replacing them won' work, as closing font tags are put after them. But if you replace all of them, then replace font newline combinations with newline font - it works. Thanks again for responding! - Let me know if I should put this somewhere else. (Copied to the linked blog). JesseW, the juggling janitor 23:16, 28 October 2005 (UTC)

Piles of code

Places that we might mine for interesting and/or useful bits of code. Please anotate the following as you review them. This is from the June 23 2005 database dump, listing all the page names with .js in them, excluding the other skins versions of monobook.js.

  1. meta:Help:User style - contains a lot of useful bits that we ought to copy into Scripts
  2. User:Jag123/StubScript.js - valuable - doesn't look like code I've seen before. Should be investigated further. JesseW 23:48, 29 August 2005 (UTC)
  3. User:Korath/Spoiler.js - valuable - all of these should be added to Scripts
    Doesn't work; relies on old revisions of Template:Spoiler top and Template:Spoiler bottom, which are themselves barely used. Might be rewriteable into something for the standard Template:Spoiler (and variants) and Template:Endspoiler. —Cryptic (talk) 15:36, 12 November 2005 (UTC)[reply]
    I've rewritten it, with Ilmari Karonen's help, at User:Cryptic/spoiler.js. —Cryptic (talk) 22:39, 28 December 2005 (UTC)[reply]
  4. User:Korath/autovfd.js - valuable - all of these should be added to Scripts
  5. User:Korath/blockip.js - valuable - all of these should be added to Scripts
  6. User:Korath/welcome.js - valuable - all of these should be added to Scripts
  7. User:Pilaf/livepreview.js - valuable - local expanded copy is here, partially commented.
  8. User:Poccil/Automation.js - valuable - all of these should be added to Scripts
  9. User:Poccil/Schooltables.js - valuable - doesn't look like code I've seen before. Should be investigated further. JesseW 23:48, 29 August 2005 (UTC)
    Is for personal use; it reads a file on his computer. The FSO code is nice to have, though. raylu 05:42, August 31, 2005 (UTC)
    I wouldn't think we really want ActiveX security risks here. As much as possible, we're looking for cross-browser scripting. jnothman talk 01:26, 7 November 2005 (UTC)[reply]
  10. User:Tom-/mediawiki.js - contains only the line: document.getElementById("ca-delete").getElementsByTagName("a")[0].accessKey = ""; - which should probably be added to Techniques
  11. User:Lupin/md5-2.2alpha.js - md5sum function which works with UTF strings
  12. User:Lupin/popups.js - see Wikipedia:Tools/Navigation popups
  13. User:Lupin/autoedit.js - automatically edit (sed-style) using commands in URLs
  14. User:Lupin/fixnew.js - change ip addresses into contribs links (eg used to be useful on Special:Newpages, but now mediawiki does that anyway so it's obselete on that page)
  15. User:Lupin/nichalpCustomLinks - on user pages, add toolbox links to kate's tool, user log and block/unblock
  16. User:Lupin/recentdiffs.js - display all diffs on one page. A bandwidth hog, but somewhat useful sometimes.
  17. User:Lupin/recent2.js - monitor the recent changes rss feed for objectionable content
  18. User:Cryptic/smiley.js (documentation) - replace ascii emoticons with images.
  19. User:Cryptic/toggleundelete.js - adds an "Invert" button to administrators' undeletion pages.

monobooks.js

  1. User:-aka-demia/monobook.js - valuable - Categories at Top function - should be added to Scripts
  2. User:Alphax/monobook.js - Popups, godmode-lite, add purge tab, add section 0 tab, add generic tab, add generic tab for use as a menu, close AFD, 1-click talk page messages, funky date manipulation stuff (start thread, week old AFD page, live clock (client based)), toolbox link adding, show/hide AFDs, force edit summary, text replacement, make clicking on non-existent talk pages from the content page auto-start a new section, add a history link to the new messages box
  3. User:Andrewh/monobook.js - adds "Wikipedia: (Pagename)" to the status bar
  4. User:Angela/monobook.js - bottom tabs and an interesting implementation of toolbox links
  5. User:Arwel_Parry/monobook.js - bottom tabs, blocklog tabs
  6. User:Astronouth7303/monobook.js - get article name, add edit section
  7. User:Aydee/monobook.js - top links (needs checking)
  8. User:Bdesham/monobook.js - removal of hotkeys
  9. User:BesigedB/monobook.js - add purge tab (another version), some other interesting (but as yet unknown) stuff
  10. User:Blankfaze/monobook.js
  11. User:Bratsche/monobook.js
  12. User:BrokenSegue/monobook.js
  13. User:Bsienk/monobook.js
  14. User:Bucephalus/monobook.js
  15. User:Burgundavia/monobook.js
  16. User:Camembert/monobook.js
  17. User:Carbonite/monobook.js
  18. User:CatherineMunro/monobook.js
  19. User:Celestianpower/monobook.js - near-spaghetti code which I plan to rewrite for Celestianpower sometime. Alphax τεχ 03:02, 29 October 2005 (UTC)[reply]
  20. User:Ceyockey/monobook.js
  21. User:Chamaeleon/monobook.js
  22. User:Chiacomo/monobook.js
  23. User:Chopchopwhitey/monobook.js
  24. User:Chrism/monobook.js
  25. User:CloudSurfer/monobook.js
  26. User:Colin_Hill/monobook.js
  27. User:ContiE/monobook.js
  28. User:Crispiness/monobook.js
  29. User:Cyrius/monobook.js
  30. User:DanKeshet/monobook.js
  31. User:Danny_B-)/monobook.js
  32. User:Davidcannon/Biography/monobook.js
  33. User:Davidcannon/monobook.js
  34. User:Dbenbenn/monobook.js
  35. User:Demiurge/monobook.js
  36. User:Dennis_Valeev/monobook.js
  37. User:Diberri/monobook.js
  38. User:Dori/monobook.js
  39. User:Drini/monobook.js
  40. User:Dshill/monobook.js
  41. User:E=MC^2/monobook.js
  42. User:Eloquence/monobook.js
  43. User:Evil_Monkey/monobook.js
  44. User:Fabiform/monobook.js
  45. User:Fangz/monobook.js
  46. User:Fito/monobook.js
  47. User:Foobaz/monobook.js
  48. User:Fvw/monobook.js
  49. User:Gangleri/monobook.js
  50. User:Gebruiker:Dedalus/monobook.js
  51. User:Gentgeen/monobook.js
  52. User:Geraki/monobook.js
  53. User:Gkhan/monobook.js
  54. User:Goblin/monobook.js
  55. User:Grm_wnr/monobook.js
  56. User:Guy_M/monobook.js
  57. User:Gwi/monobook.js.
  58. User:Gwi/monobook.js
  59. User:Hégésippe_Cormier/monobook.js
  60. User:Halibutt/monobook.js
  61. User:Hemanshu/monobook.js
  62. User:Hooloovoo/monobook.js
  63. User:Icairns/monobook.js
  64. User:IceKarma/monobook.js
  65. User:Ilya/monobook.js
  66. User:Ilyanep/monobook.js
  67. User:Inter/monobook.js
  68. User:Ish_ishwar/monobook.js
  69. User:Jag123/monobook.js
  70. User:JanSlupski/monobook.js
  71. User:Jd87/monobook.js
  72. User:Jdforrester/monobook.js
  73. User:JesseW/monobook.js
  74. User:Jiang/monobook.js
  75. User:Jimbo_Wales/monobook.js
  76. User:Jimregan/monobook.js
  77. User:Jjeffs/monobook.js
  78. User:Johan_Elisson/monobook.js
  79. User:Jrdioko/monobook.js
  80. User:Jredmond/monobook.js
  81. User:Jsanchezes/monobook.js
  82. User:Judvrd/monobook.js
  83. User:Kahusi/monobook.js
  84. User:Kcar1986/monobook.js
  85. User:Kelly_Martin/monobook.js
  86. User:Kevin_Saff/monobook.js
  87. User:Kmccoy/monobook.js
  88. User:Knowledge_Seeker/monobook.js
  89. User:Korath/monobook.js
  90. User:Korrigan/monobook.js
  91. User:Kukkurovaca/monobook.js
  92. User:Lan3y/monobook.js
  93. User:Luigi30/monobook.js
  94. User:Lupin/monobook.js - removeAccessKeys (somewhat redundant), subject nag (ignore own userspace, but don't allow blank summaries or summaries just consisting of automatically generated section titles otherwise), the evaluator, an extremely useful javascript debugging tool
  95. User:Lupo/monobook.js
  96. User:Lupo_Test/monobook.js
  97. User:Ma'ame_Michu/monobook.js
  98. User:Mark_Dingemanse/monobook.js
  99. User:Markaci/monobook.js
  100. User:Marsian/monobook.js
  101. User:Matthewmayer/monobook.js - adds an 'unwatch' link to each item on watchlist.
  102. User:MattTM/monobook.js
  103. User:MattTM/monobook.js
  104. User:Maximus_Rex/monobook.js
  105. User:Mbimmler/monobook.js
  106. User:Memzy/monobook.js
  107. User:Menchi/monobook.js
  108. User:Metju12/monobook.js
  109. User:MikeX/monobook.js
  110. User:Mike_Storm/monobook.js
  111. User:Mikez/monobook.js
  112. User:Mirv/monobook.js
  113. User:Mononoke/monobook.js
  114. User:Mormegil/monobook.js
  115. User:Mr._Strong_Bad/monobook.js
  116. User:Msh210/monobook.js
  117. User:Mu5ti/monobook.js
  118. User:Mulad/monobook.js
  119. User:Mzajac/monobook.js
  120. User:NSR/monobook.js
  121. User:Nadavspi/monobook.js
  122. User:Nauseam/monobook.js
  123. User:Nommonomanac/monobook.js
  124. User:Norm/monobook.js
  125. User:Ollinaie//monobook.js
  126. User:Ollinaie/monobook.js
  127. User:Omegatron/monobook.js - I have a thing to fix dashes (en,em,minus), fix units ("43KHZ" → "43 kHz"), and add an unwatch link after every article on your watchlist
  128. User:Omphaloscope/monobook.js
  129. User:Onco_p53/monobook.js
  130. User:Oui/monobook.js
  131. User:Oven_Fresh/monobook.js
  132. User:OwenBlacker/monobook.js
  133. User:Palica/monobook.js
  134. User:Paul_Stansifer/monobook.js
  135. User:Paullisa/monobook.js
  136. User:Pcb21/monobook.js
  137. User:Phil_Boswell/monobook.js
  138. User:PiaCarrot/monobook.js
  139. User:Pika_Pikachu/monobook.js
  140. User:Pilaf/monobook.js
  141. User:Pile0nades/monobook.js
  142. User:Pjacobi/monobook.js
  143. User:Plop/monobook.js
  144. User:Pmcm/monobook.js
  145. User:Polly_on_Pills/monobook.js
  146. User:Prattflora/Monobook.js
  147. User:Przepla/monobook.js
  148. User:R3m0t/Monobook.js
  149. User:R3m0t/monobook.js
  150. User:RW/monobook.js
  151. User:Randy_Johnston/monobook.js
  152. User:Rdsmith4/monobook.js
  153. User:Redwolf24/monobook.js Block user from their user or user talk page, kate count, popups, auto-afd.
  154. User:RexNL/monobook.js
  155. User:Rich_Farmbrough/monobook.js
  156. User:RoToRa/monobook.js
  157. User:Roybb95/monobook.js
  158. User:Rparle/monobook.js/purgebutton
  159. User:Rparle/monobook.js
  160. User:Rrjanbiah/monobook.js
  161. User:Sam_Hocevar/monobook.js
  162. User:Sanmartin/monobook.js
  163. User:Sannse/monobook.js
  164. User:Sansculotte/monobook.js
  165. User:Saruoh/monobook.js
  166. User:Savetheclocktower/monobook.js
  167. User:Schneem?nnchen/monobook.js
  168. User:ScudLee/monobook.js
  169. User:Seancdaug/monobook.js
  170. User:Sebbe/monobook.js
  171. User:Sgeo/monobook.js
  172. User:Sgeo/monobook.js_(toolbox_links)
  173. User:Shanes/monobook.js
  174. User:Sheldon_Rampton/monobook.js
  175. User:Simonfairfax/monobook.js
  176. User:Sj/monobook.js
  177. User:Sketchee/monobook.js
  178. User:Slea/monobook.js
  179. User:SlimVirgin/monobook.js
  180. User:Smoddy/monobook.js
  181. User:Spangineer/monobook.js
  182. User:Stevertigo/monobook.js
  183. User:Sundar/monobook.js
  184. User:Susvolans/monobook.js
  185. User:Sverdrup/monobook.js
  186. User:Ta_bu_shi_da_yu/monobook.js
  187. User:Tacvek/monobook.js
  188. User:Tagishsimon/monobook.js
  189. User:Teknic/monobook.js
  190. User:The_Computer_Mutt/Monobook.js
  191. User:TheoClarke/monobook.js
  192. User:Tietew/monobook.js
  193. User:Timwi/monobook.js
  194. User:Tlogmer/monobook.js
  195. User:Tom-/monobook.js - code to remove delete function accesskey...
  196. User:TreyHarris/monobook.js - blank, was code to hide and show spoiler boxes(should be looked at)
  197. User:Trilobite/monobook.js - Investigate!
  198. User:TruBlu/monobook.js - blank, was version; contains an interesting bit to move the interlanguage links to the top. Should be investigated.
  199. User:Tsca/monobook.js - bottom links
  200. User:Unyounyo/monobook.js - links at the bottom
  201. User:Urby2004/monobook.js - LivePreview
  202. User:Waxpancake/monobook.js - betterhistory, 403 Forbidden
  203. User:Wclark/monobook.js - redefines the ta array. Investigate.
  204. User:Weft/monobook.js - Godmode-lite
  205. User:Whitehorse1/monobook.js - blank, was a link to http://gladstone.uoregon.edu/~chill1/betterhistory <- Should be investigated. Now 403 Forbiden
  206. User:Xaosflux/monobook.js combination of many monobooks.
  207. User:Yelhsa/monobook.js - LivePreview, only.
  208. User:Zeimusu/monobook.js - Lupin's Popups, nosource()(adds a nosource tag to an image; should be added to /Scripts), /Scripts/addpurge(), /Scripts/replace(), uses morelinks function to load the above, LivePreview, KateLink()(adds a link to Kate's Editcounter to every page; should be added to /Scripts)
  209. User:ZeroOne/monobook.js - LivePreview, only.
  210. User:Zocky/monobook.js - links to various interesting things(listed above).

standards.js

  1. User:Lupin/standard.js