A really simple JavaScript script that uses jQuery to extract all the categories from Facebook's "Create a page" page.
Works only on chrome, copies all categories into the clipboard!
- Navigate to the Create a page page.
- jquery-inject the page (only for Chrome).
- Open up your JavaScript console of choice and run the following script:
(function () {
var categories = {};
// Get the value/text of each category <option> on the page
$("select[name=category] option").each(function () {
categories[$(this).val()] = $(this).text();
});
// Delete the "Choose a category" default option
delete categories["0"];
// Print a JSON string of all the categories
copy(JSON.stringify(categories));
})();