How to Use Warning! 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 admin can remove the script from your user JavaScript page for you. Copy the code under Script below between /*** BEGIN WIKIBREAK ENFORCER ***/ and /*** END WIKIBREAK ENFORCER ***/. Paste the code on your user JavaScript page, and then change the lines starting with var date and var time to reflect the time you want your break to end (local time). The var date line defines the date your break will end, while the var time defines the time on that day that your break will end. For example, for a break ending at 8:22 pm on the 6th of February 2008, one would enter the settings: var date = { year: 2008, month: 2, day: 6 }; var time = { hours: 20, minutes: 22, seconds: 0 }; Save the edited user JavaScript page.  Note: Previewing your edit will log you out, but will not implement the enforcer. Purge the page. If successful, you will be logged out. That's it: enjoy your wikibreak! 🙂


Script /*** BEGIN WIKIBREAK ENFORCER ***/ $(document).ready(function() { /*** Start editing here ***/ // When you want to end your break? // no leading zeroes. (example: 9 - correct, 09 - incorrect) var date = { year: 2008, month: 2, day: 6}; var time = { hours: 20, minutes: 22, seconds: 0 }; /*** Stop editing here ***/ var currentDate = new Date(); var enforcedBreakEnd = new Date( date.year,date.month-1,date.day,time.hours,time.minutes,time.seconds); if (currentDate <= enforcedBreakEnd) { alert("Enforced wikibreak until "+enforcedBreakEnd.toLocaleString() + "\n(now is "+currentDate.toLocaleString()+")\n\nBye!"); location = "//"+location.host+"/w/index.php?title=" + "Special:Userlogout&returnto=Main_Page"; } }); /*** END WIKIBREAK ENFORCER ***/


See also Category:Wikipedia administrators willing to consider placing self-requested blocks Wikipedia:Block on demand v t e Wikipedia accounts and governance Unregistered (IP) users Why create an account? Create an account Request an account IPs are human too IP addresses are not people IP hopper Registered users New account Logging in Reset passwords Username policy Changing username Usernames for administrator attention Unified login or SUL Alternate account Account security Password strength requirements User account security Personal security practices Two-factor authentication Simple 2FA 2FA for AWB Committed identity On privacy, confidentiality and discretion Compromised accounts Blocks, global locks, bans, sanctions Blocking policy FAQ Admins guide Tools Autoblock Appealing a block Guide to appealing blocks UTRS Unblock Ticket Request System Blocking IP addresses Range blocks IPv6 Open proxies Global locks Banning policy ArbCom appeals Sanctions Personal sanctions General sanctions Discretionary sanctions and Log Essay Long-term abuse Standard offer Related to accounts Sock puppetry Single-purpose account Sleeper account Vandalism-only account Wikibreak Enforcer Retiring Courtesy vanishing Clean start Quiet return User groups and global user groups Requests for permissions Admin instructions Admin guide Account creator PERM Autopatrolled PERM AutoWikiBrowser PERM Confirmed PERM Extended confirmed PERM Edit filter helper File mover PERM Mass message sender PERM New page reviewer PERM Page mover PERM Pending changes reviewer PERM Rollback PERM Template editor PERM IP-block-exempt Requests Courses access Requests Bot accounts Requests Global rights policy OTRS Volunteer Response Team Advanced user groups Administrators RfA Bureaucrats RfB Edit filter manager Requests CheckUser and Oversight Requests Founder Committees and related Arbitration Committee Mediation Committee Bot approvals group Functionaries Clerks Governance Administration FAQ Formal organization Editorial oversight and control Quality control Wikimedia Foundation Board Founder's seat Meta-Wiki Leadership opportunities WikiProjects Elections Policies and guidelines Unbundling administrators' powers Petitions Noticeboards Consensus Dispute resolution Reforms Retrieved from "https://en.wikipedia.org/w/index.php?title=Wikipedia:WikiProject_User_scripts/Scripts/WikiBreak_Enforcer&oldid=804419168" Hidden categories: Wikipedia semi-protected project pages


Navigation menu Personal tools Not logged inTalkContributionsCreate accountLog in Namespaces Project pageTalk Variants Views ReadView sourceView history More Search Navigation Main pageContentsFeatured contentCurrent eventsRandom articleDonate to WikipediaWikipedia store Interaction HelpAbout WikipediaCommunity portalRecent changesContact page Tools What links hereRelated changesUpload fileSpecial pagesPermanent linkPage informationWikidata item Print/export Create a bookDownload as PDFPrintable version Languages العربية한국어Bahasa IndonesiaItalianoPortuguêsไทยاردو Edit links This page was last edited on 8 October 2017, at 21:58. Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization. Privacy policy About Wikipedia Disclaimers Contact Wikipedia Developers Cookie statement Mobile view (window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgPageParseReport":{"limitreport":{"cputime":"0.108","walltime":"0.532","ppvisitednodes":{"value":239,"limit":1000000},"ppgeneratednodes":{"value":0,"limit":1500000},"postexpandincludesize":{"value":35045,"limit":2097152},"templateargumentsize":{"value":245,"limit":2097152},"expansiondepth":{"value":6,"limit":40},"expensivefunctioncount":{"value":4,"limit":500},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 486.146 1 -total"," 36.97% 179.717 1 Wikipedia:WikiProject_User_scripts/Scripts/WikiBreak_Enforcer/script"," 9.35% 45.470 1 Template:Pp-protected"," 4.88% 23.701 1 Template:Warning"," 4.45% 21.612 1 Template:Mbox"," 4.28% 20.825 1 Template:Wikipedia_accounts"," 3.37% 16.398 1 Template:Navbox"," 2.37% 11.502 1 Template:Shortcut"," 0.60% 2.918 1 Template:Takenote"]},"scribunto":{"limitreport-timeusage":{"value":"0.044","limit":"10.000"},"limitreport-memusage":{"value":1563250,"limit":52428800}},"cachereport":{"origin":"mw1258","timestamp":"20180127040949","ttl":1900800,"transientcontent":false}}});});(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgBackendResponseTime":76,"wgHostname":"mw1333"});});


Wikipedia:WikiProject_User_scripts/Scripts/WikiBreak_Enforcer - Photos and All Basic Informations

Wikipedia:WikiProject_User_scripts/Scripts/WikiBreak_Enforcer More Links

This Page Is Semi-protected.Wikipedia:WikiProject User ScriptsWikipedia:WikiProject User Scripts/ScriptsWikipedia:ShortcutScripting LanguageWikipedia:LOGINWikipedia:WikibreakWikipedia:LOGOUTWikipedia:MobileWikipedia:Anonymous UserIP AddressSpecial:MyPage/common.jsWikipedia:PurgeCategory:Wikipedia Administrators Willing To Consider Placing Self-requested BlocksWikipedia:Block On DemandTemplate:Wikipedia AccountsTemplate Talk:Wikipedia AccountsUser (computing)GovernanceWikipedia:User Access LevelsWikipedia:Why Create An Account?Special:CreateAccountWikipedia:Request An AccountWikipedia:IPs Are Human TooWikipedia:IP Addresses Are Not PeopleWikipedia:IP HopperWikipedia:New AccountHelp:Logging InHelp:Reset PasswordWikipedia:Username PolicyWikipedia:Changing UsernameWikipedia:Usernames For Administrator AttentionWikipedia:Unified LoginWikipedia:Sock PuppetryWikipedia:Password Strength RequirementsWikipedia:User Account SecurityWikipedia:Personal Security PracticesHelp:Two-factor AuthenticationWikipedia:Simple 2FAWikipedia:Using AWB With 2FATemplate:Committed IdentityWikipedia:On Privacy, Confidentiality And DiscretionWikipedia:Compromised AccountsWikipedia:Blocking PolicyWikipedia:FAQ/BlocksWikipedia:Administrators' Guide/BlockingWikipedia:Administrators' Guide/Blocking/ToolsWikipedia:AutoblockWikipedia:Appealing A BlockWikipedia:Guide To Appealing BlocksWikipedia:Unblock Ticket Request SystemWikipedia:Blocking IP AddressesWikipedia:Open ProxiesWikipedia:Banning PolicyWikipedia:Arbitration Committee/Ban AppealsWikipedia:SanctionsWikipedia:Editing RestrictionsWikipedia:General SanctionsWikipedia:Arbitration Committee/Discretionary SanctionsWikipedia:Arbitration Enforcement LogWikipedia:Sanctions (essay)Wikipedia:Long-term AbuseWikipedia:Standard OfferWikipedia:Sock PuppetryWikipedia:Single-purpose AccountWikipedia:Sleeper AccountWikipedia:Vandalism-only AccountWikipedia:WikibreakWikipedia:RetiringWikipedia:Courtesy VanishingWikipedia:Clean StartUser:Worm That Turned/Quiet ReturnWikipedia:User Access LevelsWikipedia:Requests For PermissionsWikipedia:Requests For Permissions/Administrator InstructionsWikipedia:Administrators' Guide/Granting And Revoking User RightsWikipedia:Account CreatorWikipedia:Requests For Permissions/Account CreatorWikipedia:AutopatrolledWikipedia:Requests For Permissions/AutopatrolledWikipedia:AutoWikiBrowserWikipedia:Requests For Permissions/AutoWikiBrowserWikipedia:User Access LevelsWikipedia:Requests For Permissions/ConfirmedWikipedia:User Access LevelsWikipedia:Requests For Permissions/Extended ConfirmedWikipedia:Edit Filter HelperWikipedia:File MoverWikipedia:Requests For Permissions/File MoverWikipedia:Mass Message SendersWikipedia:Requests For Permissions/Mass Message SenderWikipedia:New Pages Patrol/ReviewersWikipedia:Requests For Permissions/New Page ReviewerWikipedia:Page MoverWikipedia:Requests For Permissions/Page MoverWikipedia:Reviewing Pending ChangesWikipedia:Requests For Permissions/Pending Changes ReviewerWikipedia:RollbackWikipedia:Requests For Permissions/RollbackWikipedia:Template EditorWikipedia:Requests For Permissions/Template EditorWikipedia:IP Block ExemptionWikipedia:Unblock Ticket Request SystemWikipedia:User Access LevelsWikipedia:Education NoticeboardWikipedia:Bot PolicyWikipedia:Bots/Requests For ApprovalWikipedia:Global Rights PolicyWikipedia:Volunteer Response TeamWikipedia:AdministratorsWikipedia:Requests For AdminshipWikipedia:BureaucratsWikipedia:Requests For AdminshipWikipedia:Edit FilterWikipedia:Edit Filter NoticeboardWikipedia:CheckUserWikipedia:OversightWikipedia:Arbitration Committee/CheckUser And OversightWikipedia:Role Of Jimmy WalesWikipedia:CommitteesWikipedia:Arbitration CommitteeWikipedia:Mediation CommitteeWikipedia:Bot Approvals GroupWikipedia:FunctionariesWikipedia:Sockpuppet Investigations/SPI/ClerksWikipedia:AdministrationWikipedia:AdministrationWikipedia:FAQ/AdministrationWikipedia:Formal OrganizationWikipedia:Editorial Oversight And ControlWikipedia:Quality ControlWikipedia:Wikimedia FoundationWikipedia:Board Of TrusteesWikipedia:Founder's SeatWikipedia:MetaWikipedia:Leadership OpportunitiesWikipedia:WikiProjectWikipedia:ElectionsWikipedia:Policies And GuidelinesWikipedia:Unbundling Administrators' PowersWikipedia:List Of PetitionsWikipedia:NoticeboardsWikipedia:ConsensusWikipedia:Dispute ResolutionWikipedia:ReformsCategory:Wikipedia Semi-protected Project PagesDiscussion About Edits From This IP Address [n]A List Of Edits Made From This IP Address [y]View The Project Page [c]Discussion About The Content Page [t]This Page Is Protected. You Can View Its Source [e]Visit The Main Page [z]Guides To Browsing WikipediaFeatured Content – The Best Of WikipediaFind Background Information On Current EventsLoad A Random Article [x]Guidance On How To Use And Edit WikipediaFind Out About WikipediaAbout The Project, What You Can Do, Where To Find ThingsA List Of Recent Changes In The Wiki [r]List Of All English Wikipedia Pages Containing Links To This Page [j]Recent Changes In Pages Linked From This Page [k]Upload Files [u]A List Of All Special Pages [q]Wikipedia:AboutWikipedia:General Disclaimer



view link view link view link view link view link