Help:Options to hide an image: Difference between revisions

Content deleted Content added
m Reverted edits by 94.202.250.8 (talk): unexplained content removal (HG) (3.4.12)
 
(18 intermediate revisions by 10 users not shown)
Line 1:
{{Short description|Wikipedia help page}}
{{Wikipedia how to|HELP:NOSEE|HELP:NOIMAGE}}
Some peoplereaders domay not wish to see somecertain images on Wikipedia for various reasons –reasons—such images may not be [[NSFW|suitableunsuitable for a work environment]];, they may wish to [[Wikipedia:Advice for parents|prevent their children from seeingviewing suchthem]], imagesthey may be [[WP:SPOILERS|spoilers for a certain work]];, or their religionreligious or personal beliefs may forbiddiscourage it;exposure andto sosuch oncontent.
{{Update|obsolete browser versions}}
Some people do not wish to see some images on Wikipedia for various reasons – images may not be [[NSFW|suitable for a work environment]]; they may wish to [[Wikipedia:Advice for parents|prevent their children from seeing such images]]; their religion may forbid it; and so on.
 
[[Wikipedia:Wikipedia is [[WP:CENSORnot censored|Wikipedia is not censored]], andmeaning thethat communitycontent will in generalis not [[WP:Deletion|removeremoved content]]simply onbecause groundssome offind beingit objectionable to some people. Wikipedia will also [[Wikipedia:No disclaimers in articles|not useNo specific disclaimers are placed on articles]] withinto articles warningwarn readers ofabout potentially suchsensitive content. All articles fall under the site-wideWikipedia’s [[Wikipedia:Content disclaimer|Content disclaimer]], which applies site-wide.
 
However, readers who do not wish to be exposed to certain content have a number of options to selectively prevent Wikipedia content from being displayed on their screen.
However, readers who wish to prevent certain images from displaying have options to customize their experience.
 
This page is more suitable for you if:
Line 12:
 
Wikipedia readers can influence how Wikipedia content is displayed on their screens in two ways:
#By [[Wikipedia:Creating an account|creating an account]] and reading Wikipedia while logged in. Logged-in users can use personal [[Help:Cascading Style Sheets|Cascading Style Sheets]] (CSS) to display images selectively. (explainedSee below){{Section link|2=Wikipedia user preferences|nopage=y}}.
#By filtering content locally, either by configuring their [[web browser]] (including the possibility to display no images at all), or by setting up a [[proxy server|proxy]] (such as [[Privoxy]]). (explainedSee below){{Section link|2=Configure your browser|nopage=y}}.
 
==Wikipedia user preferences==
Line 20:
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 have created an account, onyou thewill Wikipedia website arebe able to use features of the wiki software to disable specific images or sets of images from being displayed by:
 
===* [[Help:Options to hide an image#Hide all potentially-offensiveimages until they are clicked on|Hiding all images until they are clicked on===]]
* [[Help:Options to hide an image#Disable images on specific pages|Disabling images on selected pages]]
* [[Help:Options to hide an image#Disable specific images|Disabling specific images]]
* [[Help:Options to hide an image#Disable images in search widget for certain skins|Disabling the display of images in searches]]
 
===Hide all 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:
Line 37 ⟶ 42:
 
===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> or <syntaxhighlight lang="css" inline>.page-(Page name) .depiction {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}}
 
Line 62 ⟶ 69:
You can also disable specific images by individual filename. To enable this option, follow the instructions listed below:
 
{{ctop|title=Instructions forto installationdisable specific images}}
ToGo installto this script, click on this link here:your [[Special:MyPage/common.css|common.css]]. Create the page if it doesn't exist, and with the following text below added to it:
 
<syntaxhighlight lang="css" inline>body a[href="/wiki/File:(file name)"] {display: none;}</syntaxhighlight>
 
Where you'll replace ''<code>(file name)''</code> with the actual name of the image's page (including the file extension). For example: To disable [[:File:Silver-service-star.png|this image]] from automatically being displayed anywhere on Wikipedia, your script will look like this:
 
<syntaxhighlight lang="css" inline>body a[href="/wiki/File:Silver-service-star.png"] {display: none;}</syntaxhighlight>
Line 77 ⟶ 84:
<syntaxhighlight lang="css" inline>body a[href="//commons.wikimedia.org/wiki/File:(file name)"] {display: none;}</syntaxhighlight>
 
Where, again, you'll replace ''<code>(file name)''</code> with the actual name of the image's page (including the file extension).
{{cbot}}
 
Line 94 ⟶ 101:
===How to block images site-wide===
 
====[[Mozilla Firefox]]====
Modifying the preference in [https://support.mozilla.org/en-US/kb/about-config-editor-firefox ''about:config'']:
{{Hatnote|This option has been removed with Firefox 72.0 due to "low usage and poor user experience", see the release notes [https://www.mozilla.org/en-US/firefox/72.0/releasenotes/ here].}}[[Image:Example.jpg|frameless|right|alt=Example image]]
extensions.contentblocker.enabled = true
Recent versions (e.g. 39.0)
#Right-click on the example image to the right.
#Click on ''View image info'' from the pop up menu. If this option does not show, click on the icon to left of the address in the address bar (a globe, triangle or padlock icon) and click ''more information''.
#Under the ''media tab'', The image should be already selected. If not, select your image from the list underneath the word ''address''.
#Check the box that says ''Block images from....''
#Close the window
 
====[[Google Chrome]]====
[https://support.mozilla.org/en-US/kb/page-info-window-view-technical-details-about-page More Information]
#Click on the padlockicon next to the site's URL address called ''View site information''. Navigate to ''Site settings''.
 
====[[Google Chrome]]====
#Click on the padlock next to the site's URL address. Navigate to ''Site settings''.
#Scroll down to ''Images''.
#Change setting to ''Block''.
 
====User scripts====
With a [[userscript manager]] such as [[Tampermonkey]], you can install "[https://greasyfork.org/en/scripts/524816-hide-images-3 "hide-images-3"]", which hides images in Wikipedia until they are clicked on.
 
===How to set up your browser not to see images at all===
 
====Google Chrome====
#Click top right icon on Google Chrome browser, then choose "''Settings"''.
#Click "Show''Privacy advancedand settings"security'' below,on scrollthe to Privacy columnleft, then click on "Content settings"''Images''.
#Under "Default behaviour", select "Don't allow sites to show images".
#On Images, either "Show all images" and click "Manage exceptions", then key in Wikipedia, or simply choose "Do not show any images".
====[[Mozilla Firefox]] ====
* Note: Google Chrome does not support omitting images on some Android devices
 
====[[Mozilla Firefox]] ====
 
=====With add-on=====