Skip to content

Instantly share code, notes, and snippets.

@aseemk
Last active February 14, 2018 16:41
Show Gist options
  • Save aseemk/5000668 to your computer and use it in GitHub Desktop.
Save aseemk/5000668 to your computer and use it in GitHub Desktop.

Revisions

  1. aseemk revised this gist Feb 20, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -18,4 +18,4 @@ Hit save, and voila! You can now select/toggle all checkboxes on the S3 console.

    This code is released into the public domain. Enjoy!

    [Aseem Kishore](http://aseemk.com/) at [FiftyThree](http://www.fiftythree.com/)
    [Aseem Kishore](http://aseemk.com/) of [FiftyThree](http://www.fiftythree.com/)
  2. aseemk revised this gist Feb 20, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -18,4 +18,4 @@ Hit save, and voila! You can now select/toggle all checkboxes on the S3 console.

    This code is released into the public domain. Enjoy!

    \- [Aseem Kishore](http://aseemk.com/) at [FiftyThree](http://www.fiftythree.com/)
    [Aseem Kishore](http://aseemk.com/) at [FiftyThree](http://www.fiftythree.com/)
  3. aseemk revised this gist Feb 20, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -18,4 +18,4 @@ Hit save, and voila! You can now select/toggle all checkboxes on the S3 console.

    This code is released into the public domain. Enjoy!

    - [Aseem Kishore](http://aseemk.com/) at [FiftyThree](http://www.fiftythree.com/)
    \- [Aseem Kishore](http://aseemk.com/) at [FiftyThree](http://www.fiftythree.com/)
  4. aseemk revised this gist Feb 20, 2013. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -6,13 +6,15 @@ Only tested in Chrome.

    Installation instructions:

    1) Show bookmarks bar. (cmd+B or ctrl+B)
    1) **View** > **Always Show Bookmarks Bar**.

    2) Right-click on bookmarks bar > "Add Page..."
    2) Right-click bookmarks bar > **Add Page...**

    3) Paste the contents of bookmarklet.js above into the URL field, and give it any name you want, like "S3 check all".
    3) Paste contents of **bookmarklet.js** below into the **URL** field.

    4) Hit save, and voila! You can now select/toggle all checkboxes on the S3 console.
    4) Give it any name, like "S3 check all".

    Hit save, and voila! You can now select/toggle all checkboxes on the S3 console.

    This code is released into the public domain. Enjoy!

  5. aseemk created this gist Feb 20, 2013.
    19 changes: 19 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    For use on:

    https://console.aws.amazon.com/s3/home

    Only tested in Chrome.

    Installation instructions:

    1) Show bookmarks bar. (cmd+B or ctrl+B)

    2) Right-click on bookmarks bar > "Add Page..."

    3) Paste the contents of bookmarklet.js above into the URL field, and give it any name you want, like "S3 check all".

    4) Hit save, and voila! You can now select/toggle all checkboxes on the S3 console.

    This code is released into the public domain. Enjoy!

    - [Aseem Kishore](http://aseemk.com/) at [FiftyThree](http://www.fiftythree.com/)
    7 changes: 7 additions & 0 deletions bookmarklet.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    javascript:(function () {
    document.domain = 'console.aws.amazon.com';
    var spans = document.querySelector('iframe').contentDocument.querySelectorAll('tr.list-view-item[type] span.inner');
    [].slice.call(spans).forEach(function (span) {
    span.click();
    });
    })();
    12 changes: 12 additions & 0 deletions source.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    // The actual console is in an iframe from a different origin.
    // Fortunately, they share the same TLD, and the iframe sets document.domain,
    // so we're able to set ours to the same value. (And we need to.)
    document.domain = 'console.aws.amazon.com';

    // Grab all checkboxes...
    var spans = document.querySelector('iframe').contentDocument.querySelectorAll('tr.list-view-item[type] span.inner');

    // ...and click them all:
    [].slice.call(spans).forEach(function (span) {
    span.click();
    });