User:Guarapiranga/accessKeysCheatSheet.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | This user script seems to have a documentation page at User:Guarapiranga/accessKeysCheatSheet. |
$('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();
});