Created
December 2, 2017 14:53
-
-
Save kaivi/8114cbc2080da78d67c94238af64210d to your computer and use it in GitHub Desktop.
AWS S3 XML Prettifier
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 AWS S3 Listing prettifier | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @author Kai | |
// @match http*://*.amazonaws.com/* | |
// @grant none | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js | |
// @require https://rawgit.com/rufuspollock/s3-bucket-listing/gh-pages/list.js | |
// @run-at document-end | |
// ==/UserScript== | |
(function() { | |
var listing = document.createElement("div"); | |
listing.id = "listing"; | |
$(document.body).empty(); | |
$(listing).appendTo(document.body); | |
// var BUCKET_NAME = 'BUCKET'; | |
// var S3_REGION = 's3'; // for us-east-1 | |
var BUCKET_URL = window.location.host; | |
var S3B_ROOT_DIR = 'SUBDIR_L1/SUBDIR_L2/'; | |
var S3B_SORT = 'DEFAULT'; | |
var EXCLUDE_FILE = 'index.html'; | |
var AUTO_TITLE = true; | |
var S3BL_IGNORE_PATH = true; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment