Jump to content

User:MusikAnimal/rollbackTouch

From Wikipedia, the free encyclopedia
User script
rollbackTouch.js
Author(s)MusikAnimal
UpdatedOctober 26, 2021
    (2 years ago)
BrowsersAny
SkinsAny
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

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