Fandom Developers Wiki
Advertisement

This is the talk page for discussing improvements to the MarkBlocked page.

Issues[]

This script doesn’t strike out the username when viewing a specific revision (like this).

MarkBlocked

It also, for some reason, strikes out the “Profile” and section edit links on the user’s user page.[Template fetch failed for https://community.fandom.com/wiki/Template:papi?action=raw: HTTP 404] 06:26, September 17, 2016 (UTC)

> doesn’t strike out the username when viewing a specific revision
This was due to the script being disabled for the main namespace. I'm not sure why this was originally done (the original source at the Russian Wikipedia did not run in the main namespace either), but I've now removed that restriction. Hopefully it won't cause issues!
> strikes out the “Profile” and section edit links on the user’s user page
Striking out the "Profile" tab is deliberate - this is mainly useful in the MonoBook skin where user tags like "Blocked" are not shown, unlike the Oasis skin. Section edit links shouldn't have been struck out; this is now fixed.
Thanks for noticing these bugs! - OneTwoThreeFall (talk) 10:57, September 17, 2016 (UTC)
No problem. Thanks for fixing them![Template fetch failed for https://community.fandom.com/wiki/Template:papi?action=raw: HTTP 404] 15:20, September 18, 2016 (UTC)

UCP compatibility[]

I don't believe this works on UCP-migrated wikis. If it does, what should I do it order for it to work? I have had the script on my global JavaScript for a while and I have noticed it has not been functioning at all on my UCP wikis. 0Michael105 (talk · CC talk · contributions) 02:56, October 10, 2020 (UTC)

Hmm, works for me on Fandom wikis running MediaWiki 1.33. I'd be surprised if it didn't as it was ported over from Wikipedia, who have used modern MediaWiki versions for much longer than Fandom. Is there a specific page where it doesn't seem to be working for you? - OneTwoThreeFall talk 04:05, October 10, 2020 (UTC)
The script seems to not be functioning at all for me on any page on this wiki. Some examples are this edit revision, this edit revision, and the new user log. 0Michael105 (talk · CC talk · contributions) 06:04, October 10, 2020 (UTC)
The script didn't run on the two edit revisions as it was written to not run on article pages, and this included viewing diffs. This has always been the case, even on legacy Fandom wikis, but it is a bit confusing so I've removed this restriction now.
Regarding the log, it seems to be working for me there, marking "User:Ducksquadannieemmarea" near the end of the list as indefinitely blocked. Is that not showing for you? Perhaps another script is interfering somehow? - OneTwoThreeFall talk 13:54, October 10, 2020 (UTC)
Late, but I will follow up (correctly) anyway: it is in fact working for me now. You were correct, one of my other addons was interfering. 0Michael105 (talk · CC talk · contributions) 22:09, November 4, 2020 (UTC)

I'm getting "Uncaught TypeError: null has no properties" over at w:c:pixelgun so I'm disabling this script there. SlyCooperFan1 (talk) 19:13, November 1, 2020 (UTC)

Advertisement