User:MusikAnimal/rollbackTouch

From wikishia
User script
rollbackTouch.js
AuthorMusikAnimal
UpdatedJune 1, 2016
    (Lua error in package.lua at line 80: module 'Module:Date' not found.)
Browser supportAny
Skin supportAny
SourceUser: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

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('https://en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:MusikAnimal/rollbackTouch.js');