Html程序  |  45行  |  1.18 KB

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script>
function debug(msg) {
  document.getElementById('debug').textContent = msg;
}

function insertLink() {
  // Replace the chrome://plugins text with a working link (i18n_template
  // doesn't allow raw HTML in template data).
  var link = document.getElementById("enable_link");
  var link_html = link.innerHTML;
  link.parentNode.removeChild(link);
  var message = document.getElementById("message");
  var message_html = message.innerHTML;
  message.innerHTML = message_html.replace('chrome://plugins', link_html);
}
</script>
<link rel="stylesheet" href="plugin_placeholders.css"></link>
<style>
body {
  background-color: rgb(187, 187, 187);
}

#plugin_icon {
  opacity: .6;
}
</style>
</head>

<body id="t" onLoad="insertLink()">
<div i18n-values="title:name" id="outer">
<div id="inner">
<div><img id="plugin_icon" src="plugin_blocked.png" /></div>
<h1 id="message" i18n-content="message">PLUGIN DISABLED (chrome://plugins)</h1>
<div id="enable_link"><a href="#" onclick="plugin.openAboutPlugins();">chrome://plugins</a></div>
<p id="debug"> </p>
</div>
<div id="close" i18n-values="title:hide" onclick="plugin.hide();" />
</div>
</body>
</html>