37 lines
1.4 KiB
Plaintext
37 lines
1.4 KiB
Plaintext
<!doctype html>
|
|
<html><head>
|
|
<meta charset="utf-8">
|
|
<title>4chan X</title>
|
|
<link rel="stylesheet" href="web.css">
|
|
<link rel="icon" href="src/General/img/icon.gif">
|
|
<link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/ohnjgmpcibpbafdlkimncjhflgedgpam">
|
|
</head><body>
|
|
<div id="header">
|
|
<h1 id="4chan-x">4chan X</h1>
|
|
<div id="links">
|
|
<a href="https://github.com/ccd0/4chan-x">Source Code</a>
|
|
<a href="https://github.com/ccd0/4chan-x/blob/master/CHANGELOG.md">Changelog</a>
|
|
<a href="https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions">FAQ</a>
|
|
<a href="https://github.com/ccd0/4chan-x/issues">Report Bugs</a>
|
|
</div>
|
|
</div>
|
|
<a href="img/screenshot.png"><img class="screenshot" src="img/screenshot.png" alt="screenshot"></a>
|
|
<span class="hover"><img src="img/screenshot.png" alt="preview"></span>
|
|
<%=
|
|
content
|
|
.match(/<\/h1>([^]*)<h2 id="more-information"/)[1]
|
|
.replace(/(<a href="([^"]+\.png)">.*?<\/a>)/g, '$1<span class="hover"><img src="$2" alt="preview"></span>')
|
|
%>
|
|
<script>
|
|
var links = document.querySelectorAll('a[href="https://chrome.google.com/webstore/detail/4chan-x/ohnjgmpcibpbafdlkimncjhflgedgpam"]');
|
|
for (var i = 0; i < links.length; i++) {
|
|
links[i].addEventListener('click', function(e) {
|
|
if (window.chrome && !e.shiftKey && !e.altKey && !e.ctrlKey && !e.metaKey && e.button === 0) {
|
|
chrome.webstore.install();
|
|
e.preventDefault();
|
|
}
|
|
}, false);
|
|
}
|
|
</script>
|
|
</body></html>
|