Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// ==UserScript==
// @name GitLab-Warning-Editing-Master
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://innersource.soprasteria.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var currentUrl = window.location.href;
if (currentUrl.indexOf("edit/master") > -1) {
alert("ATTENTION! You're editing in master");
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment