From 4a944e0014c2e8a427964cae42131f3ed465d60b Mon Sep 17 00:00:00 2001 From: Jason Cosper Date: Sat, 27 May 2023 08:32:51 -0700 Subject: [PATCH] Create `unwelcome.js` --- unwelcome.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 unwelcome.js diff --git a/unwelcome.js b/unwelcome.js new file mode 100644 index 0000000..9a700cc --- /dev/null +++ b/unwelcome.js @@ -0,0 +1,22 @@ +// ==UserScript== +// @name Unwelcome +// @namespace https://github.com/boogah/userscripts +// @version 2023.05.27 +// @description Automatically hides the welcome box when visiting Make WordPress pages. +// @author boogah +// @match https://*.make.wordpress.org/* +// @license GPL-2.0 +// @grant none +// ==/UserScript== + +(function() { + 'use strict'; + + window.addEventListener('load', function() { + var welcomeBoxes = document.getElementsByClassName('make-welcome'); + for (var i = 0; i < welcomeBoxes.length; i++) { + welcomeBoxes[i].style.display = 'none'; + } + }, false); + +})();