Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

ActiveTable is a bookmarklet that makes any table sortable. It also allows you to remove columns, and it remembers the removed columns for next time. Use alt+click to UNhide all columns (and clear memory). To use it, create a bookmark called "ActiveTable" that has this URL: javascript:(function(){ var jselem=document.createElement('SCRIPT'); jselem.type='text/javascript'; jselem.src='https://gist.github.com/stevesouders/5952488/raw/activetable.js'; document.getElementsByTagName('head')[0].appendChild(jselem); })();

Very impressive. Thanks.

Because GitHub no longer serves raw files with the correct MIME type (see https://github.com/blog/1482-) you will receive this message in your Browser console when trying to load this bookmarklet using the code above.

Chrome Console Error:
Refused to execute script from ... because its MIME type (text/plain) is not executable, and strict MIME type checking is enabled.

The suggested solution is to either host the activetable.js file yourself or use RawGit (see http://stackoverflow.com/questions/17341122/link-and-execute-external-javascript-file-hosted-on-github) to fix the MIME type issue

Using RawGit (per @tom-jackson's comment above), add a bookmarklet with this address:

javascript:(function(){ var jselem=document.createElement('SCRIPT'); jselem.type='text/javascript'; jselem.src='https://rawgit.com/stevesouders/5952488/raw/activetable.js'; document.getElementsByTagName('head')[0].appendChild(jselem); })();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.