// ==UserScript== // @name [GitHub] inactive // @namespace https://github.com/kevingrillet // @author Kevin GRILLET // @description Add banner to innactive github // @copyright https://github.com/kevingrillet // @license GPL-3.0 License // @tag kevingrillet // @tag github.com // @version 1.5.1 // @homepageURL https://github.com/kevingrillet/Userscripts/ // @supportURL https://github.com/kevingrillet/Userscripts/issues // @downloadURL https://raw.githubusercontent.com/kevingrillet/Userscripts/main/user.js/[GitHub]%20Inactive.user.js // @updateURL https://raw.githubusercontent.com/kevingrillet/Userscripts/main/user.js/[GitHub]%20Inactive.user.js // @match https://github.com/*/* // @icon https://www.google.com/s2/favicons?domain=github.com // @grant none // @run-at document-end // ==/UserScript== (function () { 'use strict'; const DAYS = 365 / 2; const LIGHT_MODE = true; const WARNING_MESSAGE = '⚠️ WARNING: This repo is pretty old ⚠️'; function addDiv() { const template = LIGHT_MODE ? `
${WARNING_MESSAGE}