Created
August 12, 2020 13:36
-
-
Save lzcjames/61a8eeb389ea4067fc872b921b5d2fd3 to your computer and use it in GitHub Desktop.
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 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