Wikipedia talk:Scripts
From Wikipedia, the free encyclopedia
So, scripting requests got moved here, where they're even more obscure. Not that anyone was hopping to do them before, but is there any way to make these more obvious or more likely to get done? More rewarding to the runner? I'm trying cash elsewhere, we'll see how that goes. --Ben Brockert 03:25, May 21, 2004 (UTC)
- The SQL needed to run them would help. Perhaps instructions on exactly how to get the database and what to do with it for people that have absolutely no idea where to start might encourage others to do this rather than relying on the few people that already have it set up. Angela. 05:46, May 21, 2004 (UTC)
-
- I agree, i have currently no idea how to run an SQL query to get that data, but if people would post the query needed to run it maybe more people would do it. --Ævar Arnfjörð Bjarmason 08:34, 2004 May 21 (UTC)
For the mIRC script that allows you to click on Wikilinks, is there any way to make the links open in an already open tab of an already open window? Right now it opens a completely new window; I know it is possible because before I foolishly "upgraded" the script to this new version, there was a version that worked the way I want...I just don't know how to do it now. Adam Bishop 23:23, 19 Jul 2004 (UTC)
[edit] Wikipedia:Tools
I am currently, together with User:Sj, establishing the page Wikipedia:Tools. The goal is to given an overview of tools for browsing and editing the wikipedia. I would like to suggest to interlinkt Wikipedia:Scripts more closely with the new page, and hope that we manage to coordinate the contents of the two pages in a sensible way. greets, -- 217.82.181.205 23:37, 24 Aug 2004 (UTC) (that is de:Benutzer:Duesentrieb)
[edit] Original mIRC Script Not Efficient
Quoting the mIRC Scripting documentation: Note: The script for hotlink events should be as small and as fast as possible since the event triggers each time the mouse is moved over a word.
In the original script, the hotlinker code actually evaluates 6 wildcard comparisons on every mousemove. Mine evaluates nothing. These are very resource intensive. Alot of the code is reductant, as my script will also accept multilingual and meta requests. Thank's to CXI for pointing this out.
Masterhomer
[edit] Wikilinks - supersedes older scripts
This script provides, to my knowledge, greater functionality with less processing than the long, inefficient script currently in place. In accordance, I have moved Wikilinks to the top of the mIRC link scripts section and refactored the description text appropriately.
If there are any problems with this, please let me know. CXI 01:51, 14 Nov 2004 (UTC)
- Looks like this does not work if the linked text has a , after it such as [[ARTICLE]], Dalf | Talk 10:14, 14 August 2005 (UTC)
- Also does not seem to work in query windows. Dalf | Talk 07:26, 18 August 2005 (UTC)
[edit] Unicode numeric converter scripts - Javascript
I use Help:Special_characters#ISO-8859-1_Characters for converter script upgrade. You can try it here. New code (use wikitext to copy):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><head><title>Unicode conversion utility</title></head> <body> <form name="charform"> <p>Type here, and all Wikipedia unsafe characters will be converted to Ӓ codes.</p> <p>Input:</p> <textarea name="input" cols="80" rows="25" onkeyup="revtxt()"> Sorry, this page is useless with Javascript disabled. </textarea> <p>Output (don't type here):</p> <textarea name="output" cols="80" rows="25"> Sorry, this page is useless with JavaScript disabled. </textarea> </form> <script language="Javascript"> document.charform.input.value=""; document.charform.output.value="Don't type here."; function revtxt() { var s=document.charform.input.value; o=""; for( m=0;s.charAt(m);++m ) if ( ( (c=s.charCodeAt(m))<128 && c!=38 ) || (c>=160 && c<=255 && c!=166 && c!=173 && c!=178 && c!=179 && c!=185 && c!=188 && c!=189 && c!=190 && c!=208 && c!=215 && c!=221 && c!=222 && c!=240 && c!=253 && c!=254 ) ) o+=s.charAt(m); else if (c==38) o+="&"; else o+="&#"+c+";"; document.charform.output.value=o; } </script> See <a href="http://en.wikipedia.org/wiki/Wikipedia:Scripts">Wikipedia:Scripts</a>. </body></html>
Wikilinks doesn't work with 2 byte character titles on ja.wikipedia.org. --Ypacaraí 07:23, 2005 Feb 19 (UTC)
[edit] wmlinksubber.py
This script seems to be very buggy. When trying to load it into Silverex X-Chat 2 on Windows XP, it crashes as soon as it encounters a WikiLink. Can someone else check it? Cctoide 21:17, 27 July 2005 (UTC)
I second this. I'm using version 0.0.8c of the script and I'm having the same problems. Landus Mikain 23:32, 13 December 2006 (UTC)
UPDATE: Try removing the C:\Documents and Settings\$user$\Application Data\X-Chat 2\.ircwikimapping.txt file if one exists.
Did that and everything fixed itself.
[edit] the Talk. Like. This. script....
I have one suggested (optional) variant. Urls often get ruined if they are the last item in a line of text. A simple isin can prevent this (for the rare times when someone includes a url). Changes in red:
on *:INPUT:#: { if (/* iswm $1) || (http:// isin $1-) { $input } elseif (($asc($right($1-,1)) > 96) && ($asc($right($1-,1)) < 123)) || (($asc($right($1-,1)) > 64) && ($asc($right($1-,1)) < 91)) || ($right($1-,1) isnum) { msg $active $+($upper($left($1-,1)),$right($1-,-1),.) halt } }
Now, someone could of course do a search for the last space, and see if "http" proceeded it, or other more complex methods, but this is quick and easy and mostly effective. Additional parameters to seek "ftp://", "gopher://", "www.", and "ftp." (the supported mirc prefixes for auto-url clicking) could be added as well, but are less used. Thoughts? Splarka (rant) 02:21, 30 September 2005 (UTC)
- I've updated the page to include this modification since it makes it a lot more useful. Angela. 03:10, 20 December 2005 (UTC)
[edit] kvirc
I'd love to see one of the wikilinks scripts translated to KVirc, if possible ;] --негіднийлють (Reply|Spam Me!*) 10:17, 26 November 2005 (UTC)
[edit] Compare categroy to list, show differences
Do we have a script/tool that could do this? I would like to see which entries at Category:Polish nobility are not linked from List of Polish nobility, so I can make sure the list is complete (at least in the regards to category).--Piotr Konieczny aka Prokonsul Piotrus Talk 17:15, 13 January 2006 (UTC)
[edit] IRC Recent Changes Script
Does anybody know the script that puts live Recent Changes on #en.wikipedia (irc.wikimedia.net)? I'm interested in making something similar for another wiki. - Super Sam 14:16, 1 May 2006 (UTC)
- How about this: m:Simple_IRC_RC_Bot (see also: m:IRC_channels) Splarka (rant) 07:28, 2 May 2006 (UTC)
- Or, if you mean, the bots that parse and display these changes on the freenode channels, see: WP:CVU#Detection_and_reversion Splarka (rant) 07:34, 2 May 2006 (UTC)
[edit] ENABLE
My school has everything blocked. Don't respond on my talk page, they'll find out. HOw the HELL do I enable JavaScript so I can use this damn proxy?
[edit] Central repository of scripts
For those developers who would rather put their scripts in a central repository, I have created User:Userscripts. (It seems that scripts can't be hosted anywhere outside of the User namespace.) Instructions for setting up a script there can be found on the userpage. Just FYI. Ingoolemo talk 23:10, 1 August 2006 (UTC)
[edit] Read an HTML content
I would know if it is able to know the content of a page. For example, if I want to know the content of the page User:Pasqual (ca)/Status, and then order to show an icon related to the content how I can do it? Pasqual (ca) · CUT 22:26, 7 October 2006 (UTC)
- http://javascript.internet.com/page-details/load-html.html
- But I dont load the content, only I want to know the content and it returns its value...
- For example:
wpCurrentStatus = http://en.wikipedia.org/wiki/User:Pasqual_%28ca%29/Status if (wpCurrentStatus =="offline") { wpStatusIcon = "red"; //it would be more extended } else if (wpCurrentStatus == 'busy') { wpStatusIcon= "yellow"; //it would be more extended } else if (wpCurrentStatus = 'online') { wpStatusIcon = "green"; //it would be more extended } else { wpStatusIcon = "grey"; //case of somebody has vandalized the page, or content is unusual.
-
- Pasqual (ca) · CUT 14:56, 8 October 2006 (UTC)
- Please, a channel on ChatZilla to contact with somebody. Pasqual (ca) · CUT 15:09, 8 October 2006 (UTC)
- Pasqual (ca) · CUT 14:56, 8 October 2006 (UTC)