Android Developer Console

Adds some links helpful to developers in the Android Market

  1. // ==UserScript==
  2. // @name Android Developer Console
  3. // @description Adds some links helpful to developers in the Android Market
  4. // @include https://play.google.com/*
  5. // @match https://play.google.com/*
  6. // @version 5.1
  7. // @author Afzal Najam
  8. // @changelog Modified for new Play Store
  9. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js
  10. // @grant GM_setValue
  11. // @grant GM_getValue
  12. // @grant GM_listValues
  13. // @grant GM_deleteValue
  14. // @grant GM_log
  15. // @namespace https://gf.qytechs.cn/users/4370
  16. // ==/UserScript==
  17.  
  18. myOrders = $('li[jsinstance ^="0"]');
  19. if (myOrders) {
  20. listitem = document.createElement('div');
  21. listitem.className = 'leaf-submenu-link-wrapper';
  22. devlink = document.createElement('a');
  23. devlink.className = 'leaf-submenu-link';
  24. devlink.setAttribute('href', 'https://play.google.com/apps/publish/');
  25. devlink.setAttribute('target', '_blank');
  26. devlink.innerHTML = 'My developer console';
  27.  
  28. listitem.appendChild(devlink);
  29. myOrders.after(listitem);
  30. }
  31.  
  32. if (window.location.hash.indexOf("AppListPlace") > 0) {
  33. archiveItems();
  34. }
  35.  
  36. function archiveItems() {
  37. updateP = $("p[data-column*='UPDATE']");
  38.  
  39. if (updateP) {
  40. var archiveLink = $('<a>', {
  41. href: "#test",
  42. 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%;",
  43. onclick: "GM_setValue('hiddenApps', 'testing')",
  44. });
  45. updateP.prepend(archiveLink);
  46. } else {
  47. console.log("updateP not found");
  48. }
  49. var vals = [];
  50. var values = GM_listValues();
  51. for (var i = 0; i < values.length; i++) {
  52. vals.push(GM_getValue(GM_listValues()[i]));
  53. }
  54. GM_log(vals);
  55. }
  56.  
  57. function resetArchived() {
  58. GM_deleteValue("hiddenApps");
  59. }
  60.  
  61. function setArchived(appName) {
  62. GM_setValue("hiddenApps", appName);
  63. }
  64.  
  65. function showStoreLink() {
  66. pubButton = $("button>*:contains('Published')");
  67. if (pubButton.length > 0) {
  68. appName = window.location.hash.split("=")[1];
  69. element = pubButton.parent().parent().parent().next().next();
  70. link = "https://play.google.com/store/apps/details?id=" + appName;
  71. element.html("- ");
  72. $('<a>', {
  73. text: appName,
  74. href: link,
  75. }).appendTo(element);
  76. }
  77. }
  78.  
  79. function locationHashChanged() {
  80. locationHash = window.location.hash;
  81. if (locationHash.indexOf("AppListPlace") > 0) {
  82. console.log("archive icons");
  83. archiveItems();
  84. } else if (locationHash.indexOf(":p=") > 0) {
  85. showStoreLink();
  86. }
  87. }
  88.  
  89. window.addEventListener("hashchange", locationHashChanged);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址