Guest User

Untitled

a guest
Nov 17th, 2016
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Kimsufi Checker
  3. // @namespace api.check100.xyz
  4. // @include http://api.check100.xyz/kimsufi/kimsufi-checking.php
  5. // @version 1
  6. // @grant none
  7. // ==/UserScript==
  8.  
  9. // Replace Javascript with Translated version, taken from v 201511190419
  10. unsafeWindow.soldoutresult = function(cid,curl,cmatchcontent,cyesorno,cmatchtype,response) {
  11. responsearr = response.split("$");
  12. if(responsearr[0].indexOf("havegoods")>=0){
  13. jQuery("#id"+cid).html("<font color='red' style='font-size:16px' ><b>In Stock</b></font>");
  14. jQuery("#dt"+cid).html(responsearr[1]);
  15. jQuery("#pretest"+cid).html(responsearr[2]);
  16. jQuery("#lj"+cid).css('display','block');
  17. if(jQuery("#tx"+cid).is(':checked')){
  18. jQuery("#mp3")[0].play();
  19. }
  20. }
  21. else if(responsearr[0].indexOf("soldout")>=0){
  22. jQuery("#id"+cid).html("<font color='blue' style='font-size:12px'>Out of Stock</font>");
  23. jQuery("#pretest"+cid).html(responsearr[2]);
  24. }
  25. else{
  26. jQuery("#id"+cid).html(responsearr[0]);
  27. }
  28. };
  29.  
  30. // HTML Translations
  31. document.body.innerHTML= document.body.innerHTML.replace(/名称/gi, 'Name');
  32. document.body.innerHTML= document.body.innerHTML.replace(/状态/gi, 'Status');
  33. document.body.innerHTML= document.body.innerHTML.replace(/上次检查时间/gi, 'Last Check');
  34. document.body.innerHTML= document.body.innerHTML.replace(/是否提醒/gi, 'Remind?');
  35. document.body.innerHTML= document.body.innerHTML.replace(/上次有货时间/gi, 'Last Available?');
  36. document.body.innerHTML= document.body.innerHTML.replace(/购买链接/gi, 'Link');
  37. document.body.innerHTML= document.body.innerHTML.replace(/特价/gi, 'Special');
  38. document.body.innerHTML= document.body.innerHTML.replace(/音乐提醒/gi, 'Music Reminder');
  39. document.body.innerHTML= document.body.innerHTML.replace(/准备开始/gi, 'Ready');
  40. document.body.innerHTML= document.body.innerHTML.replace(/播放/gi, 'Play');
  41. document.body.innerHTML= document.body.innerHTML.replace(/停止/gi, 'Stop');
Advertisement
Add Comment
Please, Sign In to add comment