To create an account, visit <span class="plainlinks">[https://en.wikipedia.org/w/index.php?title=Special:CreateAccount&returnto=Help:Options_to_hide_an_image Create account]</span>.
PeopleOnce withyou anhave accountcreated onan theaccount, Wikipediawill websiteyou arebe able to use features of the wiki software to disable specific images or sets of images from being displayed:
===Hide all potentially-offensive images until they are clicked on===
[[File:Battenburg-white-blue.svg|thumb|All images will be replaced by this [[Battenburg markings|Battenburg pattern]] placeholder image, until you click on them to reveal the image.|upright=0.7]]
Once you have created an account, youYou can install a user script called [[User:Anomie/hide-images]] which replaces all potentially-offensive images with a placeholder image. Clicking the placeholder image will reveal the original image. To hide images in this fashion, install the required user script by following the directions below:
{{ctop|title=Instructions for installation}}
First, copy the following text below to your [[Special:MyPage/common.js|common.js]] page:
===Disable images on specific pages===
Once you've [[WP:CREATE|created an account]], youYou can disable the images on a specific page by changing your personal settings at your [[Special:MyPage/common.css|common.css]] page. This allows you to avoid viewing images that may offend you, but without affecting images from being displayed as normal on other unrelated pages. To do this, follow the instructions below:
{{ctop|title=Instructions forto installationdisable images on specific pages}}
To install thisdisable script, clickimages on thisa linkspecific herepage, go to your [[Special:MyPage/common.css|common.css]] ([[Special:MyPage/common.css|common.css]] is your personal [[Wikipedia:CSS|CSS]] page, and is different to your [[Special:MyPage/common.js|common.js]]). Create the page if it doesn't exist, and withadd the following textcode below added to it:
<syntaxhighlight lang="css" inline>.page-(pagePage name) img {display: none;}</syntaxhighlight>
Where you'll replace ''<syntaxhighlight lang="css" inline>(pagePage name)''</syntaxhighlight> with the actual [[Wikipedia:Page name|page of the pagename]] you wish to apply the restriction to. For example: To disable images from automatically displaying on the [[Muhammad]] article, your script will look like this:
For example, to disable images from automatically displaying on the [[Muhammad]] article, your addition will look like this: <syntaxhighlight lang="css" inline>.page-Muhammad img {display: none;}</syntaxhighlight>
If the page name includes spaces or punctuation marks, usereplace spaces with underscores instead.(<code>_</code>) Anand exampleexclude ispunctuation belowmarks. For example: ▼
{| class="wikitable"
▲If the page name includes spaces or punctuation marks, use underscores instead. An example is below:
! Page name !! {{ya}} Correct !! {{na}} Incorrect
|-
| [[Muhammad (name)]] || <syntaxhighlight lang="css" inline>.page-Muhammad_name img {display: none;}</syntaxhighlight> || <syntaxhighlight lang="css" inline>.page-Muhammad (name) img {display: none;}</syntaxhighlight> ▼
|-
| ''[[Did Muhammad Exist?]]'' || <syntaxhighlight lang="css" inline>.page-Did_Muhammad_Exist img {display: none;}</syntaxhighlight> || <syntaxhighlight lang="css" inline>.page-Did_Muhammad_Exist? img {display: none;}</syntaxhighlight>
|}
Create a newline, with the same code for each page you'd like to disable images on.
{{ctop|title=<div style="color:red; text-align:center;">'''Incorrect'''</div>}}
▲<syntaxhighlight lang="css" inline>.page-Muhammad (name) img {display: none;}</syntaxhighlight>
{{cbot}}
{{ctop|title=<div style="color:green; text-align:center;">'''Correct'''</div>}}
<syntaxhighlight lang="css" inline>.page-Muhammad_name img {display: none;}</syntaxhighlight>
{{cbot}}
{{cbot}}
|