🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Android Developer Console

Adds some links helpful to developers in the Android Market

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

// ==UserScript==
// @name          Android Developer Console
// @description   Adds some links helpful to developers in the Android Market
// @include       https://play.google.com/*
// @match         https://play.google.com/*
// @version       5.1
// @author        Afzal Najam
// @changelog     Modified for new Play Store
// @require       http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js
// @grant         GM_setValue
// @grant         GM_getValue
// @grant         GM_listValues
// @grant         GM_deleteValue
// @grant         GM_log
// @namespace https://greasyfork.org/users/4370
// ==/UserScript==

myOrders = $('li[jsinstance ^="0"]');
if (myOrders) {
    listitem = document.createElement('div');
    listitem.className = 'leaf-submenu-link-wrapper';
    devlink = document.createElement('a');
    devlink.className = 'leaf-submenu-link';
    devlink.setAttribute('href', 'https://play.google.com/apps/publish/');
    devlink.setAttribute('target', '_blank');
    devlink.innerHTML = 'My developer console';

    listitem.appendChild(devlink);
    myOrders.after(listitem);
}

if (window.location.hash.indexOf("AppListPlace") > 0) {
    archiveItems();
}

function archiveItems() {
    updateP = $("p[data-column*='UPDATE']");

    if (updateP) {
        var archiveLink = $('<a>', {
            href: "#test",
            style: "background: no-repeat url(//ssl.gstatic.com/mail/sprites/general_black-16bf964ab5b51c4b7462e4429bfa7fe8.png) 0 -17px; width: 25px; height: 25px; display: inline-block; vertical-align: -50%;",
            onclick: "GM_setValue('hiddenApps', 'testing')",
        });
        updateP.prepend(archiveLink);
    } else {
        console.log("updateP not found");
    }
    var vals = [];
    var values = GM_listValues();
    for (var i = 0; i < values.length; i++) {
        vals.push(GM_getValue(GM_listValues()[i]));
    }
    GM_log(vals);
}

function resetArchived() {
    GM_deleteValue("hiddenApps");
}

function setArchived(appName) {
    GM_setValue("hiddenApps", appName);
}

function showStoreLink() {
    pubButton = $("button>*:contains('Published')");
    if (pubButton.length > 0) {
        appName = window.location.hash.split("=")[1];
        element = pubButton.parent().parent().parent().next().next();
        link = "https://play.google.com/store/apps/details?id=" + appName;
        element.html("- ");
        $('<a>', {
            text: appName,
            href: link,
        }).appendTo(element);
    }
}

function locationHashChanged() {
    locationHash = window.location.hash;
    if (locationHash.indexOf("AppListPlace") > 0) {
        console.log("archive icons");
        archiveItems();
    } else if (locationHash.indexOf(":p=") > 0) {
        showStoreLink();
    }
}

window.addEventListener("hashchange", locationHashChanged);