Skip to content

Instantly share code, notes, and snippets.

@kaivi
Created December 2, 2017 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaivi/8114cbc2080da78d67c94238af64210d to your computer and use it in GitHub Desktop.
Save kaivi/8114cbc2080da78d67c94238af64210d to your computer and use it in GitHub Desktop.
AWS S3 XML Prettifier
// ==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