User talk:Alex Smotrov

From Wikipedia, the free encyclopedia

Contents

Please do not bring discussions started elsewhere and do not use distracting signatures.
Old discussions.


[edit] histComb,js

Is there a way to make the script expand all of the entries by default rather that collapse them by default? (By the way, I copied your script into my userspace so I could make some changes. It's a great script). Harryboyles 06:06, 19 February 2008 (UTC)

Sorry for the delay. The script already had this option, I simply forgot to mention it on the documentation page. Set in your monobook.js: histCombNoCollapse=trueAlexSm 17:53, 21 February 2008 (UTC)
Thanks for that. Harryboyles 01:48, 22 February 2008 (UTC)

[edit] Oh my goodness, you have nice scripts

I installed edittop the old fashioned way, making the changes to work with my css as you suggested. Then I tried out your live demo of histcomb. Histcomb itself is fairly nice, but the live demo idea is just great. I'm very impressed! Thanks too for pointing out your previous proposal. It saved a lot of pointless effort already. JackSchmidt (talk) 18:36, 21 February 2008 (UTC)

[edit] warning vandals

Hello. Regarding the recent revert you made to WP:Signatures: You may already know about them, but you might find Wikipedia:Template messages/User talk namespace useful. After a revert, these can be placed on the user's talk page to let them know you considered their edit was inappropriate, and also direct new users towards the sandbox. They can also be used to give a stern warning to a vandal when they've been previously warned. Thank you. Enigma

[edit] Thanks for the help!

[edit] histComb.js stopped working properly - did I mess something up

All of a sudden, histcomb doesn't work properly for me any longer. Now, it simply collapses 50 entries into the same line, regardless of whether it is the same contributor or not. It does this even when I'm not logged in, and no matter which browser I use. This never used to be the case, and it worked fine yesterday evening. I did do a bunch of edits to another userscript in my monobook, but I'm not sure if this could be the problem because 1) it still occurs when I'm not logged in, by pasting the function directly into the address bar, and 2) it still occurs when I completely remove the script I made edits to yesterday. Any thoughts? Did something break on your end, or was it definitely me? In other words, does it still work fine for everyone else? Any thoughts on how I can figure out what the problem might be if it is on my end? IMO, the weirdest thing is that it happens in IE as well - I always edit on Firefox, and never log in on IE, so my monobook info shouldn't exist anywhere in the memory / cache of IE. Indeed, when I make the bug occur in IE by pasting into the address bar, it seems to be the only script in use, as functionality from other scripts are, as expected, missing when I'm not logged in. -Lilac Soul (talk contribs count) I'm watching this page so just reply to me right here! 07:58, 11 March 2008 (UTC)

rev:31724 suddenly removed <span class="history-user> from history page, this broke the script. I made a quick fix, will fix it better some time later.
By the way, I noticed you developing some code with dates in your monobook. You do not need arrays, try something like
d = new Date()
mmDD = zz(d.getMonth()+1) + zz(d.getDate())
function zz(s) { // 6 - > '06'
 s = s.toString()
 return (s.length == 1) ? '0' + s : s
}
Even better, the edit page has wpStarttime hidden field which gives you server time (as opposed to your local time) which looks like '20080311133502', and then you can use
d = document.editform.wpStarttime.value
mmDD = d.substring(4,6) + d.substring(6,8)
P.S. Install Firebug use it to test small pieces of code, much faster and less edits to your monobook.js. —AlexSm 13:47, 11 March 2008 (UTC)
Thank you very much, both for fixing the script and for the useful tips on scripting. While I've programmed a lot in different languages over the years, I'm new to Javascript, so I'm pretty much learning by doing... -Lilac Soul (talk contribs count) I'm watching this page so just reply to me right here! 14:47, 11 March 2008 (UTC)
The bug is back now, but it was gone there for a while. -Lilac Soul (talk contribs count) I'm watching this page so just reply to me right here! 20:33, 11 March 2008 (UTC)
It's not supposed to be back, maybe you simply switched browsers and your other browser still has old cached copy? Ctrl-R should fix it then. It it's not the case, let me know which browser you have a problem in. P.S. Please stop using the red color. —AlexSm 21:17, 11 March 2008 (UTC)
Indeed, it is working now. I did switch browsers (computers, actually), so perhaps you're right that that is what was going on. About the red colour in my signature, I will edit all instances on your talkpage right now! Thank you very much for your help! -Lilac Soul (talk contribs count) I'm watching this page so just reply to me right here! 07:30, 12 March 2008 (UTC)

[edit] The sign script

