summaryrefslogtreecommitdiff
path: root/views/disable.js
blob: eb846ebaadff8f695d68d991766dc9dc30989008 (plain)
1
2
3
4
5
6
7
8
9
10
// This piece of javascript reminds you to disable javascript.
// If you *really* want to view this page with javascript, append `?with-evil-javascript-enabled`

eval("") // make librejs block this
window.onload = function () {
    if (window.location.search.includes("?with-evil-javascript-enabled")) return
    document.body.textContent = "Please disable JavaScript to view this site."

}