Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Help:Options to hide an image

From Wikipedia, the free encyclopedia
Wikipedia help page
This help page is ahow-to guide.
It explains concepts or processes used by the Wikipedia community. It is not one ofWikipedia's policies or guidelines, and may reflect varying levels ofconsensus.

Some readers may not wish to see certain images on Wikipedia for various reasons—such images may beunsuitable for a work environment, they may wish toprevent children from viewing them, they may bespoilers for a certain work, or their religious or personal beliefs may discourage exposure to such content.

Wikipedia is not censored, meaning that content is not removed simply because some find it objectionable.No specific disclaimers are placed on articles to warn readers about potentially sensitive content. All articles fall under Wikipedia’sContent disclaimer, which applies site-wide.

However, readers who wish to prevent certain images from displaying have options to customize their experience.

This page is more suitable for you if:

  1. you still want to visit Wikipedia (rather than creating afork or simply staying away) and,
  2. you find an image offensive but, apart from your perception of its offensiveness, have nothing more to add, within the premises of Wikipedia policies, to the discussions pertaining to replacement orremoval of images by buildingconsensus.

Wikipedia readers can influence how Wikipedia content is displayed on their screens in two ways:

  1. Bycreating an account and reading Wikipedia while logged in. Logged-in users can use personalCascading Style Sheets (CSS) to display images selectively. See§ Wikipedia user preferences.
  2. By filtering content locally, either by configuring theirweb browser (including the possibility to display no images at all), or by setting up aproxy (such asPrivoxy). See§ Configure your browser.

Wikipedia user preferences

[edit]
Further information:Help:Cascading Style Sheets

To create an account, visitCreate account.

Once you have created an account, you will be able to use features of the wiki software to disable specific images or sets of images from being displayed by:

Hide all images until they are clicked on

[edit]
All images will be replaced by thisBattenburg pattern placeholder image, until you click on them to reveal the image.

You can install a user script calledUser:Anomie/hide-images which replaces all 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:

Instructions for installation

First, copy the following text below to yourcommon.js page:

importScript('User:Anomie/hide-images.js');

Then, copy the following text below to yourcommon.css page:

@importurl('//en.wikipedia.org/w/index.php?action=raw&title=User:Anomie/hide-images.css&ctype=text/css');

You can simply reload the page in order to re-hide the images. To turn this entire feature off, simply undo the changes you made when you followed the instructions above.

Disable images on specific pages

[edit]

You can disable the images on a specific page by changing your personal settings at yourcommon.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:

Instructions to disable images on specific pages

To disable images on a specific page, go to yourcommon.css (common.css is your personalCSS page, and is different to yourcommon.js). Create the page if it doesn't exist, and add the following code below:

.page-(Pagename)img{display:none;} or.page-(Pagename).depiction{display:none;}

Where you'll replace(Pagename) with the actualpage name you wish to apply the restriction to.

For example, to disable images from automatically displaying on theMuhammad article, your addition will look like this:.page-Muhammadimg{display:none;}

If the page name includes spaces or punctuation marks, replace spaces with underscores (_) and exclude punctuation marks. For example:

Page nameYes CorrectNo Incorrect
Muhammad (name).page-Muhammad_nameimg{display:none;}.page-Muhammad(name)img{display:none;}
Did Muhammad Exist?.page-Did_Muhammad_Existimg{display:none;}.page-Did_Muhammad_Exist?img{display:none;}

Create a newline, with the same code for each page you'd like to disable images on.

Disable specific images

[edit]

You can also disable specific images by individual filename. To enable this option, follow the instructions listed below:

Instructions to disable specific images

Go to yourcommon.css. Create the page if it doesn't exist, and with the following text below added to it:

bodya[href="/wiki/File:(file name)"]{display:none;}

Where you'll replace(file name) with the actual name of the image's page (including the file extension). For example: To disablethis image from automatically being displayed anywhere on Wikipedia, your script will look like this:

bodya[href="/wiki/File:Silver-service-star.png"]{display:none;}

Remember to replace spaces and punctuation marks within file names with underscores.

If you wish to disable an image on another project from displaying automatically (for example, the Wikimedia Commons), your script will look like this:

bodya[href="//commons.wikimedia.org/wiki/File:(file name)"]{display:none;}

Where, again, you'll replace(file name) with the actual name of the image's page (including the file extension).

Remember: Keep in mind that the images included in any given article, and their filenames, can change at any time, and generallymay change over time as the relevant article or page develops.

Here is an example file addressing content preferences with regard todepictions of Muhammad aimed at moderately strict Sunni Muslims. It's an example. Individual content preferences may vary.

Disable images in search widget for certain skins

[edit]

