Skip to content

Instantly share code, notes, and snippets.

@bidulock
Last active August 29, 2015 14:14
Show Gist options
  • Save bidulock/32ef73d5c1c64a7100bd to your computer and use it in GitHub Desktop.
Save bidulock/32ef73d5c1c64a7100bd to your computer and use it in GitHub Desktop.
Upload progress
javascript:(function () {
var $ = jQuery;
var styles = [
"position: fixed;",
"top: 0; right: 0; z-index: 1000;",
"width: 200px; height: 30px; line-height: 30px;",
"font-size: 14px; text-align: center;",
"background: rgba(0,0,0,0.3);"
];
var el = $("<div style='" + styles.join(' ') + "'></div>");
$('body').append(el);
var progress = function () {
el.html(
$("mm-col:contains('Loaded')").length + " done " +
$("mm-col:contains('Queued for Loading')").length + " remaining"
);
};
progress();
setInterval(progress, 5000);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment