User:MusikAnimal/rollbackTouch
Appearance
rollbackTouch.js | |
---|---|
Author(s) | MusikAnimal |
Updated | October 26, 2021 (3 years ago) |
Browsers | Any |
Skins | Any |
Source | User:MusikAnimal/rollbackTouch.js |
rollbackTouch is a user script that hides all rollback links on mobile devices. This is useful as it is easy to accidentally tap the rollback links on a touch screen.
See also confirmationRollback-mobile which will allow use of rollback on mobile but require confirmation each time. There's also confirmationRollback which will require confirmation for performing rollback on both desktop and mobile.
Setup
[edit]Add the following to your common.js:
importScript('User:MusikAnimal/rollbackTouch.js'); // Linkback: [[User:MusikAnimal/rollbackTouch.js]]
Or if you want to install the script for use on all Wikimedia Foundation wikis, you can copy the following code to meta:Special:MyPage/global.js:
// Linkback: [[User:MusikAnimal/rollbackTouch]] importScriptURI('http://en.wiki.x.io/w/index.php?action=raw&ctype=text/javascript&title=User:MusikAnimal/rollbackTouch.js');