dont make cursor:pointer css for ids with scripts disabled

merge-requests/208/head
fatchan 5 years ago
parent a36030e8c6
commit 781bb5ec64
  1. 2
      gulp/res/css/style.css
  2. 6
      gulp/res/js/threadstat.js

@ -536,7 +536,7 @@ details.actions div {
padding: 0px 2px;
border: 1px solid rgba(0, 0, 0, 0.4);
border-radius: 1px;
cursor: pointer;
/*cursor: pointer;*/
}
.user-id:hover::after {

@ -1,5 +1,11 @@
window.addEventListener('DOMContentLoaded', (event) => {
for (rule of document.querySelector('link[rel="stylesheet"]').sheet.rules) {
if(rule.selectorText == '.user-id') {
rule.style.cursor = 'pointer'; //make ids like a link when hovering
}
}
const statsElem = document.getElementById('threadstats');
const idElems = [];
const idMap = new Map();

Loading…
Cancel
Save