Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 <html>
2 <head>
3 <script type="text/javascript">
4 var theme = {
5 id: "test",
6 name: "Test Background",
7 headerURL: "http://example.com/firefox/personas/01/header.jpg",
8 footerURL: "http://example.com/firefox/personas/01/footer.jpg",
9 textcolor: "#fff",
10 accentcolor: "#6b6b6b"
11 };
13 function setTheme(node) {
14 node.setAttribute("data-browsertheme", JSON.stringify(theme));
15 var event = document.createEvent("Events");
16 event.initEvent("InstallBrowserTheme", true, false);
17 node.dispatchEvent(event);
18 }
19 </script>
20 </head>
21 <body>
22 <a id="theme-install" href="#" onclick="setTheme(this)">Install</a>
23 </body>
24 </html>