Jump to content

User:DannyS712/Readonly

From Wikipedia, the free encyclopedia
Readonly.js
DescriptionAllows users to view source of a page.
StatusBeta
UpdatedSee history
Skins
  • Vector
  • Monobook
  • Modern
  • Cologne Blue
  • Timeless
  • MinervaNeue
SourceReadonly.js

Readonly.js(source) is a script which allows a user to view the source code of a page without the risk of accidentally clicking Publish Changes. The script is still in its infancy and thus may contains bugs. All feature requests, bug reports should be done at User talk:DannyS712. It is inspired from this thread.

How to use the script

[edit]

The script will add a link Forced view source to your tool box. Clicking on it will take you to the edit-box albeit in veiw source mode. You can then examine the source code without the fear of accidentally Publishing anything.

Importation

This script can be imported to skin.js or common.js by adding:
importScript('User:DannyS712/Readonly.js'); // [[User:DannyS712/Readonly.js]]
or
{{subst:Iusc|User:DannyS712/Readonly.js}}