Skip to content

Instantly share code, notes, and snippets.

@poespas
Created February 25, 2021 08:23
Show Gist options
  • Save poespas/fae193a277c7357d5fbea685dc317870 to your computer and use it in GitHub Desktop.
Save poespas/fae193a277c7357d5fbea685dc317870 to your computer and use it in GitHub Desktop.
Closes bitbucket "Take your first steps" prompts after pageload
// ==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