I'm using the sign script which adds -- ~~~~ when I press the button, but I want to know if the code can be made so that only 3 ~ are included. Otherwise my sig looks like this
-- αŁʰƏЩ @ 23:16, 25 March, 2008 23:16, 25 March 2008 (UTC)
If it can be done I'll copy the code into my own js, rather than editing the main code, obviously! -- αŁʰƏЩ @ 23:16, 25 March, 2008

  1. You did not include the link to the script, I have to guess it was Wikipedia talk:WikiProject User scripts/Scripts/qSig
  2. You can use example included in the documentation, simply removing one ~ from sigText value
  3. I consider your signatur highly disruptive
  4. Your signature is likely to create problems for archiving bots
  5. Because of 3 & 4 I don't think I can be of any more assistance
  6. Cheers —AlexSm 00:21, 26 March 2008 (UTC)

[edit] MediaWiki and user scripts

I am not the one who placed that script in MediaWiki namespace. That was done by FT2. Superm401 - Talk 16:33, 26 April 2008 (UTC)

I've moved it to my userspace. Superm401 - Talk 16:58, 26 April 2008 (UTC)
Thank you. However, since this will break JS for several people importing the old name, I think you should replace the non-working redirect with importScript('User:Superm401/Compare link.js'). —AlexSm 17:24, 26 April 2008 (UTC)

[edit] Categories

You'll be happy to know that I changed the link from "Categories" at the bottom of every page to point to Portal:Contents/Categorical index as you suggested. -- SamuelWantman 20:45, 28 April 2008 (UTC)

[edit] Internet Explorer 6

Hello, I noticed that at MediaWiki talk:Common.js#PngFix() breaking "no pictures" option you are having trouble with Internet Explorer 6. The simplest solution and best for you would be to upgrade to Internet Explorer 7 or use a different browser such as Firefox, Safari, or Opera. Any of these browsers should be faster than IE6 and have much less rendering bugs. —Remember the dot (talk) 15:25, 7 May 2008 (UTC)

[edit] FISHES

logPage: 239: TypeError: row.match(/\(.*\)/) has no properties ; please report —Preceding unsigned comment added by Ziggy Sawdust (talkcontribs) 20:32, 11 May 2008 (UTC)

Thank you for the report and sorry for delay. I could not reproduce the error, if you encounter it again please let me know the exact URL address and your browser version. I tried to fix the error anyway, hopefully should work now. —AlexSm 22:08, 13 May 2008 (UTC)

[edit] QUick preview

I started a thread on VPT about making a quick preview script into a gadget [1]. Your quick preview script was mentioned there, which I wasn't aware of. I thought you might be interested in that thread. — Carl (CBM · talk) 11:17, 13 May 2008 (UTC)

Yes, thank you, I saw the discussion, just didn't have time to participate. I'll try to share my opinion a bit later. —AlexSm 22:08, 13 May 2008 (UTC)

[edit] logpage.js

I like how this optimizes the view of Special:Log & Special:Log/newusers, however I primarily would love to use this for the move log. Sadly when I installed the script it didn't render that log differently :(...is it possible to ask you to tweak the script to make it compatible with move logs? I would really appreciate it :). (Note: My browser is Mozilla Firefox 3)¤~Persian Poet Gal (talk) 20:00, 13 May 2008 (UTC)

The script should have worked in all logs, it's just that page layout recently changed a bit, and the script stopped with JS error. I fixed it now, thank you for letting me know. —AlexSm 22:08, 13 May 2008 (UTC)
Awesome it works beautifully now! Thank you so much.¤~Persian Poet Gal (talk) 22:15, 13 May 2008 (UTC)

[edit] logpage.js error

I have seen this today in Russian Wikipedia protection log. Sorry, but I can't figure out anything better than just copy and paste the error message:

logPage: undefined: TypeError: Statement on line 233: Could not convert undefined or null to object Backtrace: Line 233 of linked script http://ru.wikipedia.org/w/index.php?title=User%3AAlex_Smotrov%2Flogpage.js&action=raw&ctype=text/javascript comment = opt + extra + " " + until + " " + comment.replace(ma[0], ""); break ; Line 106 of linked script http://ru.wikipedia.org/w/index.php?title=User%3AAlex_Smotrov%2Flogpage.js&action=raw&ctype=text/javascript parseRow(lis[i].innerHTML); Line 73 of linked script http://ru.wikipedia.org/w/index.php?title=User%3AAlex_Smotrov%2Flogpage.js&action=raw&ctype=text/javascript createTable(); Line 63 of linked script http://ru.wikipedia.org/w/index.php?title=User%3AAlex_Smotrov%2Flogpage.js&action=raw&ctype=text/javascript logPage.switchTable(); Line 857 of linked script http://ru.wikipedia.org/skins-1.5/common/wikibits.js?146 onloadFuncts[i](); Line 1 of inline#3 script in http://ru.wikipedia.org/wiki/Служебная:Log/protect if (window.runOnloadHook) ; please report

Kalan ? 15:00, 25 May 2008 (UTC)

[edit] Report

I was checking out Jimbo Wales's block log and the following is shown:

logPage: 110: TypeError: ma has no properties ; please report

So I'm officially reporting. Matthewedwards (talk · contribs · count · email) 07:43, 11 June 2008 (UTC)