Help:Options to hide an image: Difference between revisions

Content deleted Content added
Line 64:
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 79:
<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}}