<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=MyWiki%3AWikiProject_User_scripts%2FScripts%2FWikiBreak_Enforcer</id>
	<title>MyWiki:WikiProject User scripts/Scripts/WikiBreak Enforcer - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=MyWiki%3AWikiProject_User_scripts%2FScripts%2FWikiBreak_Enforcer"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=MyWiki:WikiProject_User_scripts/Scripts/WikiBreak_Enforcer&amp;action=history"/>
	<updated>2026-04-22T14:47:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=MyWiki:WikiProject_User_scripts/Scripts/WikiBreak_Enforcer&amp;diff=14104178&amp;oldid=prev</id>
		<title>imported&gt;Pppery: Per request on talk</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=MyWiki:WikiProject_User_scripts/Scripts/WikiBreak_Enforcer&amp;diff=14104178&amp;oldid=prev"/>
		<updated>2025-03-30T04:27:07Z</updated>

		<summary type="html">&lt;p&gt;Per request on talk&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{pp-protected|reason=Vulnerable tech thingy.|small=yes}}&lt;br /&gt;
{{Shortcut|WP:BREAKENF}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;WikiBreak Enforcer&amp;#039;&amp;#039;&amp;#039; is a [[Scripting language|script]] that prevents a user from [[Help:Logging_in|logging in]] before a certain date, to help enforce a [[Wikipedia:Wikibreak|wikibreak]]. If the user logs in, they are automatically logged back out, but can still view or edit from the [[Wikipedia:Mobile|mobile interface]], or as a [[Wikipedia:Anonymous user|logged out user]] through their [[IP address]].&lt;br /&gt;
&lt;br /&gt;
== How to Use ==&lt;br /&gt;
{{warning|&amp;#039;&amp;#039;&amp;#039;Warning!&amp;#039;&amp;#039;&amp;#039; Be careful not to make a mistake, or you may not be able to get back in at the end of your break. In cases of errors, an [[WP:INTADMIN|interface admin]] can remove the script from your user JavaScript page for you.}}&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy the code under [[#Script|Script]] below between &amp;lt;code&amp;gt;/*** BEGIN WIKIBREAK ENFORCER ***/&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;/*** END WIKIBREAK ENFORCER ***/&amp;lt;/code&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Paste the code on your [[Special:Mypage/common.js|user JavaScript page]], and then change the lines starting with &amp;lt;code&amp;gt;var date&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;var time&amp;lt;/code&amp;gt; to reflect the time you want your break to end (local time). The &amp;lt;code&amp;gt;var date&amp;lt;/code&amp;gt; line defines the date your break will end, while the &amp;lt;code&amp;gt;var time&amp;lt;/code&amp;gt; defines the time on that day that your break will end. For example, for a break ending at 8:22 pm on 6 February 2019, one would enter the settings:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=javascript&amp;gt;&lt;br /&gt;
	var date = { year: 2019, month: 2, day: 6 };&lt;br /&gt;
	var time = { hours: 20, minutes: 22, seconds: 0 };&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Save the edited user JavaScript page.&lt;br /&gt;
:{{takenote}} Previewing your edit will log you out, but will not implement the enforcer.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[Wikipedia:Purge|Purge]] the page. If successful, you will be logged out.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;That&amp;#039;s it: enjoy your wikibreak! 🙂&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Script==&lt;br /&gt;
&amp;lt;!-- The script is hosted in a protected subpage --&amp;gt;&lt;br /&gt;
{{#tag:syntaxhighlight|{{Wikipedia:WikiProject User scripts/Scripts/WikiBreak Enforcer/script.js}}|lang=javascript}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[:Category:Wikipedia administrators willing to consider placing self-requested blocks]]&lt;br /&gt;
*[[Wikipedia:Block on demand]]&lt;br /&gt;
*[[User:Anomie/lockout.js|Script to lock out the account during certain times of the day.]]&lt;br /&gt;
*[[User:DannyS712/wikibreak later|A script to schedule a WikiBreak to start later]]&lt;br /&gt;
{{Wikipedia accounts|collapsed}}&lt;/div&gt;</summary>
		<author><name>imported&gt;Pppery</name></author>
	</entry>
</feed>