Jump to content

User:Guarapiranga/accessKeysCheatSheet.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Guarapiranga (talk | contribs) at 06:15, 3 June 2022 (User:Guarapiranga/accessKeysCheatSheet.js). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
$('body').keydown(function(e) {
	if (!(e.altKey && e.shiftKey && e.key == '/')) return;
	if (!$('#akcs').length) {
		$('#bodyContent').after(
			$('<div>').attr('id', 'akcs').css('display', 'none').html(
<div>
<table class="multicol" role="presentation" style="border-collapse: collapse; padding: 0; border: 0; background:transparent; width:auto;">

<tbody><tr>
<td style="text-align: left; vertical-align: top;">
<table class="wikitable" style="width: 100%;">
<caption>Site navigation
</caption>
<tbody><tr>
<th scope="row" style="width: 2em;">f
</th>
<td>Move cursor to search box
</td></tr>
<tr>
<th scope="row">q
</th>
<td><a href="/wiki/Special:SpecialPages" title="Special:SpecialPages">Special pages</a>
</td></tr>
<tr>
<th scope="row">r
</th>
<td><a href="/wiki/Special:RecentChanges" title="Special:RecentChanges">Recent changes</a>
</td></tr>
<tr>
<th scope="row">u
</th>
<td><a href="/wiki/Special:Upload" title="Special:Upload">Upload file</a> (only available to logged-in users)
</td></tr>
<tr>
<th scope="row">x
</th>
<td><a href="/wiki/Special:Random" title="Special:Random">Random article</a>
</td></tr>
<tr>
<th scope="row">z
</th>
<td><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
</td></tr></tbody></table>
<table class="wikitable" style="width: 100%;">
<caption>Personal tools
</caption>
<tbody><tr>
<th scope="row" style="width: 2em;">.
</th>
<td><a href="/wiki/Special:MyPage" title="Special:MyPage">My user page</a>
</td></tr>
<tr>
<th scope="row">l
</th>
<td><a href="/wiki/Special:Watchlist" title="Special:Watchlist">My watchlist</a> (only available to logged-in users)
</td></tr>
<tr>
<th scope="row">n
</th>
<td><a href="/wiki/Special:MyTalk" title="Special:MyTalk">My talk</a>
</td></tr>
<tr>
<th scope="row">o
</th>
<td><a href="/wiki/Special:UserLogin" title="Special:UserLogin">Log in</a> (only available when logged-out)
</td></tr>
<tr>
<th scope="row">y
</th>
<td><a href="/wiki/Special:MyContributions" title="Special:MyContributions">My contributions</a>
</td></tr></tbody></table>
</td>
<td style="text-align: left; vertical-align: top; padding-left: 2em;">
<table class="wikitable" style="width: 100%;">
<caption>Current page tools
</caption>
<tbody><tr>
<th scope="row" style="width: 2em;">e
</th>
<td>Edit this page / view source (if you are <a href="/wiki/Wikipedia:BLOCK" class="mw-redirect" title="Wikipedia:BLOCK">blocked</a> or the page is protected from editing)
</td></tr>
<tr>
<th scope="row">v
</th>
<td>Edit with <a href="/wiki/VisualEditor" title="VisualEditor">VisualEditor</a> (if available, namespace must be: <a href="/wiki/Wikipedia:Article" class="mw-redirect" title="Wikipedia:Article">(Main)</a>, <a href="/wiki/Wikipedia:File" class="mw-redirect" title="Wikipedia:File">File</a>, <a href="/wiki/Wikipedia:User" class="mw-redirect" title="Wikipedia:User">User</a>, <a href="/wiki/Wikipedia:Category" class="mw-redirect" title="Wikipedia:Category">Category</a>, or <a href="/wiki/Wikipedia:Help" class="mw-redirect" title="Wikipedia:Help">Help</a>)
</td></tr>
<tr>
<th scope="row">g
</th>
<td>Open associated <a href="https://www.wikidata.org/wiki/" class="extiw" title="wikidata:">Wikidata</a> item
</td></tr>
<tr>
<th scope="row">h
</th>
<td><a href="/wiki/Help:View_history" class="mw-redirect" title="Help:View history">View history</a>
</td></tr>
<tr>
<th scope="row">j
</th>
<td><a href="/wiki/Special:WhatLinksHere" title="Special:WhatLinksHere">What links here</a>
</td></tr>
<tr>
<th scope="row">k
</th>
<td>Related changes
</td></tr>
<tr>
<th scope="row">m
</th>
<td>Move page (only available to logged-in users)
</td></tr>
<tr>
<th scope="row">p
</th>
<td>Printable version
</td></tr>
<tr>
<th scope="row">w
</th>
<td>Watch / unwatch page (only available to logged-in users)
</td></tr>
<tr>
<th scope="row">t
</th>
<td>Switch to talk page
</td></tr>
<tr>
<th scope="row">*
</th>
<td>Purge the page''s cache (only available to logged-in users with the "Purge option" gadget)
</td></tr></tbody></table>
<table class="wikitable" style="width: 100%;">
<caption>Talk pages
</caption>
<tbody><tr>
<th scope="row" style="width: 2em;">+
</th>
<td>Start a new discussion
</td></tr>
<tr>
<th scope="row">c
</th>
<td>Switch to content page
</td></tr></tbody></table>
</td>
<td style="text-align: left; vertical-align: top; padding-left: 2em;">
<table class="wikitable" style="width: 100%;">
<caption>Editing page
</caption>
<tbody><tr>
<th scope="row" style="width: 2em;">,
</th>
<td>Move cursor to edit box
</td></tr>
<tr>
<th scope="row">b
</th>
<td>Move cursor to edit summary
</td></tr>
<tr>
<th scope="row">i
</th>
<td>Flag edit as minor (only available to logged-in users, not IP users)
</td></tr>
<tr>
<th scope="row">p
</th>
<td>Show preview
</td></tr>
<tr>
<th scope="row">v
</th>
<td>Show changes
</td></tr>
<tr>
<th scope="row">s
</th>
<td>Publish page
</td></tr>
<tr>
<th scope="row">w
</th>
<td>Toggle Watch this page
</td></tr></tbody></table>
<table class="wikitable" style="width: 100%;">
<caption>Admin only
</caption>
<tbody><tr>
<th scope="row" style="width: 2em;">d
</th>
<td>Delete / undelete current page
</td></tr>
<tr>
<th scope="row">=
</th>
<td>Protect / unprotect current page
</td></tr></tbody></table>
<p> 
</p>
</td></tr></tbody></table></div>
			)
		);
	}
	$('#bodyContent, #akcs').toggle();
});