User talk:Lupin/Anti-vandal tool/Archive 1
Rervertin
[edit]How does one revert with this tool? I've looked but none of the links seem to allow reverting or rollbacks. Also, will this work with blue colgne? --Maru (talk) Contribs 07:31, 12 November 2005 (UTC)
- The problem was that the RSS stream didn't provide a rollback button, but he's working on a solution. You can test it out in blue cologne, I don't know. — BRIAN0918 • 2005-11-12 12:30
- Yes, you can use it in other skins, I think. I've added some info on this to the page. When you click the link from the article to see the most recent diff, you should see a rollback link.
There's none from the page because I don't think it's possible to create one (I could be wrong here and would welcome correction, but Mediawiki seems to use a random number to create a hash, and I doubt that I could duplicate that from a client-side script).Lupin|talk|popups 23:34, 12 November 2005 (UTC)
To clarify: the link that you think should take you to the vandalized article actually takes you to a diff page, where you can rollback. Hope that makes sense! :-) Lupin|talk|popups 23:41, 12 November 2005 (UTC)
- OK, I have hacked around this. The rollback link that's now generated by the tool runs a javscript function, which downloads the diff page in the background and extracts the real rollback link if there is one. Then it opens that link in a new window/tab. (This explains why it's often slow to respond - it's waiting for the diff page to download). Lupin|talk|popups 18:16, 13 November 2005 (UTC)
Safari
[edit]Just thought I'd let you know that this doesn't work in Safari. — ceejayoz talk 05:14, 13 November 2005 (UTC)
- Nor Opera. Dan100 (Talk) 20:33, 9 December 2005 (UTC)
- It just crashes on 8.51 :-( Dan100 (Talk) 10:12, 10 December 2005 (UTC)
- Third time lucky! Seems to be running ok now - obviously just a bit wobbly on Opera. Dan100 (Talk) 10:13, 10 December 2005 (UTC)
- It works on Safari but you have to paste the following links to your user page to access the pages:
- User:Lupin/Filter recent changes for Recent changes with matching keywords (filter words)
- User:Lupin/Monitor my watchlist for changes to your watchlist
- User:Lupin/Recent IP edits for recent IP edits
- User:Lupin/All recent changes for all recent changes (basically an RSS feed)
- User:Lupin/Live spellcheck for spelling errors
- PopMusicBuff talk 21:02, 6 August 2009 (UTC)
- It works on Safari but you have to paste the following links to your user page to access the pages:
- Third time lucky! Seems to be running ok now - obviously just a bit wobbly on Opera. Dan100 (Talk) 10:13, 10 December 2005 (UTC)
- It just crashes on 8.51 :-( Dan100 (Talk) 10:12, 10 December 2005 (UTC)
An Uber-tool
[edit]Would it not be a good idea to combine this tool's rules with, say, the one that runs in the en-vandalism channel? Dan100 (Talk) 20:43, 9 December 2005 (UTC)
Agreed. This is possibly the best Wikipedia tool I've used so far. Would it be possible to add more words to the watchlist? Thanks, Mysekurity(have you seen this?) 21:54, 9 December 2005 (UTC)
- I think that the Roomba vandal bot run by User:Gmaxwell in irc.freenode.net#wikipedia-en-suspectedits is the future. I'm waiting for him to give me some output that I can stick a front-end onto. Lupin|talk|popups 17:00, 11 December 2005 (UTC)
- By the way, the wordlist is editable at User:Lupin/badwords. Please bear in mind that adding lots of words indisciminately will slow down the script even further - it runs rather sluggishly as things are on my machine. Lupin|talk|popups 00:29, 14 December 2005 (UTC)
Warn
[edit]When I click "warn", it adds {{subst:bv-n|ARTICLE}} ~~~~ to the user talk page of the person twice. Anyone else having an issue with this? Am I doing something wrong? -Mysekurity(have you seen this?) 09:41, 11 December 2005 (UTC)
- The code that does that is actually embedded in the popups script.
Cunning,Daft eh? :P Anyway, it seems you're loading that script twice in your monobook.js. Search for =User:Lupin/popups.js. To get the script loading only in non-safari browsers, you probably want to remove the first "installation". Lupin|talk|popups 16:57, 11 December 2005 (UTC)
- Warn doesn't seem to work for me, it only adds action=edit&autoedit=s#$\n{{subst:bv-n|Topography}}%20~~~~&autosummary=Your%20recent%20edits to the url but doesnt put anything in the edit box. Intinn 09:31, 23 March 2006 (UTC)
- The standard solution is to add one (but not both) of the following to your monobook.js file. The first enables popups, the second doesn't.
- {{subst:js|User:Lupin/popups.js}}
- {{subst:js|User:Lupin/autoedit.js}}
- Lupin|talk|popups 13:10, 23 March 2006 (UTC)
- The standard solution is to add one (but not both) of the following to your monobook.js file. The first enables popups, the second doesn't.
- Hm, replying to myself :) I noticed that you're already using popups, so this should work for you. Which browser and which OS are you using? Do you see any javascript errors? Lupin|talk|popups 13:10, 23 March 2006 (UTC)
- IE6.0 on Win2K at work --> doesn't work, at home using FirefFox I have no problems :) I haven't noticed any js. errors but our system administrators at work are very restrictive so It might just be that. Intinn 20:55, 23 March 2006 (UTC)
- Same deal for me... everything else works OK, I can see the big long string in the URL, but the User's Talk Page comes up blank. IE6 on WinXP Pro at work. Gzuckier 20:59, 5 December 2006 (UTC)
Safari, mk2
[edit]Works now! Awesome, thanks! — ceejayoz talk 00:35, 14 December 2005 (UTC)
Dosen't work on the safri computers at my school...CommonEditor2345 06:43, 22 May 2007 (UTC)
Expand
[edit]Why not make this a total alternative to the Recent changes page? That is, why the filtering? I would love to be able to get all anonymous edits with this thing, not just the ones with specific strings that are common to vandals. —Simetrical (talk) 05:05, 15 December 2005 (UTC)
- Done. If you clear your cache and refresh, you should see an "All recent changes" link in your toolbox. Lupin|talk|popups 16:13, 5 January 2006 (UTC)
Toolbox how-to?
[edit]Nice how this adds itself to the toolbox. I have a set of JavaScript tools in my browser's personal toolbar folder that I'd like to put in my Wikipedia toolbox so I have them available on whatever machine I'm on. Got any links to a how-to for what I need to know to add functions to the WP toolbox? I'm trying to reverse-engineer your .js file but could use some pointers. Thanks. — Kbh3rdtalk 17:53, 4 January 2006 (UTC)
- Look at the Installation section in the code, and copy the addlilink, addToolboxLink and simpleAddOnload functions. Adapt addMarvin to your needs (preferably giving it a sensible name) and then use simpleAddOnload(addMarvin). The addlilink and addToolboxLink functions come courtesy of the user scripts wikiproject. Lupin|talk|popups 14:59, 5 January 2006 (UTC)
- Thanks! My results are documented at User:Kbh3rd/Vandal warning toolbox. --Kbh3rdtalk 21:11, 13 January 2006 (UTC)
Monitor my watchlist...
[edit]crashes Firefox on OS X, for me, anyway.--jpgordon∇∆∇∆ 06:35, 9 January 2006 (UTC)
- How odd. Do any of the other links added by this tool do so? Which version of firefox are you using? Lupin|talk|popups 00:01, 11 January 2006 (UTC)
- I'm on 1.5. It is odd; the Javascript console gives me
Error: recent2_downloadComplete is not defined
Source File: http://wiki.riteme.site/w/index.php?title=User:Lupin/recent2.js&action=raw&ctype=text/javascript&dontcountme=s
Line: 29
...let's see what else (saving pre-crash)
--jpgordon∇∆∇∆ 06:37, 11 January 2006 (UTC)
- nope, that's it. No more messages on JS console, just crash. Anything I can do to help debug? --jpgordon∇∆∇∆ 06:40, 11 January 2006 (UTC)
- How many articles are in your watchlist?
- Which skin are you using? I've only tested this in monobook, it's possible that other skins will confuse this part of the script. (Although javascript should never be able to crash the browser, so this is clearly a firefox bug. It'd be nice to pinpoint it so that a bug report can be submitted though).
- Does it crash if you go to a random wikipedia page (not one of the special ones used by this tool) and type javascript:getWatchlist() in the URL bar? If not, then after a few seconds you should observe a burst of network activity as the page where you edit your watchlist, [1], is loaded. Following that, typing javascript:alert(watchlist) should give a list of pages in your watchlist. Lupin|talk|popups 13:05, 11 January 2006 (UTC)
- 2122 articles on my watchlist; I don't prune it often.
- Monobook skin (that's the default, isn't it?)
- Let's see about the next one. --jpgordon∇∆∇∆ 18:24, 11 January 2006 (UTC)
- The sequence of the two javascript commands gives me a quite long alert window. But works fine. --jpgordon∇∆∇∆ 18:26, 11 January 2006 (UTC)
- Here's the relevant part of the crash dump:
Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_INVALID_ADDRESS (0x0001) at 0x0428660c Thread 0 Crashed: 0 libmozjs.dylib 0x06058954 js_DestroyRegExp + 4980 1 libmozjs.dylib 0x06059020 js_DestroyRegExp + 6720 2 libmozjs.dylib 0x06059334 js_ExecuteRegExp + 284 3 libmozjs.dylib 0x0605a7d0 js_regexp_toString + 2456 4 libmozjs.dylib 0x0605a880 js_regexp_toString + 2632
Looks to me like the regular expression parser is getting something passed to it that it can't quite handle, trashing the heck out of the heap or possibly the stack. How long a regexp is this thing being passed? --jpgordon∇∆∇∆ 21:13, 11 January 2006 (UTC)
- A long one in your case - the one that appears in the alert window. If you type javascript:alert(watchlist.toString().length) then you'll get an exact number. Maybe I could just store the watchlist entries in an array and loop over it each time, although I suspect that'll be less efficient performance-wise than using a regexp. My watchlist has over 1900 entries, and seems to work OK though. Would you be comfortable in sharing your watchlist with me so that I can try to reproduce the crash? Don't worry if not, I understand there are privacy concerns. You should be able to save it to a page by going to an edit page, executing javascript:getWatchlist() and then
javascript:void(document.getElementById('wpTextbox1').value+=window.watchlist.toString().split('|').join('\n'))
You could then paste it into an email to me.Lupin|talk|popups 13:09, 13 January 2006 (UTC)
- It's on the way. For some reason I've never been able to fathom, regexp code has always been a hotbed of buffer overruns. Maybe some of it is still arcane code from days before people thought much about such dangers. --jpgordon∇∆∇∆ 16:56, 13 January 2006 (UTC)
- No offense, but -- are you using the regexp parser just to match a string to any entry on the watchlist? That's pretty inefficient, I'd think -- after all, they're in alphabetical order; wouldn't a binary search be way faster? --jpgordon∇∆∇∆ 17:15, 13 January 2006 (UTC)
- FWIW, removing all the "votes for deletion" entries did not fix the problem; removing all the User:IP entries reduced the size of the watchlist to 1600 or so, and now it works. Quite well. --jpgordon∇∆∇∆ 17:49, 13 January 2006 (UTC)
- No offense, but -- are you using the regexp parser just to match a string to any entry on the watchlist? That's pretty inefficient, I'd think -- after all, they're in alphabetical order; wouldn't a binary search be way faster? --jpgordon∇∆∇∆ 17:15, 13 January 2006 (UTC)
- I expect you're right about the binary search thing. Using regexes was the easiest thing to code up, so that's what I used. Lupin|talk|popups 00:22, 14 January 2006 (UTC)
- I've changed this to avoid regexes. Lupin|talk|popups 00:59, 14 January 2006 (UTC)
Camino
[edit]Just FYI, everything appears to work just fine in Camino as well. --Aaron 06:39, 13 January 2006 (UTC)
- "monitor my watchlist" crashes Camino for me too! Yeek! (I know, same engine.) (I woulda really shrieked if it crashed Safari too! --jpgordon∇∆∇∆ 06:54, 13 January 2006 (UTC)
- I didn't have trouble running "monitor my watchlist" myself; I'm running 10.4.4 on an 800MHz 17" gooseneck G4. I'm using my Windows laptop now, but I'll let "monitor my watchlist" run for a couple of hours on Camino tonight and see how stable it is. --Aaron 18:10, 13 January 2006 (UTC)
- The problem's fixed now anyway. I don't know if was caused by the size of the watchlist or some entry in the watchlist, but Lupin made the entire issue go away. Thanks Lupin! --jpgordon∇∆∇∆ 04:02, 14 January 2006 (UTC)
- I didn't have trouble running "monitor my watchlist" myself; I'm running 10.4.4 on an 800MHz 17" gooseneck G4. I'm using my Windows laptop now, but I'll let "monitor my watchlist" run for a couple of hours on Camino tonight and see how stable it is. --Aaron 18:10, 13 January 2006 (UTC)
- The toolbox links don't show up at all for me in Camino and the pages don't seem to do anything either, though everything is great in Safari. Tadpole9 23:31, 25 December 2006 (UTC)
- Update: After moving the InstaView script to the end of my monobook.js, this and all my other scripts work fine. Maybe that script does something strange in the end. Yay! Tadpole9(☎•✎) 04:53, 24 January 2007 (UTC)
Scope of "Monitor my watchlist"
[edit]Just a quick question: Is "Monitor my watchlist" supposed to not be alerting us to changes to User talk pages on our watchlists? Thanks, --Aaron 00:12, 14 January 2006 (UTC)
- No, if that's happening then it may be a bug. I say may be, since it's possible that these changes are being skipped by the rss feed. Lupin|talk|popups 00:20, 14 January 2006 (UTC)
- FWIW, it did alert me to this change, the one you just made above. Whether it's because it's a subpage of User talk:Lupin or an rss bug, I don't know. I'll post again after I see another change to a top level User talk page I'm watching. --Aaron 00:26, 14 January 2006 (UTC)
anti vandal tool
[edit]I cannot get it to work ILovePlankton 03:06, 28 February 2006 (UTC)
Question
[edit]I'm not familiar with the internals of the tool, but might it be possible to adapt it such to monitor pages created by users who don't have a user page, or satisfy a number of other criteria? -- Koffieyahoo 14:30, 6 March 2006 (UTC)
- That particular criterion would be hard to check - the only data readily to hand is all used by the tool, I think. Do feel free to suggest other possible filters if you think of any, though. Lupin|talk|popups 02:36, 9 March 2006 (UTC)
blocking
[edit]I've got a question. Do you have to be a sysop in order for you to block someone via. using your Anti-vandal tool? Please respond to me on my Talk page. Please and thank you! Funnybunny 06:24, 11 March 2006 (UTC)
- One more thing. When I try to revert vandalism, it shows a message that says "rollback is only for admins or, this might be a bug." Is there a secret to reverting vandalism that I missed out on?
- No, there's no secret. The rollback and block links provided by this tool are only useful for admins. Lupin|talk|popups 00:20, 13 March 2006 (UTC)
Reverse ordering?
[edit]First off, excellent tool, saves a huge amount of time ... However, I feel it would be more useful if the new changes were listed most current at the top(inserted above earlier edits). Is this possible/easy/totally insane? tepid 02:35, 18 May 2006 (UTC)
- The tool was originally set up like this, but it meant that the new content pushed the older content down the page. This meant that you often clicked the wrong links with the mouse, which made the tool hard to use. I think the code is still in there to get things set up as you describe, but it does make things considerably more inconvenient.
- Anyway, if you're still not convinced, then try typing javascript:void(recent2.outputPosition='top') into the location bar and hit enter. Lupin|talk|popups 02:46, 18 May 2006 (UTC)
- Ooh, ta, much obliged. It's just that I have all of my other tools with time-sensitive info setup that way, it's what I'm used to. tepid 02:50, 18 May 2006 (UTC)
- Hi Lupin. This is exactly how I would like it formatted as well, only permanently. I can do the location bar entry, but that's only per tab/session. I've tried setting the variable as a default in my monobook.js (in several different ways), but it doesn't seem to work. I've tried both of the following both before and after my import command:
recent2 = { outputPosition : 'top' };
outputPosition = 'top';
But neither seems to do the trick. When I check to see what the status of outputPosition is when monitoring my watchlist (via javascript:void(alert(recent2.outputPosition)) ) I just get a blank dialog box. If I manually override it from the location bar at runtime as you have described though, everything works (and my alert box reads: top). Do you know what I'm doing wrong? Thanks. Chaldor (talk) 08:31, 14 September 2008 (UTC)
internationalization
[edit]If I already have compiled a list of badwords for spanish, could you tell me if this would work at es:, and how to use my own list? -- Drini 21:31, 18 May 2006 (UTC)
- I've made a few changes to make this easier. I think you should be able to make a copy of User:Lupin/recent2.js and customize it to your liking by editing the stuff at the top. In particular, you should dump your badwords list somewhere on the spanish wikipedia and tell the script where with the badwordsUrl variable. The page references refer to whichever wiki the script is run from. Only mediawiki wikis are currently supported. I haven't made the interface translatable (yet). Lupin|talk|popups 13:25, 19 May 2006 (UTC)
Rollback link position
[edit]Lupin, I've just recently started testing this great tool out. The only thing that bothers me slightly is the proximity of the "rollback" link to the "show details" link. I'm worried about hitting rollback by mistake when closing the details again. Any chance of spacing them out a bit to avoid this? Thanks. --Cactus.man ✍ 10:18, 27 May 2006 (UTC)
- I've put a couple of dots before the rollback link. Also, I've added a css style to the link. This means that you can add something like this to your monobook.css file to make it obvious that you're about to click something significant:
a.recent2_rollback:hover{ background: red; color: white; }
Presets
[edit]Hi Lupin. Great tool you've created here, but I was wondering whether it's possible for a user to preset their settings. e.g. I patrol recent changes ignoring ignoring talk pages/outside the article namespace and I need to use non-admin rollback. Is there any way for me to have those settings already enabled before the feed starts?
Netsnipe 14:51, 15 June 2006 (UTC)
- No, that's not currently possible. Good idea, though. Lupin|talk|popups 11:54, 26 June 2006 (UTC)
- Did you implement presets, or has Firefox 1.5.0.4 gotten smarter? If so, thanks a lot! -- Netsnipe (Talk) 14:20, 10 July 2006 (UTC)
Problems
[edit]Hi. I've been using your great tool for a while successfully, but today for some reason it is not working. When I go to the filter recent changes page, in both FF and IE (and I tested it on another account), nothing happens below the line. All the other pages, like All recent changes, Recent IP edits, etc., work. Is anyone else having this problem? Michael WhiteT·C 13:49, 19 June 2006 (UTC)
- It's working for me. I suggest you try clearing your browser cache if this persists (especially after any wikipedia downtime). Lupin|talk|popups 11:54, 26 June 2006 (UTC)
Other wikipedia
[edit]Hi, I'm trying to set this tool up on the Dutchlanguaged wikipedia, I assume this is ok with you, if not I'll remove it. However I can't get it fully functional. The pages which are used are
- nl:Gebruiker:Erwin85/recent2.js
- nl:Gebruiker:Erwin85/AVT/badwords
- nl:Gebruiker:Erwin85/AVT/Filter_recent_changes
- nl:Gebruiker:Erwin85/AVT/All_recent_changes
- nl:Gebruiker:Erwin85/AVT/Recent_IP_edits
- nl:Gebruiker:Erwin85/AVT/Monitor_my_watchlist
- nl:Gebruiker:Erwin85/AVT/Live_spellcheck
I've noticed that the rollback feature doesn't work, at least not as a sysop, I haven't tried the non-admin rollback, since I'm a sysop. Do you have any idea what I've done wrong? Thanks in advance, Erwin85 18:58, 20 June 2006 (UTC). PS I assumed this was ok, since a few months ago you said it was ago to use parts of popups' code.
- Yes, reuse of the code is fine. It's possible that the dutch wikipedia does things sufficiently differently that it confuses my rollback function. Please could you email me the source of a page such as [2] when logged in as an admin? (Hopefully that page has a rollback link on it - if not, please locate one that does and send me the url of that page too). Lupin|talk|popups 11:54, 26 June 2006 (UTC)
- An update on this: it turns out that admin rollback was broken on en, too, due to changes in mediawiki. Please try updating from User:Lupin/recent2.js and see if it works. Lupin|talk|popups 13:07, 26 June 2006 (UTC)
- I copied the latest version and the admin rollback works now. Thanks! --Erwin85 17:40, 26 June 2006 (UTC)
- An update on this: it turns out that admin rollback was broken on en, too, due to changes in mediawiki. Please try updating from User:Lupin/recent2.js and see if it works. Lupin|talk|popups 13:07, 26 June 2006 (UTC)
I've got another question. How does the badwords page work? I'd like to place a message encouraging others to edit the list, is that possible? And does foobar also match ..foobar, foobar.. and ..foobar.., where the dots stand for any character, or only foobar? Thanks in advance, Erwin85 19:04, 20 June 2006 (UTC)
- Yes, others can edit that page. There's no really good comment syntax at the moment, although lines which start with a < character are ignored. So you could put instructions in a <span>.
- The matches from that list are made at word boundaries only, and are case-insensitive. A word boundary is defined as whatever your browser's javascript engine thinks a word boundary is :-) Lupin|talk|popups 11:54, 26 June 2006 (UTC)
- Ok, thanks. --Erwin85 17:40, 26 June 2006 (UTC)
Hungarian Wikipedia
[edit]Hi, I tried to localize your tool on huwiki, but I have a problem: the "Live spellcheck" page lists a lot of edits, but none matches the examples on the list, it writes only "matched" and nothing else in the lines. When I click on the "details", the HTML source code of the difflink page is displayed. Do you have any advice? -nagytibi ! ? 19:28, 1 July 2006 (UTC)
- Could you provide a link to your attempt so that I can take a look? Thanks, Lupin|talk|popups 19:50, 1 July 2006 (UTC)
- recent2.js
- badwordsUrl
- filterPage
- allRecentPage
- recentIPPage
- monitorWatchlistPage
- spelldictUrl
- spelldictPage
-nagytibi ! ? 07:48, 2 July 2006 (UTC)
- I got the error :) in the spelldict one word's correct form was missing (the line was " mindíg->" not " mindíg->mindig") -nagytibi ! ? 18:47, 2 July 2006 (UTC)
- Great! I'm surprised that an error in the spelldict was messing up the recent changes filter though. Lupin|talk|popups 23:38, 2 July 2006 (UTC)
BattleTechWiki
[edit]- I'm an admin (but not a Bureaucrat) over at BattleTechWiki and I've been messing around with the installation instructions you provided here. What confuses me, however, is the installation instruction to, "find the code to use in your monobook.js file by first using the above instructions on this wiki, then copying and adapting the resulting code. You'll also have to copy and adapt the script for your wiki." I've taken the resulting code:
+ 'http://wiki.riteme.site/w/index.php?title=User:Lupin/recent2.js' + '&action=raw&ctype=text/javascript&dontcountme=s">');
and tried various adaptions, including changing the url to BTW's, then chaging Lupin to my name. I'm not getting the additions to my toolbox. What am I doing wrong? (Thanks for any assistance.) --LeyteWolfer 00:14, 3 December 2006 (UTC)
Anti-vandal working?
[edit]I've recently installed it in my monobook, it's been about 5 minutes. Should I be seeing updates in the recent changes area? Should I just wait longer? --DREW 20:15, 1 July 2006 (UTC)
- Special:Recentchanges isn't affected by this tool - please see the usage instructions. Lupin|talk|popups 21:44, 1 July 2006 (UTC)