Create unwelcome.js

This commit is contained in:
Jason Cosper 2023-05-27 08:32:51 -07:00 committed by GitHub
parent d22f183933
commit 4a944e0014
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

22
unwelcome.js Normal file
View File

@ -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);
})();