Prepends [DEAD] to document title if OP deletes their post
// ==UserScript==
// @name dead post checker for Wykop.pl
// @namespace Violentmonkey Scripts
// @match https://*.wykop.pl/wpis/*
// @grant none
// @version 1.1
// @author LuK1337
// @description Prepends [DEAD] to document title if OP deletes their post
// @license MIT
// ==/UserScript==
let interval = setInterval(() => {
var req = new XMLHttpRequest()
req.onload = () => {
if (req.status === 404) {
clearInterval(interval)
document.title = `[DEAD] ${document.title}`
}
}
req.open('HEAD', document.location.pathname, true)
req.send()
}, 20000)