Search result images can be turned off by altering the respective common.css for the skin being used and adding a rule to not display background images for spans of the class.wvui-typeahead-suggestion__thumbnail. For example:

span.wvui-typeahead-suggestion__thumbnail{background-image:none!important;}

Configure your browser

[edit]

How to block images site-wide

[edit]

Mozilla Firefox

[edit]

Modifying the preference inabout:config:

extensions.contentblocker.enabled = true

Google Chrome

[edit]
  1. Click on the icon next to the site's URL address calledView site information. Navigate toSite settings.
  2. Scroll down toImages.
  3. Change setting toBlock.

User scripts

[edit]

With auserscript manager such asTampermonkey, you can install "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

[edit]

Google Chrome

[edit]
  1. Click top right icon on Google Chrome browser, then chooseSettings.
  2. ClickPrivacy and security on the left, then click onImages.
  3. Under "Default behaviour", select "Don't allow sites to show images".

Mozilla Firefox

[edit]
With add-on
[edit]

There are add-ons which provide image hiding functionalityhttps://addons.mozilla.org/en-US/firefox/addon/image-block/

AllMozilla-based browsers

[edit]

Enterabout:config in the location box, and changepermissions.default.image to2 to disable image downloads. To restore the default behavior, change it back to 1.

UC Browser

[edit]
  1. Click on menu button just below the browser close button.
  2. Go to settings
  3. Click on other, the last item on the settings list.
  4. Under "privacy" item, click on content settings.
  5. Scroll down to images, click on do not show any images.
  • Note: UC Browser and UC Browser mini serves better than Google Chrome, Mozilla Firefox and Opera browser for browsing editing in Wikipedia and other Wikimedia projects with hiding images, specially in android versions.

Opera

[edit]

Settings ▸ Websites ▸ Images ▸   select "Do not show any images."

  • Note: Opera browser may not hide all the images properly.

Safari 3

[edit]
  1. On Mac OSX, select the "Safari" menu.
  2. Click "Preferences".
  3. Click on the "Appearance" button.
  4. Uncheck "Display images when the page opens."

Lynx

[edit]

The use of a text-based web browser such as Lynx will allow you to view Wikipedia without seeing any images at all, unless explicitly downloaded and shown in a separate application.

Internet Explorer 7 and onward

  1. Click the "Tools" button.
  2. Select "Internet Options".
  3. Click the "Advanced" tab.
  4. Scroll down to "Multimedia" and uncheck "Show pictures".

Install the Adblock Extension (Firefox)

[edit]
Further information:Adblock

Open Tools and click the "Add-Ons" button in the "Main" Tab.Select and install "Adblock Plus". After restarting your browser, you have a menu labelled with an "ABP" icon in the top right of your browser window. From this menu, you can define precisely what content should be suppressed by your browser.

Do not use a predefined filterset, which may be configured to allow (whitelist) all Wikimedia content. Instead, use the "open blockable items" option to review whitelisted content on the current page, and disable filter rules as desired.

To block a specific image, right-click on it and select "Adblock image" from the context menu.For example, right-clicking on the top image atPenis, you get the option to block "http://upload.wikimedia.org/wikipedia/en/thumb/1/1d/Labelled_bw_flaccid_penis.jpg/*". This will block all scaled-down versions ofFile:Labelled_bw_flaccid_penis.jpg. If you want to filter all images containing "penis" as part of the filename, use the rule "http://upload.wikimedia.org/*penis*".

Once you have defined a filterset, you can distribute it to interested parties sharing your content preferences.

Use a proxy filter

[edit]

You can selectively block content by using aweb filter program. Freely available examples includePrivoxy andDansGuardian. Once you have installed such a program, you can exert fine-grained control over what content is received by your web browser. This method can also be used for system administrators for schools and workplaces to restrict the access of potentially inappropriate images to students/employees. If you are using a URL based filter which also blocks images from a host, blocking Wikimedia will also block all images. Please note by doing this, some system icons on Wikipedia may no longer be visible as they are hosted on Wikimedia. Also any images from Wikimedia on any website will be blocked too.

See also

[edit]
Help desk
About Wikipedia (?)
Help for readers (?)
Contributing
to Wikipedia
 (?)
Getting started (?)
Dos and don'ts (?)
How-to pages and
information pages (?)
Coding (?)
Directories (?)
General
technical help
Special
page
-related
Wikitext
Links anddiffs
Media files: images,
videos and sounds
Other graphics
Templates and
Lua modules
Data structure
HTML andCSS
Customisation
and tools
Automated editing
Retrieved from "https://en.wikipedia.org/w/index.php?title=Help:Options_to_hide_an_image&oldid=1300144529"
Categories:
Hidden category:

[8]ページ先頭

©2009-2025 Movatter.jp