Build web page.

This commit is contained in:
ccd0 2014-10-14 19:16:32 -07:00
parent 7175edbc9f
commit 16843a0079

View File

@ -53,8 +53,13 @@ Only the latest stable version of 4chan X is available.</p>
<script> <script>
var link = document.querySelector('a[href="https://chrome.google.com/webstore/detail/4chan-x/ohnjgmpcibpbafdlkimncjhflgedgpam"]'); var link = document.querySelector('a[href="https://chrome.google.com/webstore/detail/4chan-x/ohnjgmpcibpbafdlkimncjhflgedgpam"]');
link.addEventListener('click', function() { link.addEventListener('click', function(e) {
chrome.webstore.install(); if (window.chrome && !e.shiftKey && !e.altKey && !e.ctrlKey && !e.metaKey && e.button === 0) {
chrome.webstore.install(undefined, undefined, function(){
location.href = link.href;
});
e.preventDefault();
}
}, false); }, false);
</script> </script>
</body></html> </body></html>