Fandom Developers Wiki
mNo edit summary
m (Reverted edits by Kuthur92nito (talk) to last version by BaRaN6161TURK)
(One intermediate revision by one other user not shown)
Line 2: Line 2:
   
 
{{Infobox JavaScript
 
{{Infobox JavaScript
| Description = adds a " link to the "Edit" menu
+
| Description = adds a "View source" link to the "Edit" menu
| Image file =
+
| Image file = View Source.png
 
| Status = stable
 
| Status = stable
 
| Scope = ps
 
| Scope = ps
Line 9: Line 9:
 
| Updated = {{Updated|MediaWiki:View Source/code.js}}
 
| Updated = {{Updated|MediaWiki:View Source/code.js}}
 
| Code =
 
| Code =
  +
* [[MediaWiki:View Source/code.js|code.js]]
* [
 
  +
* [[MediaWiki:View Source.css|code.css]]
*
 
 
| Languages = auto
 
| Languages = auto
 
| Examples = On page
 
| Examples = On page
 
| Type = site
 
| Type = site
}}''' adds a "View source" link to the "Edit" dropdown menu that replaces the page's content with the raw code. Pick "View article" from the same menu to return the page to normal. You can view the demo for this script on this page.
+
}}'''View Source''' adds a "View source" link to the "Edit" dropdown menu that replaces the page's content with the raw code. Pick "View article" from the same menu to return the page to normal. You can view the demo for this script on this page.
   
 
== Installation ==
 
== Installation ==
 
{{Script Install
 
{{Script Install
| codepage =
+
| codepage = View Source/code.js
 
}}
 
}}

Revision as of 07:04, 13 January 2020

View Source adds a "View source" link to the "Edit" dropdown menu that replaces the page's content with the raw code. Pick "View article" from the same menu to return the page to normal. You can view the demo for this script on this page.

Installation