2002-09-28 12:14:15 +00:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2002-07-15 22:50:49 +00:00
|
|
|
|
2004-07-16 18:13:26 +00:00
|
|
|
<!-- ***** BEGIN LICENSE BLOCK *****
|
2004-12-01 22:27:03 +00:00
|
|
|
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
-
|
|
|
|
- The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
- 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
- the License. You may obtain a copy of the License at
|
|
|
|
- http://www.mozilla.org/MPL/
|
|
|
|
-
|
|
|
|
- Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
- for the specific language governing rights and limitations under the
|
|
|
|
- License.
|
|
|
|
-
|
|
|
|
- The Original Code is mozilla.org Code.
|
|
|
|
-
|
|
|
|
- The Initial Developer of the Original Code is
|
|
|
|
- Netscape Communications Corporation.
|
|
|
|
- Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
- the Initial Developer. All Rights Reserved.
|
|
|
|
-
|
|
|
|
- Contributor(s):
|
|
|
|
- Mark Olson <maolson@earthlink.net>
|
|
|
|
- Alexey Chernyak <alexeyc@bigfoot.com>
|
|
|
|
- Frank Tang <ftang@netscape.com>
|
|
|
|
- Mike Connelly <mozilla@shepherdstown.com>
|
|
|
|
- Robert Kaiser <kairo@kairo.at>
|
2009-01-30 08:13:17 +00:00
|
|
|
- Ehsan Akhgari <ehsan.akhgari@gmail.com>
|
2004-12-01 22:27:03 +00:00
|
|
|
-
|
|
|
|
- Alternatively, the contents of this file may be used under the terms of
|
|
|
|
- either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
- in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
- of those above. If you wish to allow use of your version of this file only
|
|
|
|
- under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
- use your version of this file under the terms of the MPL, indicate your
|
|
|
|
- decision by deleting the provisions above and replace them with the notice
|
|
|
|
- and other provisions required by the LGPL or the GPL. If you do not delete
|
|
|
|
- the provisions above, a recipient may use your version of this file under
|
|
|
|
- the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
-
|
|
|
|
- ***** END LICENSE BLOCK ***** -->
|
2001-05-09 07:56:23 +00:00
|
|
|
|
2002-07-15 22:50:49 +00:00
|
|
|
<html>
|
2000-09-29 00:04:23 +00:00
|
|
|
<head>
|
2007-05-23 18:08:10 +00:00
|
|
|
<script type="application/javascript">
|
2003-01-21 21:04:23 +00:00
|
|
|
var strBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"].getService(Components.interfaces.nsIStringBundleService);
|
2004-06-20 01:42:05 +00:00
|
|
|
var pluginsbundle = strBundleService.createBundle("chrome://global/locale/plugins.properties");
|
|
|
|
var regionbundle = strBundleService.createBundle("chrome://global-region/locale/region.properties");
|
2003-01-21 21:04:23 +00:00
|
|
|
|
|
|
|
document.writeln("<title>" + pluginsbundle.GetStringFromName("title_label") + "<\/title>");
|
2002-09-28 12:14:15 +00:00
|
|
|
</script>
|
2006-08-07 16:06:03 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="chrome://global/content/plugins.css">
|
2004-06-20 01:42:05 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="chrome://global/skin/plugins.css">
|
2000-09-29 00:04:23 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2002-09-28 12:14:15 +00:00
|
|
|
<div id="outside">
|
2007-05-23 18:08:10 +00:00
|
|
|
<script type="application/javascript">
|
2000-09-22 07:51:47 +00:00
|
|
|
|
2009-01-30 08:13:17 +00:00
|
|
|
function setDirection() {
|
|
|
|
var frame = document.getElementById("directionDetector");
|
|
|
|
var direction = frame.contentDocument
|
|
|
|
.defaultView
|
|
|
|
.window
|
|
|
|
.getComputedStyle(frame.contentDocument.getElementById("target"), "")
|
|
|
|
.getPropertyValue("direction");
|
|
|
|
document.body.removeChild(frame);
|
|
|
|
document.dir = direction;
|
|
|
|
}
|
|
|
|
|
|
|
|
function setupDirection() {
|
|
|
|
var frame = document.createElement("iframe");
|
|
|
|
frame.setAttribute("id", "directionDetector");
|
|
|
|
frame.setAttribute("src", "chrome://global/content/directionDetector.html");
|
|
|
|
frame.setAttribute("width", "0");
|
|
|
|
frame.setAttribute("height", "0");
|
|
|
|
frame.setAttribute("style", "visibility: hidden;");
|
|
|
|
frame.setAttribute("onload", "setDirection();");
|
|
|
|
document.body.appendChild(frame);
|
|
|
|
}
|
|
|
|
setupDirection();
|
|
|
|
|
2002-09-28 12:14:15 +00:00
|
|
|
/* JavaScript to enumerate and display all installed plug-ins
|
|
|
|
|
|
|
|
* First, refresh plugins in case anything has been changed recently in
|
|
|
|
* prefs: (The "false" argument tells refresh not to reload or activate
|
|
|
|
* any plug-ins that would be active otherwise. In contrast, one would
|
|
|
|
* use "true" in the case of ASD instead of restarting)
|
|
|
|
*/
|
|
|
|
navigator.plugins.refresh(false);
|
|
|
|
|
|
|
|
|
|
|
|
var numPlugins = navigator.plugins.length;
|
|
|
|
|
|
|
|
if (numPlugins > 0)
|
2007-11-09 22:30:06 +00:00
|
|
|
document.writeln("<h1 id=\"plugs\">" + pluginsbundle.GetStringFromName("installedplugins_label") + "<\/h1>");
|
2002-09-28 12:14:15 +00:00
|
|
|
else
|
2007-11-09 22:30:06 +00:00
|
|
|
document.writeln("<h1 id=\"noplugs\">" + pluginsbundle.GetStringFromName("nopluginsareinstalled_label") + "<\/h1>");
|
2001-05-09 07:56:23 +00:00
|
|
|
|
2003-01-21 21:04:23 +00:00
|
|
|
document.writeln("<div id=\"findmore\">" + pluginsbundle.GetStringFromName("findmore_label") + " ");
|
|
|
|
document.writeln("<a href=\"" + regionbundle.GetStringFromName("more_plugins_url") + "\">" + regionbundle.GetStringFromName("more_plugins_label") + "<\/a>.");
|
2002-12-12 00:12:16 +00:00
|
|
|
document.writeln("<\/div>");
|
|
|
|
|
2003-01-21 21:04:23 +00:00
|
|
|
document.writeln("<div id=\"installhelp\">" + pluginsbundle.GetStringFromName("installhelp_label") + " ");
|
|
|
|
document.writeln("<a href=\"" + regionbundle.GetStringFromName("plugindoc_url") + "\">" + regionbundle.GetStringFromName("plugindoc_label") + "<\/a>.");
|
2002-09-28 12:14:15 +00:00
|
|
|
document.writeln("<\/div><hr>");
|
|
|
|
|
|
|
|
for (var i = 0; i < numPlugins; i++)
|
|
|
|
{
|
|
|
|
var plugin = navigator.plugins[i];
|
|
|
|
|
|
|
|
if (plugin)
|
|
|
|
{
|
2007-11-09 22:30:06 +00:00
|
|
|
document.write("<h2 class=\"plugname\">");
|
2002-09-28 12:14:15 +00:00
|
|
|
document.write(plugin.name);
|
2007-11-09 22:30:06 +00:00
|
|
|
document.writeln("<\/h2>");
|
2002-09-28 12:14:15 +00:00
|
|
|
|
2009-06-10 20:47:49 +00:00
|
|
|
document.writeln("<dl><dd><span class=\"label\">" + pluginsbundle.GetStringFromName("file_label") + "<\/span> ");
|
2002-09-28 12:14:15 +00:00
|
|
|
document.write(plugin.filename);
|
2009-04-22 19:13:10 +00:00
|
|
|
document.writeln("<\/dd><dd><span class=\"label\">" + pluginsbundle.GetStringFromName("version_label") + "<\/span> ");
|
|
|
|
document.write(plugin.version);
|
2002-09-28 12:14:15 +00:00
|
|
|
document.writeln("<\/dd><dd>");
|
|
|
|
document.write(plugin.description);
|
|
|
|
document.writeln("<\/dd><\/dl>");
|
|
|
|
|
2007-11-09 22:30:06 +00:00
|
|
|
document.writeln("<table border=\"1\" class=\"contenttable\">");
|
2002-09-28 12:14:15 +00:00
|
|
|
document.writeln("<thead>");
|
2003-01-21 21:04:23 +00:00
|
|
|
document.writeln("<tr><th class=\"type\">" + pluginsbundle.GetStringFromName("mimetype_label") + "<\/th>");
|
|
|
|
document.writeln("<th class=\"desc\">" + pluginsbundle.GetStringFromName("description_label") + "<\/th>");
|
|
|
|
document.writeln("<th class=\"suff\">" + pluginsbundle.GetStringFromName("suffixes_label") + "<\/th>");
|
|
|
|
document.writeln("<th class=\"enabled\">" + pluginsbundle.GetStringFromName("enabled_label") + "<\/th><\/tr>");
|
2002-09-28 12:14:15 +00:00
|
|
|
document.writeln("<\/thead>");
|
|
|
|
document.writeln("<tbody>");
|
|
|
|
|
|
|
|
var numTypes = plugin.length;
|
|
|
|
var mimetype;
|
|
|
|
var enabled;
|
|
|
|
var enabledPlugin;
|
|
|
|
for (var j = 0; j < numTypes; j++)
|
2001-05-09 07:56:23 +00:00
|
|
|
{
|
2002-09-28 12:14:15 +00:00
|
|
|
mimetype = plugin[j];
|
|
|
|
|
|
|
|
if (mimetype)
|
|
|
|
{
|
2003-01-21 21:04:23 +00:00
|
|
|
enabled = pluginsbundle.GetStringFromName("no_label");
|
2002-09-28 12:14:15 +00:00
|
|
|
enabledPlugin = mimetype.enabledPlugin;
|
|
|
|
if (enabledPlugin && (enabledPlugin.filename == plugin.filename))
|
2003-01-21 21:04:23 +00:00
|
|
|
enabled = pluginsbundle.GetStringFromName("yes_label");
|
2002-09-28 12:14:15 +00:00
|
|
|
|
|
|
|
document.writeln("<tr>");
|
|
|
|
document.writeln("<td>" + mimetype.type + "<\/td>");
|
|
|
|
document.writeln("<td>" + mimetype.description + "<\/td>");
|
|
|
|
document.writeln("<td>" + mimetype.suffixes + "<\/td>");
|
|
|
|
document.writeln("<td>" + enabled + "<\/td>");
|
|
|
|
document.writeln("<\/tr>");
|
|
|
|
}
|
2001-05-09 07:56:23 +00:00
|
|
|
}
|
|
|
|
|
2002-09-28 12:14:15 +00:00
|
|
|
document.write("<\/tbody>");
|
|
|
|
document.write("<\/table>");
|
|
|
|
}
|
2001-05-09 07:56:23 +00:00
|
|
|
}
|
2000-09-29 00:04:23 +00:00
|
|
|
</script>
|
2001-05-09 07:56:23 +00:00
|
|
|
</div>
|
2000-09-29 00:04:23 +00:00
|
|
|
</body>
|
|
|
|
</html>
|