JSFiddle - React, Tailwind, and code Playground

by sc0rp10

HTML

<a id="l" href="http://pornhub.com">pornhub.com</a>

CSS

a {
  color: blue;
}
a:visited {
  color: red;
}

JavaScript

var link = document.getElementById("l");
var color = window.getComputedStyle(link).getPropertyValue("color");
var text = (color === 'rgb(0, 0, 255)') ? 'не дрочил' : 'дрочил';
alert('ты ' + text);