Created
February 25, 2021 08:23
-
-
Save poespas/fae193a277c7357d5fbea685dc317870 to your computer and use it in GitHub Desktop.
Closes bitbucket "Take your first steps" prompts after pageload
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Bitbucket First Steps admisser | |
// @namespace https://poespas.me/ | |
// @version 0.1 | |
// @description Really annoying stuff bitbucket, not cool. | |
// @author You | |
// @match https://bitbucket.org/* | |
// @grant none | |
// ==/UserScript== | |
var main = function() { | |
'use strict'; | |
var alerts = $("div[role='alert']"); | |
for (var i = 0; i < alerts.length; i++) { | |
var alert = $(alerts[i]); | |
if (alert.text().includes("Take the next steps for this repository and its freshly added files")) { | |
alert.hide(); | |
} | |
} | |
}; | |
setInterval(main, 1000); | |
main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment