Untitled
unknown
plain_text
a year ago
2.4 kB
2
Indexable
Never
javascript:var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(a){return a.raw=a};$jscomp.createTemplateTagFirstArgWithRaw=function(a,d){a.raw=d;return a};$jscomp.arrayIteratorImpl=function(a){var d=0;return function(){return d<a.length?{done:!1,value:a[d++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.makeIterator=function(a){var%20d=%22undefined%22!=typeof%20Symbol&&Symbol.iterator&&a[Symbol.iterator];return%20d?d.call(a):$jscomp.arrayIterator(a)};%20(function(){function%20a(b){b.forEach(function(c){c.product_items&&c.product_items.forEach(function(e){f[e.model_name]?f[e.model_name]++:f[e.model_name]=1})})}function%20d(){var%20b=Object.fromEntries(Object.entries(f).sort(function(c,e){var%20g=$jscomp.makeIterator(c);g.next();g=g.next().value;var%20m=$jscomp.makeIterator(e);m.next();return%20m.next().value-g}));console.info(%22\u0110\u00e3%20ho\u00e0n%20t\u1ea5t.%20K\u1ebft%20qu\u1ea3:%22);console.table(b)}function%20n(){var%20b=%22https://shopee.vn/api/v2/item/get_ratings?filter=0&flag=1&itemid=%22+%20k+%22&limit=50&offset=%22+p+%22&shopid=%22+l+%22&type=0%22;console.log(%22\u0110ang%20qu\u00e9t%20trang%20%22+h+%22...%22);fetch(b,{headers:{%22x-api-source%22:%22pc%22,%22x-requested-with%22:%22XMLHttpRequest%22,%22x-shopee-language%22:%22vi%22},method:%22GET%22,mode:%22cors%22,credentials:%22include%22}).then(function(c){return%20c.json()}).then(function(c){c.error||!c.data||0===c.data.ratings.length?1%3Ch&&d():(a(c.data.ratings),50%3Eh?(p+=50,h++,n()):d())})}var%20f={},p=0,h=1,l=null,k=null;console.info(%22Chia%20s\u1ebb%20b\u1edfi%20M\u1ea1nh%20Tu\u1ea5n%20t\u1eeb%20nh\u00f3m%20J2TEAM%20Community%20-%20https://www.facebook.com/groups/j2team.community%22);%20(function(){var%20b=new%20URL(window.top.location.href);if(!b.hostname.includes(%22shopee.vn%22))throw%20Error(%22\u0110o\u1ea1n%20m\u00e3%20n\u00e0y%20ch\u1ec9%20c\u00f3%20th\u1ec3%20s\u1eed%20d\u1ee5ng%20tr\u00ean%20web%20Shopee.vn%22);if(b=/.+-i\.([0-9]+).([0-9]+)/.exec(b.pathname))l=b[1],k=b[2];else%20throw%20Error(%22Trang%20b\u1ea1n%20\u0111ang%20xem%20kh\u00f4ng%20ph\u1ea3i%20l\u00e0%20m\u1ed9t%20trang%20s\u1ea3n%20ph\u1ea9m%20c\u1ee7a%20Shopee.%22);})();console.info(%22B\u1eaft%20\u0111\u1ea7u%20ph\u00e2n%20t\u00edch%20v\u1edbi%20Shop%20ID%20%22+l+%22%20v\u00e0%20m\u00e3%20s\u1ea3n%20ph\u1ea9m%20%22+%20k+%22...%22);n()})();