SWViewer

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
SWViewer welcome screen

Launch online*

*Tested in Chrome, Firefox, Safari


#swviewerconnect | discord


Feedback
Post and discuss feedback for SWViwer's at Talk:SWViewer.


Bugs & features
Check out the repository[1] and issue tracker.

SWViewer enables you to monitor the recent changes of a wiki in real-time. In doing so it provides a lot of features; such as rollback, Auto-Diff, edit-source and much more. In order to use the application, local or global rollback permission is needed.

User who have rollback permission on any Wikimedia project and 1000 edits globally (except test wikis) without any active block can also monitor global queue.

Features[edit]

Mobile friendly[edit]

SWViewer welcome screen on mobile

SWViewer is designed focusing that it can be easily accessed using mobile devices too.

Also if you are using Android and Chrome browser, then you can switch app to full-screen mode (without the address bar). Open SWViewer in Chrome and go to browser menu => Add to Home screen. It will create a shortcut for SWViewer on mobile's home screen.

Themes[edit]

We have user friendly theme in order to work in different conditions.

Customizable templates/ES[edit]

With the help of /config.json page you can set different edit summaries and various deletion templates according to local wiki needs.

Auto refresh[edit]

Silently in the background, using JavaScript, it loads a new list. When that's good and ready, it's pushed edits viewer on screen.

Rewind edits[edit]

With the help of rewind button (SWViewer back button.png) you can also view previous edits (only 6) in case you missed them.

Quick Rollback[edit]

The Quick Rollback button (SWViewer rollback button.png) is similar to rollback on wiki, with the help of this button edits can be reverted right from the application.

Rollback with summary[edit]

Using this button (SWViewer rollback with explanation.png), you can add edit summary to the revert, somewhat like undo but in actual it's done using rollback too. There's also a warn button while using this button, which can be used to warn user only if it's defined on /config.json page.

Edit source[edit]

With this feature (button: SWViewer edit page.png) source of the page is displayed in a edit window right in application with an option to provide summary to the changes and also to tag for deletion.

Open in browser[edit]

In case for investigating edits further, this button (SWViewer see diff.png) will open the diff on-wiki in a separate tab.

Hotkeys[edit]

  • Space – Show next diff
  • esc – Close pop-ups
  • R — Rollback
  • Y — Rollback with custom edit summary
  • [ or P – Browse back
  • E – Edit page
  • O – Open page in new tab
  • A – Local contributions
  • / — Global contributions
  • S — Settings
  • U — Logout
  • T — The Talk

User script[edit]

SWViewer.js is a user script that basically adds a link under "Tools" section on the sidebar to access the SWViewer tool easily from any random page.

Installation

To use the script, you just have to copy paste below code in your vector.js or common.js (or into your global.js if you want to use it globally):

/**
 * SWViewer
 * See [https://meta.wikimedia.org/wiki/SWViewer]
 * Authored by Tulsi Bhagat [https://meta.wikimedia.org/wiki/User:Tulsi_Bhagat]
 * Shortcut key [alt-shift-v]
 */
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Tulsi_Bhagat/swviewer.js&action=raw&ctype=text/javascript');

Afterwards you may have to clear your cache, and click [alt-shift-v] for shortcut access:

How to clear the cache

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.

Feedback[edit]

  • If you experience any issues or have suggestions for how something could be better, let us know at talk page.
  • You can also join our IRC channel #swviewerconnect.
  • Repo isn't public due to security reasons, but we can add any trusted user by request. Just drop a message onwiki, IRC or discord.