Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Kimsufi Checker
- // @namespace api.check100.xyz
- // @include http://api.check100.xyz/kimsufi/kimsufi-checking.php
- // @version 1
- // @grant none
- // ==/UserScript==
- // Replace Javascript with Translated version, taken from v 201511190419
- unsafeWindow.soldoutresult = function(cid,curl,cmatchcontent,cyesorno,cmatchtype,response) {
- responsearr = response.split("$");
- if(responsearr[0].indexOf("havegoods")>=0){
- jQuery("#id"+cid).html("<font color='red' style='font-size:16px' ><b>In Stock</b></font>");
- jQuery("#dt"+cid).html(responsearr[1]);
- jQuery("#pretest"+cid).html(responsearr[2]);
- jQuery("#lj"+cid).css('display','block');
- if(jQuery("#tx"+cid).is(':checked')){
- jQuery("#mp3")[0].play();
- }
- }
- else if(responsearr[0].indexOf("soldout")>=0){
- jQuery("#id"+cid).html("<font color='blue' style='font-size:12px'>Out of Stock</font>");
- jQuery("#pretest"+cid).html(responsearr[2]);
- }
- else{
- jQuery("#id"+cid).html(responsearr[0]);
- }
- };
- // HTML Translations
- document.body.innerHTML= document.body.innerHTML.replace(/名称/gi, 'Name');
- document.body.innerHTML= document.body.innerHTML.replace(/状态/gi, 'Status');
- document.body.innerHTML= document.body.innerHTML.replace(/上次检查时间/gi, 'Last Check');
- document.body.innerHTML= document.body.innerHTML.replace(/是否提醒/gi, 'Remind?');
- document.body.innerHTML= document.body.innerHTML.replace(/上次有货时间/gi, 'Last Available?');
- document.body.innerHTML= document.body.innerHTML.replace(/购买链接/gi, 'Link');
- document.body.innerHTML= document.body.innerHTML.replace(/特价/gi, 'Special');
- document.body.innerHTML= document.body.innerHTML.replace(/音乐提醒/gi, 'Music Reminder');
- document.body.innerHTML= document.body.innerHTML.replace(/准备开始/gi, 'Ready');
- document.body.innerHTML= document.body.innerHTML.replace(/播放/gi, 'Play');
- document.body.innerHTML= document.body.innerHTML.replace(/停止/gi, 'Stop');
Advertisement
Add Comment
Please, Sign In to add comment