User talk:Markhurd/hidetopcontrib.js
Use it on Italian Wikipedia?
[edit]Very useful tool. Can I adapt this for a foreign 'pedia? Lenore (talk) 19:54, 6 April 2009 (UTC)
- Responded here.
- Added it:Utente:Markhurd/hidetopcontrib.js. Mark Hurd (talk) 16:26, 13 April 2009 (UTC)
- Thank you --Lenore (talk) 11:37, 14 April 2009 (UTC)
Bug
[edit]Take a look at my contribs. Your tool has some problems when in the contributions there are new pages: when there are a new page (with N), even if I'm the last contributor that page it's not removed completely, only the last entry is removed Lenore (talk) 21:24, 11 June 2009 (UTC)
- Done The actual problem was the ← links on a redirect and the way the script was using regexes to determine the changed page. I have changed it to just use the content (text, not link) of the fourth link in each row. Mark Hurd (talk) 18:22, 15 June 2009 (UTC)
- Now it works well, thank you very much! Lenore (talk) 17:13, 16 June 2009 (UTC)
Vector?
[edit]Does this script work on the Vector skin? I just tested it on meta, and it didn't work... btw, what do you think about making this a link inside the "For <Username> (talk | block log | logs | filter log)" line? Or maybe next to "(20 | 50 | 100 | 250 | 500)". That'd be more compact (I already have enough tabs, and on Vector especially they take even more space). Cheers, Waldir talk 20:33, 19 April 2010 (UTC)
- Ouch! Sorry, my bad! I was using
importScript()
instead ofimportScriptURI()
:P But anyway, the suggestion I made is still valid -- even more so now that I got it working and found out that Vector places the tab in the dropdown zone (even though there's plenty of space since it's a special page). So, what do you think? --Waldir talk 20:37, 19 April 2010 (UTC)
- I'd like to second the request for the ability to put the (show/hide top) next to the (20 | 50 | 100 | 250 | 500) line.
(latest | earliest) View (newer 500 | older 500) (20 | 50 | 100 | 250 | 500) (show/hide top)
- ^^^Like that. Cheers, –xenotalk 15:34, 19 May 2010 (UTC)
- I also like this idea for making it more accessible than having to go up to the tab. While we're making feature requests, I'd suggest a function that shows/hides not top, mostly for other's contributions. This would be useful for cleaning up after vandals or inexperienced users by filtering to the user's contributions that definitely have not been reverted or fixed. —Ost (talk) 17:33, 19 May 2010 (UTC)
- I offer no suggested timeline before I might attempt the location move, but, for completeness, I note the powers that be deemed your other suggestion important enough to put into everyone's UI: "Only show edits that are latest revisions" is now a checkbox available at Special:Contributions (and has been there a while). Mark Hurd (talk) 05:55, 6 February 2012 (UTC)
- I also like this idea for making it more accessible than having to go up to the tab. While we're making feature requests, I'd suggest a function that shows/hides not top, mostly for other's contributions. This would be useful for cleaning up after vandals or inexperienced users by filtering to the user's contributions that definitely have not been reverted or fixed. —Ost (talk) 17:33, 19 May 2010 (UTC)
Errors on Special:Contributions
[edit]It seems that with the changes that went into effect today, the script is no longer working on the contributions page. See WP:VPT#Popups_seems_to_be_broken and WT:Tools/Navigation popups#Not working in Special:Contributions for details. Thanks, Ost (talk) 18:08, 13 May 2010 (UTC)
- Try importing popups - rather than using gadget - at the bottom of your monobook. –xenotalk 18:04, 18 May 2010 (UTC)
I'm not seeing any difference after putting this into my common.js
[edit]The documentation for this says "On any User's Contributions page, this script hides lines when that user has the top contribution for a page. Clicking again undoes the hiding". Clicking what? I expected to see a 'show/hide top' choice somewhere on the contributions page, based on the addOnloadHook statement, but no. I don't claim to be as clever as GoingBatty, but I can darn sure copy his common.js and do a reload. Is there something else I can look for that could be messing this up? Chris the speller yack 18:57, 7 February 2012 (UTC)
- If you're using Vector, the "'show/hide top' choice" is available in a dropdown on the right hand side next to "Search". It's subtle until you know to look for it. Mark Hurd (talk) 09:17, 8 February 2012 (UTC)
- Well, now I know where to look. Thanks, it's great! Chris the speller yack 15:20, 8 February 2012 (UTC)
Broken in Monobook on Chrome since 1.19 changes?
[edit]As reported and confirmed here this is currently broken in Monobook on Chrome, but not for some other skins or browsers. Mark Hurd (talk) 02:45, 2 March 2012 (UTC)
- Actually, for me at least, that problem was due to a change to User:Lupin/recent2.js I needed to reflect in my version.
Anyone else still having problems? Mark Hurd (talk) 03:09, 2 March 2012 (UTC)
- Other scripts refer to akeytt which has been removed. This fails before allowing the tabs to be added. Please contact the owners of the relevant scripts to get them updated. Mark Hurd (talk) 04:34, 2 March 2012 (UTC)
- The issue is documented here. Mark Hurd (talk) 04:41, 2 March 2012 (UTC)
Extra articles removed that should not be
[edit]See my bug report. I have not further investigated yet, but, in the meantime, other reports would be useful. Mark Hurd (talk) 01:11, 20 March 2012 (UTC)
- Done - Was due to WP:AORC using <strong> for large changes. Mark Hurd (talk) 02:07, 21 March 2012 (UTC)
Thank you
[edit]Just a note of thanks for this. It seems to work quite well, and is exactly what I was looking for. I'm using it on Commons. JesseW, the juggling janitor 01:49, 30 July 2013 (UTC)
Legacy JavaScript
[edit]Hello! This script has been detected as using deprecated parameters that need to be replaced with the updated version. Examples include addOnloadHook( ... )
needs to be replaced with $( ... )
or $( function() { ... } )
(depending on use); all wgGlobalVariables need to be properly gotten with mw.config.get( 'wgGlobalVariable' )
; and addPortletLink
needs to be called with mw.util.addPortletLink
. Please see MW:ResourceLoader/Legacy JavaScript for details. Thank you. — {{U|Technical 13}} (e • t • c)
21:44, 19 January 2015 (UTC)
- @Technical 13: Done I believe. Mark Hurd (talk) 13:51, 20 January 2015 (UTC)
- Mark, looks good to me. You might want to watch Phab:T35581 and Wikipedia:Village pump (technical)/Archive 133#I can't overstate how useful this feature would be to me, which it appears you have found. Since you have found that and may be offering this script to others, you may want to clean the script up a bit to meet the coding conventions. Happy codeing! —
{{U|Technical 13}} (e • t • c)
15:55, 20 January 2015 (UTC)
- I've at least attempted to get the whitespace right. Because of the "IDE" support I already tried switching from == to ===, but it broke something, so I reverted that while testing.
- Are there any other obvious (backward compatible) changes to make? Obviously the global variables as parameters are issues, but that would be a breaking change to fix. Note that I know I have 20-30 en.wp users and others directly importing this script on other wikis (as well as the it.wp clone and others who have cloned the code). Mark Hurd (talk) 01:22, 21 January 2015 (UTC)
- It looks like all the legacy javascript has gone, so I think we're done here. Thanks for updating it! — Mr. Stradivarius ♪ talk ♪ 10:21, 28 May 2015 (UTC)
- Mark, looks good to me. You might want to watch Phab:T35581 and Wikipedia:Village pump (technical)/Archive 133#I can't overstate how useful this feature would be to me, which it appears you have found. Since you have found that and may be offering this script to others, you may want to clean the script up a bit to meet the coding conventions. Happy codeing! —