// ==UserScript== // @name export app Annie // @namespace annieExport // @version 0.1 // @description 导出起点app评论内容 // @match http://www.appannie.com/apps/ios/app/534174796/reviews/* // @downloadURL https://update.greasyfork.icu/scripts/4223/export%20app%20Annie.user.js // @updateURL https://update.greasyfork.icu/scripts/4223/export%20app%20Annie.meta.js // ==/UserScript== // thanks excellentexport by jmaister var n=String.fromCharCode,p;a:{try{document.createElement("$")}catch(q){p=q;break a}p=void 0} window.btoa||(window.btoa=function(b){for(var g,c,f,h,e,a,d=0,r=b.length,s=Math.max,l="";d>2&63;g=(g&3)<<4|c>>4&15;h=(c&15)<<2|a>>6&3;e=a&63;c?a||(e=64):h=e=64;l+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(g)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)}return l}); window.atob||(window.atob=function(b){b=b.replace(/=+$/,"");var g,c,f,h,e=0,a=b.length,d=[];if(1===a%4)throw p;for(;e>4&3,c=(c&15)<<4|f>>2&15,f=(f&3)<<6|h&63,d.push(n(g)),c&&d.push(n(c)),f&&d.push(n(f));return d.join("")}); ExcellentExport=function(){function b(e,a){return e.replace(RegExp("{(\\w+)}","g"),function(d,e){return a[e]})}var g={excel:"data:application/vnd.ms-excel;base64,",csv:"data:application/csv;base64,"},c={excel:'\x3c!--[if gte mso 9]>{worksheet}{table}
'},f= ",",h="\r\n";return{excel:function(e,a,d){a=a.nodeType?a:document.getElementById(a);var f=g.excel;a=b(c.excel,{a:d||"Worksheet",table:a.innerHTML});a=window.btoa(window.unescape(encodeURIComponent(a)));e.href=f+a;return!0},csv:function(e,a,d,b){void 0!==d&&d&&(f=d);void 0!==b&&b&&(h=b);a=a.nodeType?a:document.getElementById(a);var c="",l,k;for(d=0;d"+v.date+""+v.author+""+v.title+""+v.content+""+v.rating+""+v.version+""); }); if(page_index*mynameSpace.pagesizeExport to Excel').prependTo('.right-align-controls'); clearInterval(intervaltimer); } },1000); } },'json'); } $(document).ready(function(){ //$("").click(function(){ mynameSpace.done = false; $("#export-data-custom").remove(); $('body').append(''); mynameSpace.fetch(1); that = this; //}).appendTo(".widget-addthis"); setInterval(function(){ if(mynameSpace.current!=window.location.search){ mynameSpace.current = window.location.search; $('#my-export').remove(); mynameSpace.done = false; mynameSpace.fetch(1); } },500); });