MediaWiki talk:Common.js/Archive 21: Difference between revisions
Content deleted Content added
m Archiving 2 discussion(s) from MediaWiki talk:Common.js) (bot |
m Archiving 2 discussion(s) from MediaWiki talk:Common.js) (bot |
||
Line 396:
::Thanks. Maybe my computer is at fault. [[User:DavidLeighEllis|DavidLeighEllis]] ([[User talk:DavidLeighEllis|talk]]) 01:24, 16 September 2015 (UTC)
:::{{replyto|DavidLeighEllis}} No, this was [[Wikipedia:Village pump (technical)/Archive 140#Broken User Scripts]], and was temporary. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 09:44, 16 September 2015 (UTC)
== Add toolbar for IPs ==
{{edit fully-protected|MediaWiki:Common.js|answered=yes}}
In the style of the Dutch Wikipedia ([[File:NL_login_bar.png]]), and as agreed upon [[Wikipedia:Village_pump_(proposals)/Archive_125#Not-logged-in_system|here]], would somebody implement something along the lines of what I mocked up [[User:Kharkiv07/loggedout.js|here]] (just a translation of the [[nl:MediaWiki:Common.js|code used on the Dutch Wikipedia]]). Thanks. <span style="font-family:Comic Sans MS; font-variant:caps;">[[User:Kharkiv07|<span style="color:black">Kharkiv07</span>]] ([[User talk:Kharkiv07|<span style="color: black">T</span>]])</span> 18:13, 13 September 2015 (UTC)
:{{Doing}} <code style="font-size:small;white-space:nowrap">-- [[[[User:Edokter|<span style="color:#006">User:Edokter</span>]]]] {{[[User talk:Edokter|<span style="color:#060">talk</span>]]}}</code> 19:21, 13 September 2015 (UTC)
::{{Done}}. Made some minor modifications, like naming. Does someone know if it is possible to load system messages from JavaScript? <code style="font-size:small;white-space:nowrap">-- [[[[User:Edokter|<span style="color:#006">User:Edokter</span>]]]] {{[[User talk:Edokter|<span style="color:#060">talk</span>]]}}</code> 19:45, 13 September 2015 (UTC)
::::Not possible right now. That is part of [[phab:T110633]]. You can list all translations in one JSON blob and use mw.messages.set(). —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 16:17, 15 September 2015 (UTC)
::::::I'm not interested in translation (anons can't set UI language anyway, right?), just the existing default messages for the popup hints, and perhaps "Talk" and "Contributions". [[mw:Manual:Messages API#Using messages in JavaScript]] suggests it is possible, but needs an API call to pre-load the specific messages. Just wondering if this is at all usefull and desired. <code style="font-size:small;white-space:nowrap">-- [[[[User:Edokter|<span style="color:#006">User:Edokter</span>]]]] {{[[User talk:Edokter|<span style="color:#060">talk</span>]]}}</code> 16:37, 15 September 2015 (UTC)
: I filed [[phabricator:T112724]] to track a server-side iteration to this. --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 04:51, 16 September 2015 (UTC)
::{{ping|MZMcBride}} See also [[Wikipedia:Village_pump_(technical)#Personal_tools_bar|this]] thread. The contribs/talk links are handy, they save a step or so in accessing the pages. We do need to get rid of the grey 'not logged in' text though. It's annoying, spans 40% of the edit window & redundant with the log-in link there anyway, esp. when we've the MediaWiki [[MediaWiki:Anoneditwarning|edit]]/preview messages as well. As for the person icon I'm not too bothered, but I guess it doesn't add much being there. –[[Special:Contributions/84.92.129.87|84.92.129.87]] ([[User talk:84.92.129.87|talk]]) 23:04, 17 September 2015 (UTC)
== Bad mirror protection ==
What about inserting a piece of code to protect the site against bad mirroring (e.g. like the one in [[:it:voy:MediaWiki:Common.js]])? --[[User:Andyrom75|<span style="color:#BB0000; font-family:Papyrus; font-size:12px">'''Andyrom75'''</span>]] ([[User talk:Andyrom75|talk]]) 07:00, 31 August 2015 (UTC)
:I renew my suggestion. --[[User:Andyrom75|<span style="color:#BB0000; font-family:Papyrus; font-size:12px">'''Andyrom75'''</span>]] ([[User talk:Andyrom75|talk]]) 06:59, 22 September 2015 (UTC)
::Thanks to the above piece of code, Wikivoyage is not anymore mirrored by *.wikivoyage.net.ru, but all its link are redirected to en.wikipedia.net.ru/wiki/Main_Page, so en.wikipedia.org should be protected by the same (or similar) code. I don't understand if the lack of comment is because the community is ok on profitable bad mirroring or because of the lack of knowledge to understand what I'm talking of :-)
::Please let me know, --[[User:Andyrom75|<span style="color:#BB0000; font-family:Papyrus; font-size:12px">'''Andyrom75'''</span>]] ([[User talk:Andyrom75|talk]]) 10:33, 27 September 2015 (UTC)
:::Basically... yes, we are OK with mirroring. But we cannot possibly and reliably ban bad mirrors this way. In fact, the Wikivoyage code has already been defeated and the mirror now redirects to ''another'' mirror, ''not'' the real Wikivoyage page as directed by this script. This is basically a whack-a-mole solution that needs constant monitoring. So no... I see no benifit for adding this code. <code style="font-size:small;white-space:nowrap">-- [[[[User:Edokter|<span style="color:#006">User:Edokter</span>]]]] {{[[User talk:Edokter|<span style="color:#060">talk</span>]]}}</code> 13:20, 27 September 2015 (UTC)
::::Although I personally don't like that people earn money leveraging for free on the WMF server, but I'm fine if the en:w community are OK with that. By the way, that site has not by-passed this patch, they have stop to access on Wikivoyage, redirecting each link to the English Wikipedia, that's why I've written here. However thank [[User:Edokter|you]] for the answer; I don't like to have pending conversation ;-) --[[User:Andyrom75|<span style="color:#BB0000; font-family:Papyrus; font-size:12px">'''Andyrom75'''</span>]] ([[User talk:Andyrom75|talk]]) 16:36, 28 September 2015 (UTC)
|