// ==UserScript== // @name Mark old thread items on mikrocontroller.net // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match https://www.mikrocontroller.net/topic/* // @icon https://www.google.com/s2/favicons?domain=mikrocontroller.net // @grant none // ==/UserScript== (function() { 'use strict'; let timeDiff = 365*24*60*60*1000; // a year var now = Date.now(); let divDates = document.getElementsByClassName("datetime"); for(var i = 0; i timeDiff) { // older articles -> mark // filter logged actions if (!divDates[i].parentNode.parentNode.classList.contains("logged_actions")) { divDates[i].parentNode.parentNode.parentNode.style.backgroundColor = "red"; } } } })();