Skip to content

Instantly share code, notes, and snippets.

@lzcjames
Created August 12, 2020 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lzcjames/61a8eeb389ea4067fc872b921b5d2fd3 to your computer and use it in GitHub Desktop.
Save lzcjames/61a8eeb389ea4067fc872b921b5d2fd3 to your computer and use it in GitHub Desktop.
// ==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