From bfdfa5d767038584f6dcfa6f0ed33d3f6e9ddc35 Mon Sep 17 00:00:00 2001 From: Josh Parker Date: Mon, 22 Jan 2024 09:42:37 -0700 Subject: [PATCH] add copyright updater --- pairai/update-copyright.user.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pairai/update-copyright.user.js diff --git a/pairai/update-copyright.user.js b/pairai/update-copyright.user.js new file mode 100644 index 0000000..4d07d14 --- /dev/null +++ b/pairai/update-copyright.user.js @@ -0,0 +1,12 @@ +// ==UserScript== +// @name update copyright for pairai +// @description update copyright for pairai +// @namespace http://tampermonkey.net/ +// @version 2024-01-22 +// @match https://pairai.com/ +// ==/UserScript== +(function updateCopyright() { + const copyrightElement = document.querySelector('[data-framer-name=links]').parentElement.children[0].querySelector('p'); + const updatedText = copyrightElement.textContent.replace('2023', '2024'); + copyrightElement.textContent = updatedText; +}());