Liens utiles et à partager
Liens utiles et à partager
Tag cloud
Daily
RSS Feed
Login
Remember me
4368
shaares
4368
shaares
Filters
Links per page
20
50
100
table2csv
Adds a "Export to CSV" button to all HTML tables on the page
bmlet
·
bookmarklet
·
CSV
·
table
January 13, 2022 03:26:18 PM GMT+01:00 * ·
permalink
javascript://void%20function(){function%20e(e,t){var%20a=document.createElement("script");a.src=e;var%20n=document.getElementsByTagName("head")[0],o=!1;a.onload=a.onreadystatechange=function(){o||this.readyState%26%26"loaded"!=this.readyState%26%26"complete"!=this.readyState||(o=!0,t(),a.onload=a.onreadystatechange=null,n.removeChild(a))},n.appendChild(a)}function%20t(){jQuery(".csvLink").remove(),jQuery("table").each(function(e){jQuery(this).attr("data-csvtable",e).before('<a%20href="%23"%20class="csvLink"%20data-forcsvtable="'+e+'">Export%20to%20CSV</a>')}),jQuery(".csvLink").click(function(){var%20e="",t=jQuery(this).attr("data-forcsvtable");jQuery('table[data-csvtable="'+t+'"]%20tr').each(function(){jQuery("td,%20th",this).each(function(t){0!=t%26%26(e+=","),e+='"'+jQuery(this).text().replace(/\xa0/g,"%20").replace(/\r%3F\n|\r/g,"").replace(/"/g,'""')+'"'}),e+="\r\n"}),jQuery(".csvLink").remove(),a("TableExport.csv","text/csv",e)})}function%20a(e,t,a){if(window.navigator.msSaveOrOpenBlob){var%20n=new%20Blob([decodeURIComponent(encodeURI(a))],{type:"text/csv;charset=utf-8"});window.navigator.msSaveBlob(n,e)}else{var%20o=document.createElement("a");o.setAttribute("href","data:"+t+";charset=utf-8,"+encodeURIComponent(a)),o.setAttribute("download",e),document.body.appendChild(o),o.click(),document.body.removeChild(o)}}"undefined"==typeof%20jQuery%3Fe("//code.jquery.com/jquery-latest.min.js",function(){t()}):t()}();
Filters
Links per page
20
50
100
Fold
Fold all
Expand
Expand all
Are you sure you want to delete this link?
Are you sure you want to delete this tag?
The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community