View Raw
Description
adds a "Raw" link to the "Edit" menu
Similar to View Source , adds ?action=raw/&action=raw to pages. Useful for source pages where you don't want to see the rest of the page.
Installation
See also: Help:JavaScript and CSS Cheatsheet
To install View Raw, simply add the appropriate row to your importArticles()
call in your global.js or your wiki's MediaWiki:Wikia.js - depending on whether you want to use this add-on as a personal script or a site script.
Add this to MediaWiki:ImportJS :
dev:View Raw.js
importArticles
:
Add this JavaScript on your wiki (or add the highlighted text to your existing import statement):
importArticles ({ type : 'script' , articles : [ 'u:dev:MediaWiki:View Raw.js' , ] });
Local:
Special:MyPage/common.js
Importing multiple scripts? This quick guide shows how to combine the imports. For personal use, note that personal JS must be enabled for your account. If the script requires configuration through MediaWiki:Common.js for sitewide use, don't forget to contact Fandom Staff to get it enabled on your wiki, if it isn't already enabled.