blob: 159b21a7647b077649af704c29e23f5f886f6892 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<html>
<head>
<script type="text/javascript">
var theme = {
id: "test",
name: "Test Background",
headerURL: "http://example.com/firefox/personas/01/header.jpg",
footerURL: "http://example.com/firefox/personas/01/footer.jpg",
textcolor: "#fff",
accentcolor: "#6b6b6b"
};
function setTheme(node) {
node.setAttribute("data-browsertheme", JSON.stringify(theme));
var event = document.createEvent("Events");
event.initEvent("InstallBrowserTheme", true, false);
node.dispatchEvent(event);
}
</script>
</head>
<body>
<a id="theme-install" href="#" onclick="setTheme(this)">Install</a>
</body>
</html>
|