Jitpack Getit Button Build Trigger

get it button trigger build

Stan na 07-08-2018. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Jitpack Getit Button Build Trigger
// @namespace    https://github.com/xiaoyao9184/
// @version      0.1
// @description  get it button trigger build
// @license      GPLv3 - http://www.gnu.org/licenses/gpl-3.0.txt
// @author       xiaoyao9184
// @match        https://jitpack.io/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    window.addEventListener("hashchange", function(event){
        var viewPath = location.hash.substr(1);
        var projectPath = owner + "/" + project;
        if(viewPath === projectPath){
            return;
        }
        console.log("Request metadata for auto build: " + viewPath);
        var buildapi = "com/github/" + viewPath + "/maven-metadata.xml";
        $.ajax({
            type: "GET",
            url: buildapi,
            dataType: "xml"
        })
            .done(function(){
                console.log("Version build completed: " + viewPath);
            })
            .fail(function(err){
                console.err("Version build failure: " + viewPath);
            });
	});
})();