View source: Preferences
Views
Page
View source
You can view and copy the source of this page:
Preferences are automatically store in a cookie, only few values can be persistent. * <input value="1" id="watchdefault" name="wpOpwatchdefault" onchange="setCookie('watchdefault', this.checked);" type="checkbox" /> <span class="toggletext"><label for="watchdefault">Add pages I edit to my watchlist (otherwise remove)</label></span> * <input value="1" id="minordefault" name="wpOpminordefault" onchange="setCookie('minordefault', this.checked);" type="checkbox" /> <span class="toggletext"><label for="minordefault">Mark all edits minor by default</label></span> * <input value="1" id="securerewrite" onchange="setCookie('securerewrite', this.checked);" type="checkbox" /> <span class="toggletext"><label for="securerewrite">Rewrite forms to submit to the secure server</label></span> * <label for="wpSummary">Custom edit summary in Checklinks (default blank):</label> <input type="text" onchange="setCookie('EditMsg', this.value);" id="wpSummary" maxlength="200" size="60" /> <p><button onclick="resetCookies()">Restore all default settings</button></p> <div style="font-size:x-small" id="cookieDisplay"></div> <script language="JavaScript" type="text/javascript">/*<![CDATA[*/ function resetCookies() { function delCookie(name){setCookie(name, '', 'Jan 1, 1970 00:00:00 GMT')} delCookie('watchdefault') delCookie('minordefault') delCookie('EditMsg') delCookie('wpEditToken') delCookie('securerewrite') location.reload() } function loadValues() { document.getElementById("wpSummary").value = getCookie('EditMsg', "") document.getElementById("minordefault").checked = getCookie('minordefault', 'false')=='true' document.getElementById("watchdefault").checked = getCookie('watchdefault', 'true')=='true' document.getElementById("securerewrite").checked = getCookie('securerewrite', 'false')=='true' } loadValues() interval = setInterval("document.getElementById('cookieDisplay').innerHTML = 'Cookie for "+window.location.hostname+":<br/>'+document.coo"+"kie;", 2000) /*]]>*/</script> === Edit token (experimental) === With this process you will be able to obtain and save your edit token in a cookie. This enables you to directly save from the tools, skipping preview or show changes screen. An edit token is an anti-spoofing feature built into MediaWiki, it is designed to prevent websites that you visit from performing actions as you. [[mw:Manual:Edit_token|Read more]]. <button onclick="document.getElementById('hidden').style.display=''; this.parentNode.removeChild(this);">I understand the risks</button> <div id='hidden' style="display:none;"> <!-- This will fill in your edit token in the page submit form. So when you click "Save page", you will no longer get "<span style="color:red;">Sorry! We could not process your edit due to a loss of session data. Please try again. If it still does not work, try logging out and logging back in. </span>" message as long as the token is valid. You should be aware that this is an anti-spoofing feature designed to prevent websites that you visit from performing actions as you. [[mw:Manual:Edit_token|read more]] --> {| style="margin:auto; width:80%;" | colspan="2"| <input id="domain" value="en.wikipedia.org" /><button onclick="document.getElementById('apiframe').src='http://'+document.getElementById('domain').value+'/w/api.php?action=query&prop=info&intoken=edit&titles=Copy%20the%20lines%20below&format=yamlfm';return false;">Reveal edit token (1)</button> |- ! Copy below (2) ! Paste here (3) |- | style="border:1px solid black;" | <iframe id="apiframe" style="border:none; height:22em; width:98%; "></iframe> | style="border:1px solid black;" | <textarea cols="40" rows="20" onchange="getEdittoken(this.value)" style="border:none; height:22em; width:98%; "></textarea> |} * <label for="wpEditToken">Edit token</label> <input type="text" onchange="setEdittoken(this.value)" id="wpEditToken" size="40" /> <span id="edittokentype"></span> </div> <script type="text/javascript">/*<![CDATA[*/ document.getElementById("wpEditToken").value = getCookie('wpEditToken', EditMsg) /* Edit token management */ function getEdittoken(s) { function tokentype(token) { if(/^[0-9a-f]{32}\+\\$/.test(token)) return "Registered user" else if(token=="+\\") return "Anonymous user" else return "Invalid edit token" } edittoken = s.match(/edittoken:\s*([^"\n]*)/)[1]; document.getElementById('wpEditToken').value = edittoken; setEdittoken(edittoken) document.getElementById('edittokentype').innerHTML = '('+tokentype(edittoken).toLowerCase()+')' +'<br/> <b>SAVED</b>! You should be now able to save pages directly. It expires in a 6 hours'; } function setEdittoken(edittoken) { expires = new Date(); expires.setDate(expires.getHours()+6); setCookie('wpEditToken', edittoken, expires.toUTCString(), '/~dispenser/'); } /*]]>*/</script>
Interaction
Main page
Recent changes
Help
Tools
Altviewer
Checklinks
Dablinks
Dab solver
Peer reviewer
Reflinks
Frameworks
File viewer
Geodata
Pywikipedia
Interaction
Preferences