[サイバー.net]

← back

No Chrome users allowed

You know how it is, you visit a website and see that you are supposedly not allowed to visit it because you are using Firefox.

Let's just turn the whole thing around and lock out Chrome users / Safari users.

Google is currently planning DRM for websites which will destroy the openweb permanently, so let's fight back a bit.

I wrote a bad JavaScript that locks out Chrome and Safari users. It can be easily worked around by changing the useragent, but whatever.

var userAgent = navigator.userAgent.toLowerCase();
var isFirefox = userAgent.indexOf('firefox') > -1;
var isChrome = userAgent.indexOf('chrome') > -1;
var isSafari = userAgent.indexOf('safari') > -1 && userAgent.indexOf('chrome') === -1;
if (isChrome || isSafari) {
    var warningElement = document.getElementById('warning');
    warningElement.style.display = 'block';
    var contentElement = document.querySelector('.w');
    contentElement.style.display = 'none';
}

Simply add the code to your web pages using JavaScript.

In a DIV you can display a message to your visitors that they should please visit you with another browser.

<div id="warning" style="display: none;">Install Firefox, choomba.</div>

System (システム)

netdir://サイバー.net → No Chrome users allowed

< OBEY THE SYSTEM Webring > Mastodon