Wikipedia talk:WikiProject User scripts/Scripts/WikiBreak Enforcer/script.js

Protocol-relative
Hello. This line: should probably be changed to: so that it works in HTTPS (secure protocol). Thanks, πr2 (t • c) 04:14, 9 December 2012 (UTC)
 * Yes check.svg Done -- DQ  (ʞlɐʇ)  05:25, 19 December 2012 (UTC)

Protected edit request on 4 March 2014
Since  has been deprecated, should we change it to   ? Thanks!

Chmarkine (talk) 05:26, 4 March 2014 (UTC)
 * Done, Chmarkine. Please confirm that I did what you wanted, and ping me if I made a mistake.  Nyttend (talk) 13:40, 4 March 2014 (UTC)

Pedantic protected edit request
A bit of pedantry, but I'd prefer to see the leading zero example changed to 09 rather than 07. octal 7 == decimal 7, so technically the 07 example isn't much of a problem, but 09 would be. Martijn Hoekstra (talk) 16:03, 19 January 2015 (UTC)
 * Yes check.svg Done -- Red rose64 (talk) 23:14, 19 January 2015 (UTC)

Created Sandbox Page
I created a sandbox page for this script. See WikiProject User scripts/Scripts/WikiBreak Enforcer/script/sandbox.

Ups and Downs 1234 16:08, 16 March 2017 (UTC)

Topicon
Please add the topicon to the page  Ups and Downs 1234  15:32, 23 March 2017 (UTC)
 * Which topicon ? could you make the description a bit more elaborate? —Th e DJ (talk • contribs)
 * The fully protected topicon.   Ups and Downs 1234  16:19, 23 March 2017 (UTC)
 * In addition,, would this and other pages be suitable for the JS content model? Jo-Jo Eumerus (talk, contributions) 15:43, 23 March 2017 (UTC)
 * I've changed the content model of the sandbox. I guess it could be done.. Give me some time to think it through definitively :) —Th e DJ (talk • contribs) 16:00, 23 March 2017 (UTC)

would you mind responding to this request please? &mdash; Martin (MSGJ · talk) 08:05, 28 March 2017 (UTC)

Making the enforcer a function?
It would be more useful if you made the script a function. Then all you would have to do is call the function to enforce the wikibreak. Here is the function: No need to edit, all that needs to happen is the script imported and the function called. Much cleaner, huh? All that needs to be typed: Is it possible that an administrator makes that happen? Ups and Downs 1234 (Talk to me) (My Contribs) 06:31, 16 April 2017 (UTC)

Protected edit request on 6 February 2020
Please replace with

This fixes the bug reported here. Basically, the thing is that MW changed (T25227 I think) such that navigating to that URL no longer causes a log out (rather it just leads to a confirmation page). Simulating a click on the log out button (present across all skins) uses javascript to force a log out. This change has been tested. SD0001 (talk) 11:53, 6 February 2020 (UTC)
 * @SD0001: For me, in Firefox with Monobook, the suggested change doesn't work, either: it simply provides a popup dialog confirming the logout, which can be canceled to allow normal editing (though it might reappear on every page load). We'll likely need to directly invoke the logout API call. Writ Keeper &#9863;&#9812; 16:09, 10 February 2020 (UTC)
 * I've applied a change to the script to call the API, rather than messing around with redirects or simulated clicks (although there is still a redirect to the login page once the logout process is complete). Writ Keeper &#9863;&#9812; 18:13, 10 February 2020 (UTC)

Protected edit request on 10 February 2020
Remove  (and ); it is not necessary when the content model is JavaScript. * Pppery * it has begun... 22:00, 10 February 2020 (UTC)
 * ✅ Writ Keeper &#9863;&#9812; 18:04, 11 February 2020 (UTC)