Created
February 1, 2011 17:01
-
-
Save mahemoff/806154 to your computer and use it in GitHub Desktop.
Quick GM script to extract CSV of featured apps on Chrome Web Store (GM because Chrome extensions are disabled on Web Store for security reasons). Need to visit each Featured page, hit Extract to append all apps, and show will log them to console.
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 featuredapps | |
// @namespace http://mahemoff.com | |
// @include https://chrome.google.com/webstore/list/featured* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js | |
// ==/UserScript== | |
function extract() { | |
var apps = GM_getValue("apps") || ""; | |
var category = $(".navi-path .navi-item a").eq(1).html(); | |
$(".title-a").each(function() { | |
$link = $(this); | |
var title = $(".mod-tiles-info > b", $link).html(); | |
var url = "https://chrome.google.com" + $link.attr("href"); | |
apps+=[url,category,title].join(","); | |
}); | |
GM_setValue("apps", apps); | |
} | |
$("<button>Extract</button>") | |
.click(extract) | |
.insertBefore($("body").children().eq(0)); | |
$("<button>Clear</button>") | |
.click(function() { GM_deleteValue("apps"); }) | |
.insertBefore($("body").children().eq(0)); | |
$("<button>Show</button>") | |
.click(function() { console.log("apps", GM_getValue("apps")); }) | |
.insertBefore($("body").children().eq(0)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment