Differences between version 67 and predecessor to the previous major change of MozillaNotes.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 67 | Last edited on Tuesday, January 17, 2006 11:22:57 am | by JohnMcPherson | Revert |
Older page: | version 66 | Last edited on Tuesday, January 17, 2006 11:08:52 am | by DanielLawson | Revert |
@@ -26,39 +26,8 @@
To use it, save it as <tt>wlug.src</tt> or something like that in [Mozilla]'s <tt>searchplugins/</tt> directory and restart the browser.
[Mycroft | http://mycroft.mozdev.org/] is a huge repository of search plugins for all manner of sites.
-!! Flash plugin click-to-load
-
-You can enable the flash plugin but not automatically load flash animations by using CSS and XUL.
-
-Copy the following into your <tt>userContent.css</tt>"
-<verbatim>
- /* Prevent flash animations from playing until you click on them. */
- object[[classid$=":D27CDB6E-AE6D-11cf-96B8-444553540000"],
- object[[codebase*="swflash.cab"],
- object[[type="application/x-shockwave-flash"],
- embed[[type="application/x-shockwave-flash"],
- embed[src$=".swf"]
- { -moz-binding: url("http://www.cs.hmc.edu/~jruderma/clickToView.xml#ctv"); }
-</verbatim>
-You can copy the clickToView.xml file onto a local webserver as change the url to point to your version, if you don't want to get it from his webserver every time.
-
-This also works for some other Gecko-based browsers. Just add the above snippet to the appropriate <tt>userContent.css</tt> for the browser
-
-!! Java plugin click-to-load
-
-You can prevent [Java] applets from loading immediately, requiring a click instead, by copying the following into your <tt>userContent.css</tt>:
-
- <verbatim>
- object[codebase*="java"],
- object[type="application/java"],
- embed[type="application/java"],
- applet[code$=".class"]
- { -moz-binding: url("http://www.cs.hmc.edu/~jruderma/clickToView.xml#ctv"); }
- </verbatim>
-
-You could (and probably should) copy [clickToView.xml|http://www.cs.hmc.edu/~jruderma/clickToView.xml] onto your own webserver or local FileSystem and change the [URL] to point to your copy.
!! Ad blocking
If you're sick of ads add this to your userContent.css file mentioned above:
@@ -168,9 +137,45 @@
contain all the mime-types that the plugin handles.
Now I can control how my pdf files open, instead of being forced into that horrible acroread browser plugin...
+!!Using user css to hide/disable plugin content
+You can enable the flash plugin but not automatically load flash animations by using CSS and XUL.
+This can also be used for arbitrary types.
+
+
+!Flash plugin click-to-load
+
+Copy the following into your your <tt>$HOME/.mozilla/firefox/''salt''/chrome/userContent.css</tt> file:
+<verbatim>
+ /* Prevent flash animations from playing until you click on them. */
+ object[[classid$=":D27CDB6E-AE6D-11cf-96B8-444553540000"],
+ object[[codebase*="swflash.cab"],
+ object[[type="application/x-shockwave-flash"],
+ embed[[type="application/x-shockwave-flash"],
+ embed[src$=".swf"]
+ { -moz-binding: url("http://www.cs.hmc.edu/~jruderma/clickToView.xml#ctv"); }
+</verbatim>
+The file location of the userContent.css will be different for other browsers: try <tt>$HOME/.galeon/mozilla/galeon/chrome</tt> or <tt>$HOME/.mozilla/default/''salt''/chrome/userContent.css</tt>.
+
+You can copy the clickToView.xml file onto a local webserver as change the url to point to your version, if you don't want to get it from his webserver every time.
+
+Unfortunately the moz-binding must be an http [URI]; file:// URIs don't work due to the security model.
+
+There is also a Firefox extension called ~FlashBlock that does this, although it only works for recent versions of Firefox 1.4 or 1.5.
+
+!! Java plugin click-to-load
+
+You can prevent [Java] applets from loading immediately, requiring a click instead, by copying the following into your <tt>userContent.css</tt>:
+
+<verbatim>
+object[codebase*="java"],
+object[type="application/java"],
+embed[type="application/java"],
+applet[code$=".class"]
+{ -moz-binding: url("http://www.cs.hmc.edu/~jruderma/clickToView.xml#ctv"); }
+</verbatim>
!!!Misc Neat Stuff
http://webfx.eae.net/games/minehunter/launcher.html