// ==UserScript== // @name Indowebster GET Link // @namespace http://userscripts.org/scripts/show/69049 // @include http://*.indowebster.com/*.html // @include http://*.indowebster.com/download* // @exclude http://ads.indowebster.com* // @version 12022527 // @description (Indowebster) automatically get download link // @author idx (http://userscripts.org/users/idx) // // Indowebster Link Download // // Copyright (c) 2009, Idx // Released under the GPL license // http://www.gnu.org/copyleft/gpl.html // -------------------------------------------------------------------- // Mod By: Idx // ============== // // mod.R-27 : 2012-02-25 // adapting changed dom. Thx Pinky // deploy compressed version // // mod.R-26 : 2012-01-21 // adapting idws gongxi theme // // -------------------------------------------------------------------- // ==/UserScript== (function(){function J(){if(!s("body")[0]||!s("body")[0].innerHTML)j("Failed finding body..");else{var a=f.get("isi_fileinfo2");a&&(a=a.innerHTML.replace(/\r|\n|\r\n/g,""));c.dlwidth=f.get("kiri")?f.get("kiri").style.width:"100%";var b;a?(b=a.split("INFOLINKS_OFF"),(nemu=/(?:Server(?:[^(?:ID:)]+)ID\:(?:[^>]+)>(?:\s|)*(\d{1,2}))\b/ig.exec(b[1]))&&(c.fileinfo[1]=nemu[1]),(nemu=/Size(?:[^\s]+).(?:[^\d]+)([^<]+)/.exec(b[1]))&&(c.fileinfo[3]=nemu[1]),(nemu=/(?:(?:Original\sname:(?:\s*|)(?:(?:<(?:[^>]+)>)))(?:\s*|)(?:(?:<(?:[^>]+)>)|)(?:\s*|)([^><]+)(?:\s*|<\/div>|))/ig.exec(b[1]))&& (c.fileinfo[0]=nemu[1].replace(/^\s*([\S\s]*?)\s*$/,"$1").replace(/\s/g,"_").replace(/[^a-zA-Z0-9\s\.\_\-\[\]\(\)]+/g,"")),(nemu=/Title:(?:[^_]+)\_O\w{1,2}--\>((?:[^<]+))/i.exec(b[0]))&&(c.fileinfo[2]=nemu[1].substring(0,-1!=nemu[1].indexOf(",")?nemu[1].indexOf(","):nemu[1].length-1)),j("FileInfo : "+c.fileinfo[0]+" ::: "+c.fileinfo[1]+" ::: "+c.fileinfo[2]+" ::: "+c.fileinfo[3]),b=!c.fileinfo[0]||!c.fileinfo[1]||!c.fileinfo[2]||!c.fileinfo[3]?!1:!0):b=!1;b?(K(f.get("fileinfo")),c._3rdPartyChecker&& !c.notSafe?(r("Trying Fetch download link w/ 3rdParty link checker..."),c.nxUri=location.href,A()):(r(c._3rdPartyChecker?"unSafeBrowser, Failed use 3rdParty link checker, switch download-mode...":"Fetch download link"),c.nxUri=B(a).replace("&","&"),w()),L()):j("Failed getInfo(bingkai), content might be changed.")}}function C(a){n(a)?(i.uri=c.dmIDWS+c.nxUri,i.cached=!0,i.request(null,"GET",C)):(c.counter=5,c.parsed=M(a),u(N))}function N(){var a,b,e,d=c.parsed;if(a=h(c.tgt_str))"gongxi"==c.theme&& 1==a.length?(a=a[0],a.firstChild.value="[1] Generate Link.."):a.value="Generate Link..";e='$.post("'+d.post_url+'", {';b=d.params.length;for(a=0;a<b;a++)e+=d.params[a]+':"'+d.values[a]+'",';e+='},function(r){var tt, tgt="'+c.tgt_str+'", audl="'+("1"==c.autodownload?"1":"0")+'";'+("gongxi"==c.theme?'$(tgt).attr("href", r); $(tgt).find("input").val("Download Rede");':'$(tgt).val("Download Rede"); $(tgt).parent().attr("href", r);')+'if(audl=="1") $(tgt).click();tt=$("title").html();$("title").html("[OK] "+tt)});'; a=k("script",{type:"text/javascript"},!1,e);document.body.appendChild(a);b=h('//div[contains(@class, "grid_8 alpha omega")]',null,1);e=k("div",{style:"float:left;margin:3px 0; width:100%; border-top:1px solid #ddd"},!1);a={href:c.script_link,target:"_blank",title:"Home Indowebster Get Link",style:""};a=k("a",a,!1,"<b>.: IDWS Get Link :.</b> "+x("—")+" "+c.vver);e.appendChild(a);a={id:"filenamenya",value:d.filename,readonly:"readonly",style:"text-align:left;width:100%;padding:2px;font-family:monospace,tahoma;font-size:0.9em;border:1px solid #A8A8A8;background-color:#FEEB9E;"}; a=k("input",a);o.add(a,"focus",function(a){a=a.target||a;a.select()});o.add(a,"keydown",function(a){a=!a?window.event:a;if(13==(a.keyCode?a.keyCode:a.charCode))a=h(c.tgt_str),"gongxi"==c.theme&&(a=a[0]),a&&y(a,"click",!0)});e.appendChild(a);b.appendChild(e);b=h('//div[contains(@class, "block al_c")]',null,1);b.setAttribute("style","position:relative");e=k("label",{"for":"chk_auto_dl",style:"position:absolute; right:10px;"});a={id:"chk_auto_dl",type:"checkbox"};"1"==c.autodownload&&(a.checked="checked"); a=k("input",a);o.add(a,"click",function(a){a=a.target||a;!z.IDWS_AUTODOWNLOAD||GM_setValue("IDWS_AUTODOWNLOAD",a.checked?"1":"0")});e.appendChild(a);e.appendChild(document.createTextNode(" Auto-Download"));b.appendChild(e);u(null)}function D(a){if(n(a))i.uri=c.dmIDWS+c.nxUri,i.cached=!0,i.request(null,"GET",D);else{var b,e,d,a=O(a);if(b=h("#downloadBtn"))b.value="Download Now";if(b=b.parentNode)b.href=a.drlink;b=h('//div[contains(@class, "grid_8 alpha omega")]',null,1);e=k("div",{style:"float:left;margin:3px 0; width:100%; border-top:1px solid #ddd"}, !1);d={href:c.script_link,target:"_blank",title:"Home Indowebster Get Link",style:""};d=k("a",d,!1,"<b>.: IDWS Get Link :.</b> "+x("—")+" "+c.vver);e.appendChild(d);d={id:"filenamenya",value:a.filename,readonly:"readonly",style:"text-align:left;width:100%;padding:2px;font-family:monospace,tahoma;font-size:0.9em;border:1px solid #A8A8A8;background-color:#FEEB9E;"};d=k("input",d);o.add(d,"focus",function(a){a=a.target||a;a.select()});o.add(d,"keydown",function(a){a=!a?window.event: a;if(13==(a.keyCode?a.keyCode:a.charCode)){a=h("#downloadBtn");if("Download Now"!=a.value)return!1;y(a,"click",!0)}});e.appendChild(d);b.appendChild(e);b=h('//div[contains(@class, "block al_c")]',null,1);b.setAttribute("style","position:relative");e=k("label",{"for":"chk_auto_dl",style:"position:absolute; right:10px;"});d={id:"chk_auto_dl",type:"checkbox"};"1"==c.autodownload&&(d.checked="checked");d=k("input",d);o.add(d,"click",function(a){a=a.target||a;!z.IDWS_AUTODOWNLOAD||GM_setValue("IDWS_AUTODOWNLOAD", a.checked?"1":"0")});e.appendChild(d);e.appendChild(document.createTextNode(" Auto-Download"));b.appendChild(e);"1"==c.autodownload&&window.setTimeout(function(){var a=h("#downloadBtn");if(a){var a=a.parentNode,a=a.href,b=h("#fake_iframe");b?b.setAttribute("src",a):(b=k("iframe",{id:"fake_iframe",src:a,style:"height:0;width:0;border:0;position:absolute:left:-10000px;"}),h("//body",null,1).appendChild(b))}},2E3)}}function u(a){var b,e;b="[%d] %t".replace(/(?:\%d)/,c.counter).replace(/(?:\%t)/,c.ctitle); (""+c.donlot).replace(/(?:\%d)/,c.counter);e=h("//title",null,1).innerHTML;0<c.counter&&"rede"!=e?(c.counter--,h("//title",null,1).innerHTML=b,c.wait_interval=window.setTimeout(function(){u(a)},1E3)):(h("//title",null,1).innerHTML=c.ctitle,"function"==typeof a&&a())}function E(a){n(a)?(i.uri=c.dmIDWS+c.nxUri,i.cached=!0,i.request(null,"GET",E)):(a=P(a),c.counter=a.delay,c.drlink=a.drlink,c.filename=a.filename,a=h("#download"),el=k("input",{id:"filenamenya",value:c.filename,readonly:"readonly",style:"text-align:left;width:100%;padding:2px;font-family:monospace,tahoma;font-size:0.9em;border:1px solid #A8A8A8;background-color:#FEEB9E;"}), o.add(el,"focus",function(a){a=a.target||a;a.select()}),o.add(el,"keydown",function(a){a=!a?window.event:a;if(13==(a.keyCode?a.keyCode:a.charCode)){a=h('.//a/input[contains(@value,"Download")]',null,1);if("Download Ready"!=a.value)return!1;y(a,"click",!0)}}),a.parentNode.appendChild(el),u(function(){var a=h('.//a/input[contains(@value,"Download")]',null,1);h("//title",null,1).innerHTML=c.ctitle;a.value="Download Ready";clearTimeout(c.wait_interval);if(a=h("#download"))a.href=c.drlink}),h("#filenamenya")&& h("#filenamenya").focus())}function w(a){if(""!=c.nxUri)if(n(a))i.uri=c.dmIDWS+c.nxUri,i.cached=!0,i.request(null,"GET",w);else{var b;b=a.responseText;a=!1;if(b=b.match(/id=[\'\"]link\-download[^<]+.a\s*href=[\"\']([^\'\"]+)/i))a=b[1];a?F(a):(r("Failed get download link"),j("Failed get download link"))}}function A(a,b){if(a){var e;"object"==typeof a?(e=RegExp("(http:\\/\\/www(?:[\\d]{1,2})\\."+c.idws+'\\.com\\/(?:[^"]+))',"gi").exec(a.responseText))&&t(e[1])?e=e[1]:(j("Direct Link not found"),e=!1): e=a;if(e)f.get("chk_autorename")||c.autorename&&(e=autorename_link(e)),F(e);else{j("Failed get Direct Link from 3rdParty, trying with universe...");r("Failed get Direct Link from 3rdParty, trying with universe...");if(e=f.get("chk_autorename_single"))e.removeAttribute("checked"),e.setAttribute("disabled","true"),e.style.display="none",f.get("lb_chk_autorename").innerHTML="Auto Rename disabled",f.get("lb_chk_autorename").setAttribute("title","Failed get Direct Link from 3rdParty");(e=f.get("isi_fileinfo2"))&& (e=e.innerHTML.replace(/\r|\n|\r\n/g,""));c.nxUri=B(e).replace("&","&");w()}}else{if(e=c.nxUri){var d=e;e.match(/(?:^http:\/\/www\.)indowebster\.com\/.+/)||-1==e.indexOf("http://www.")&&(d=-1!=e.indexOf("http://")?e.replace(/^http:\/\//i,"http://www."):-1!=e.indexOf("www.")?e.replace(/^www\./i,"http://www."):e.replace(/^indowebster\.com\//i,"http://www."+c.idws+".com/"));e=d}else e=!1;c.nxUri=e;c.nxUri?(i.uri=c._3rdPartyURI+"&url="+c.nxUri,i.cached=!1,i.request("url="+c.nxUri+"&page=indowebster", "GET","function"==typeof b?b:A)):"function"==typeof b&&b("badlink")}}function F(a){var b;b=f.get("download_link");b.innerHTML="";a=k("a",{href:a,"class":"tn_button1",title:"Download: "+c.fileinfo[2]+" :: "+c.fileinfo[3]},!1,"Download");b.appendChild(a);r("Direct link fetched.")}function M(a){var b,a=a.responseText,e;b=a.split("earTi");e={post_url:"",filename:"",params:[],values:[]};a=b[0].replace(/[\n\r\t]/g,"");if(a=/id=[\'\"]filename[^>]+.([^<]+)/i.exec(a))e.filename=a[1];a=b[1];if(a=/\$\.post\([\'\"]([^\'\"]+)[^\w]+((?:[^\:]+).[\'\"](?:[^\'\"]+)[^\,]+){4}/gim.exec(a))e.post_url= a[1],b=a[0].replace(/\$\.post\([\'\"]([^\'\"]+)[^\w]+/gi,""),b=b.replace(/(?:(\w+[^\:]+).[\'\"]([^\'\"]+).(?:[,\s]+)?)/gi,function(a,b,c){e.params.push(b);e.values.push(c);return""});return e}function O(a){var a=a.responseText,b={};if(a=a.match(/var\s?l\s?=\s?Array\(([^\)]+)/i)){b.drlink=JSON.parse("["+a[1]+"]");var c,a={},d=b.drlink,g;c=function(a,b){var c=a[b];d.splice(b,1);return c};a.fn_www=c(d,0);g=d.length;a.dvip=c(d,0);g=d.length;a.dmn=c(d,g-1);g=d.length;a.fn_path=c(d,g-1);g=d.length;a.fid= c(d,g-1);c="http://"+a.dmn+"/"+a.dvip+"/"+a.fid+"/"+function(a){for(var b="",c=a.length-1;0<=c;c--)b+=a[c]+"/";return b}(d)+a.fn_path+"/"+a.fn_www;b.drlink=c;b.filename=a.fn_www}return b}function P(a){var a=a.responseText,b,c={};if(b=a.match(/var\s+sec[\s=]+(\d+);/i))c.delay=b[1];if(b=a.match(/id=[\'"]link\-download[\'\"][^<]+.a\s*(?:(?:class|style)=[\'\"]+[^\'\"]+.\s+)*href=[\'\"]([^\'\"]+)/i))c.drlink=b[1];if(b=a.match(/YOU\sARE\sDOWNLOADING[\s\:]+(?:<(?:br|b)(?:[\s\/]+)?>)+([^<]+)/i))c.filename= b[1];return c}function B(a){return(a=/href=\"(download(?:[^"]+))/i.exec(a))?a[1]:!1}function K(a){if(!a)return!1;var b,e,d;b={id:"getlink_container",style:" width:"+c.dlwidth+";padding:2px;float:right;border:2px solid #7E7E7E;background-color:#DDDDDD;"};d=k("div",b);b={id:"download_link",style:"text-align:right; font-weight:bold; padding:5px 30px 0 0; border-top:3px inset "+Q("GARIS")+"; white-space: nowrap; !important;"};e=k("div",b,!1,"<blink>loading...</blink>");b={value:c.fileinfo[0],readonly:"readonly", style:"text-align:left;width:87%;padding:2px;font-family:monospace,tahoma;font-size:0.9em;border:1px solid #A8A8A8;background-color:#FEEB9E;"};b=k("input",b);o.add(b,"focus",function(a){a=a.target||a;a.select()});d.appendChild(b);c._3rdPartyChecker&&!c.notSafe&&create_autorename(d,"single");b={href:c.script_link,target:"_blank",title:"Home Indowebster Get Link",style:"float:left;margin:15px 0 10px 0;"};b=k("a",b,!1,"<b>.: IDWS Get Link :.</b> "+x("—")+" "+c.vver);d.appendChild(b); d.appendChild(document.createTextNode(" ("+c.fileinfo[3]+")"));d.appendChild(e);a.insertBefore(d,a.childNodes[0]);d=f.get("embed");b={id:"log_link",style:"width:100%;text-align:right;padding:0 0 5px 0;font-family:monospace,tahoma;"};b=k("div",b);o.add(b,"click",function(){window.setTimeout(function(){r(" ")},200)});d.insertBefore(b,d.firstChild);a=G(f.get("menubar"));scrollTo(0,a)}function L(){try{var a=null,b,c=s("script"),d;s("body");for(I=0,d=c.length;I<d;I++)if(null!=c[I].src.match(/\/infolinks_main\d?\.js$/)){c[I].src= "";break}f.remove(f.get("tr_iklanbaris2"));f.remove(f.get("showpaper"));f.remove(f.get("iklan_atas"));window.setTimeout(function(){f.get("AdsAtas")&&(f.get("AdsAtas").innerHTML="");f.remove(f.get("AdsAtas"))},1E3);f.remove(f.get("AdsKanan_inline"));f.remove(f.get("tagCloud"));f.remove(f.get("iklankiri"));f.get("iklankiri")&&(f.get("iklankiri").style.display="none");f.get("iklankiri")&&(f.get("iklankiri").style.width="0px");f.remove(f.get("FFN_imBox_Container"));a=f.get("Yesup_Adhere_Widget");try{a.style.display= "none",a.innerHTML=""}catch(g){}f.get("fileinfo")&&f.get("fileinfo").setAttribute("style","margin-bottom:20px !important;");f.get("fixed-top-ads")&&(f.remove("fixed-top-ads"),m(/height\:(?:\s|)42p/i,"style","div"));a=H("//img[contains(@src,'indowebsterproses.jpg')]");a.snapshotItem(0)&&(b=a.snapshotItem(0),b.setAttribute("style","width:200px;height:120px;"));a=H("//div[contains(@style,'610px')]");a.snapshotItem(0)&&f.remove(a.snapshotItem(0));f.get("warn")&&window.setTimeout(function(){m(/ban_.+/gi, "id","div")},500);m(".","src","iframe","instr");m(/center/,"align","table","match",f.get("embed"));m(/justify/,"align","p","match",f.get("embed"));var p=f.get("embed").innerHTML;f.get("embed").innerHTML=p.replace(/<br(?:[\s\/]{1,}|)>/gi,"");window.setTimeout(function(){j("loop kiling system");m(/(Bingkai_DL.+)|(Ads_fileinfo)/i,"id","div");m(/^ban_(?:\d|\w)+$/i,"id","div");m(/(boxcontainer)/i,"class","div");m(/Advertisement/i,"id","embed");f.remove(f.get("AdsKanan"));f.remove(f.get("iklankiri"));f.remove(s("table", f.get("isi_fileinfo2"))[0]);m(/center/,"align","table","match",f.get("kanan"))},200);window.setTimeout(function(){m("footer.htm","src","iframe","instr");m(".","src","iframe","instr")},1E3)}catch(h){}}function m(a,b,c,d,g){n(c)&&(c="*");n(d)&&(d="match");n(g)&&(g=document);if(g=s(c,g))for(var p=0;p<g.length;p++)if(c=g[p].getAttribute(b)?g[p].getAttribute(b):!1)"match"==d&&c.match(a)&&f.get(g[p])&&f.remove(g[p]),"instr"==d&&-1!=c.indexOf(a)&&f.get(g[p])&&f.remove(g[p])}function r(a){f.get("log_link")&& (f.get("log_link").innerHTML=a);window.setTimeout(function(){r(" ")},8E3)}function R(){var a=h("//title",null,1);a&&(a=a.innerHTML.replace(/^Free\s+Download\s+/,"").replace(/\s+Indowebster\s+Versi\s5.+/,""));return a}function G(a){for(var b=0;a;)b+=a.offsetTop,a=a.offsetParent;return b}function n(a){return null==a&&null!==a}function t(a){return!(null==a&&null!==a)}function Q(a,b){if(t(b))arguments.callee.dk=b;else return"#"+(!arguments.callee.dk?v("LIGHT_COLOR_"+a):v("DARK_COLOR_"+a))}function v(a){var b= z[a];return!b?"":GM_getValue(a,b[0])}function H(a,b,c){n(b)&&(b=document);n(c)&&(c=XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE);return document.evaluate(a,b,null,c,null)}function y(a,b,e){if("object"==typeof a){var d=document.createEvent("MouseEvents"),e=t(e)&&e?!0:!1;d.initEvent(b,e,!0);try{a.dispatchEvent(d)}catch(g){c.__DEBUG__&&j("Error. elem.dispatchEvent is not function."+g)}}}function s(a,b){n(b)&&(b=document);return b.getElementsByTagName(a)}function k(a,b,c,d){var a=document.createElement(a), g;for(g in b)b.hasOwnProperty(g)&&a.setAttribute(g,b[g]);c&&(b=c.split(" "),a.addEventListener(b[0],eval(b[1]),eval(b[2])));d&&(a.innerHTML=d);return a}function x(a){var b="";if(null==a)return b;for(var c=a.length,d=0;d<c;d++){var g=a.charAt(d);if("&"==g){var f=a.indexOf(";",d+1);if(0<f){d=a.substring(d+1,f);if(1<d.length&&"#"==d.charAt(0))d=d.substring(1),g="x"==d.charAt(0).toLowerCase()?String.fromCharCode(parseInt("0"+d)):String.fromCharCode(parseInt(d));else switch(d){case "nbsp":g=String.fromCharCode(160)}d= f}}b+=g}return b}function S(){"undefined"==typeof unsafeWindow&&(unsafeWindow=window);"undefined"==typeof GM_log&&(GM_log=function(a){try{unsafeWindow.console.log("GM_log: "+a)}catch(c){}});var a=!1;window.navigator.appName.match(/^opera/i)&&"undefined"!=typeof window.opera&&(a=!0,c.isOpera=!0,GM_log=window.opera.postError,j("Opera detected...",0));if("undefined"!=typeof GM_setValue){var b;try{b=GM_setValue.toString()}catch(e){b=".staticArgs.FF4.0b"}0<b.indexOf("staticArgs")?(c.isGreaseMonkey=!0, c.isFF4=!1,j("GreaseMonkey Api detected"+((c.isFF4=0<b.indexOf("FF4.0b"))?" on FF4.0b":"")+"...",0)):b.match(/not\s+supported/)&&(a=!0,c.isBuggedChrome=!0,j("Bugged Chrome GM Api detected...",0))}else a=!0,j("No GM Api detected...",0);c.noCrossDomain=c.isOpera||c.isBuggedChrome;if(a){GM_isAddon=!0;j("Try to recreate needed GM Api...",0);a=null;try{a=typeof unsafeWindow.localStorage}catch(d){a=null}if("object"==a)j("Using localStorage for GM Api.",0),GM_getValue=function(a,c){var b=unsafeWindow.localStorage.getItem(q+ a);if(null==b)return c;switch(b.substr(0,2)){case "S]":return b.substr(2);case "N]":return parseInt(b.substr(2));case "B]":return"true"==b.substr(2)}return b},GM_setValue=function(a,b){switch(typeof b){case "string":unsafeWindow.localStorage.setItem(q+a,"S]"+b);break;case "number":0>b.toString().indexOf(".")&&unsafeWindow.localStorage.setItem(q+a,"N]"+b);break;case "boolean":unsafeWindow.localStorage.setItem(q+a,"B]"+b)}},GM_deleteValue=function(a){unsafeWindow.localStorage.removeItem(q+a)};else if(!c.isOpera|| "undefined"==typeof GM_setValue)j("Using temporarilyStorage for GM Api.",0),c.temporarilyStorage=[],GM_getValue=function(a,b){return"undefined"==typeof c.temporarilyStorage[q+a]?b:c.temporarilyStorage[q+a]},GM_setValue=function(a,b){switch(typeof b){case "string":case "boolean":case "number":c.temporarilyStorage[q+a]=b}},GM_deleteValue=function(a){delete c.temporarilyStorage[q+a]};"undefined"==typeof GM_openInTab&&(GM_openInTab=function(a){unsafeWindow.open(a,"")});"undefined"==typeof GM_registerMenuCommand&& (GM_registerMenuCommand=function(){GM_log("Notice: GM_registerMenuCommand is not supported.")});if(!c.isOpera||"undefined"==typeof GM_xmlhttpRequest)j("Using XMLHttpRequest for GM Api.",0),GM_xmlhttpRequest=function(a){var b=new XMLHttpRequest;b.onreadystatechange=function(){if(a.onreadystatechange)a.onreadystatechange(b);if(4==b.readyState&&a.onload)a.onload(b)};b.onerror=function(){if(a.onerror)a.onerror(b)};try{b.open(a.method,a.url,!0)}catch(c){if(a.onerror)a.onerror({readyState:4,responseHeaders:"", responseText:"",responseXML:"",status:403,statusText:"Forbidden"});return}if(a.headers)for(name in a.headers)b.setRequestHeader(name,a.headers[name]);b.send(a.data);return b}}GM_getIntValue=function(a,b){return parseInt(GM_getValue(a,b),10)}}function j(a,b){c.__DEBUG__&&(arguments.callee.counter?arguments.callee.counter++:arguments.callee.counter=1,GM_log("("+arguments.callee.counter+") "+a))}var c=function(){};c.vver="R.27";c.__DEBUG__=1;c.DL=[1,1];c.autoValue=[1,1];var z={LIGHT_COLOR_DL_OPTIONS_TEXT:["00CC00"], LIGHT_COLOR_DL_BACKGROUND:["EEEEEE"],LIGHT_COLOR_DL_BORDER:["CCCCCC"],LIGHT_COLOR_MNU_BORDER:["6C6C6C"],LIGHT_COLOR_GARIS:["55FF55"],LIGHT_COLOR_DL_POPUP_TEXT:["0000DF"],LIGHT_COLOR_DL_POPUP_BG_RED_IN:["FFB493"],LIGHT_COLOR_DL_POPUP_BG_RED_OUT:["FFDDDD"],LIGHT_COLOR_DL_POPUP_BG_BLUE_IN:["04EE79"],LIGHT_COLOR_DL_POPUP_BG_BLUE_OUT:["97FBAD"],IDWS_DOWNLOAD_AUTO:[1],IDWS_DIRECT_LINK:[4],IDWS_PLAY_AUTO:[1],IDWS_PLAY_REPEAT:[3],IDWS_AUTORENAME:[1],IDWS_AUTODOWNLOAD:[1]},q="GM_",h=function(a,b,c){if(b&& "string"==typeof b&&(b=h(b,null,!0),!b))return null;if(!a)return!1;if("object"==typeof a)return a;b=b||document;return"#"==a[0]?b.getElementById(a.substr(1)):"/"==a[0]||"."==a[0]&&"/"==a[1]?c?document.evaluate(a,b,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue:document.evaluate(a,b,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null):"."==a[0]?b.getElementsByClassName(a.substr(1)):b.getElementsByTagName(a)},f={get:function(a){return!a?!1:"string"===typeof a?document.getElementById(a): a},add:function(a,b){a=this.get(a);b=this.get(b);b.appendChild(a)},remove:function(a){(a=this.get(a))&&a.parentNode&&a.parentNode.removeChild(a)}},o={add:function(){if(window.addEventListener)return function(a,b,c){f.get(a).addEventListener(b,c,!1)};if(window.attachEvent)return function(a,b,c){f.get(a).attachEvent("on"+b,function(){c.call(f.get(a),window.event)})}}()},i={uri:null,returned:null,cached:!1,request:function(a,b,c){i.uri&&(b=t(b)&&b?b:"GET",a=t(a)&&a?a:null,"function"!=typeof c&&(c=null), GM_xmlhttpRequest({method:b,url:i.uri+(i.cached?"":"#"+Math.random().toString().replace("0.","")),data:a,onload:function(d){503==d.status?(j("Reach 503, retrying..."),setTimeout(i.request(a,b,c),777)):null!=c?c(d):i.returned=d}}))}},l={smoothScroll:function(a,b){if(!a)return!0;for(var e=G(a),d=a;d.offsetParent&&d.offsetParent!=document.body;)d=d.offsetParent,e+=d.offsetTop+c.offsetTop;clearInterval(l.INTERVAL);l.callback="function"==typeof b?b:null;cypos=l.getCurrentYPos();ss_stepsize=parseInt((e- cypos)/l.STEPS);l.initPos=cypos<e;l.INTERVAL=setInterval(function(){l.scrollWindow(ss_stepsize,e,a)},8)},scrollWindow:function(a,b,c){wascypos=l.getCurrentYPos();isAbove=wascypos<b;window.scrollTo(0,wascypos+a);iscypos=l.getCurrentYPos();isAboveNow=iscypos<b;if(isAbove!=isAboveNow||wascypos==iscypos||isAbove==isAboveNow&&(l.initPos!=isAbove||l.initPos!=isAboveNow))window.scrollTo(0,b),clearInterval(l.INTERVAL),"object"!=typeof c&&"function"!=typeof c&&(location.hash=c),l.callback&&l.callback()},getCurrentYPos:function(){return document.body&& document.body.scrollTop?document.body.scrollTop:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:window.pageYOffset?window.pageYOffset:0}};(function(){c.idws="indowebster";c.ctitle=R();c.dmIDWS="http://";c.script_link="http://userscripts.org/scripts/show/69049";c.theme="gongxi";var a=location.hostname.match(/(^v[\d]+)\./);c.dmIDWS+=(a?a[1]:"www")+"."+c.idws+".com/";c._3rdPartyURI="";c._3rdPartyChecker=!1;c.nxUri="";c.fileinfo=[];c.idresult_txtarea="result_idwslinks"; c.donlot="[%d] Waiting Download";c.counter=0;c.drlink="";c.filename="";c.current=0;c.mlinks=[];c.autorename=v("IDWS_AUTORENAME");c.autodownload=v("IDWS_AUTODOWNLOAD");c.offsetTop=80;c.notSafe=!1;S();if("gongxi"!=c.theme&&"krismis"!=c.theme&&"v5"!=c.theme)J(),c._3rdPartyChecker&&!c.notSafe&&bikin_div();else{var b,a={krismis:"#downloadBtn",v5:'.//a/input[contains(@value,"Download")]',gongxi:".downloadBtn"};if(c.tgt_str=b=a[c.theme]?a[c.theme]:!1)l.STEPS=10,(a=h("#bodyContainer",null,1))&&l.smoothScroll(a, function(){if(h(b,null,1))a:{var a;if(a=h(b)){if("gongxi"==c.theme&&1==a.length)a=a[0],c.nxUri=a.href.replace(c.dmIDWS,""),a.firstChild.value="[2] Fetch Page..";else{if(!a.href){c.__DEBUG__&&j("Pattern changed, please update");break a}a.value="Fetching Download..";a=a.parentNode;c.nxUri=a.href.replace(c.dmIDWS,"")}"krismis"==c.theme?D():"gongxi"==c.theme?C():E()}else c.__DEBUG__&&j("Failed get Download Button")}})}})()})();
Mozilla add on,User script,Grease Monkey Script, greasemonkey userscripts, updater userscripts mafia wars userscripts mafia wars autoplayer userscripts mafia wars wall userscripts scripts userscripts travian greasemonkey greasemonkey download greasemonkey facebook greasemonkey tutorial greasemonkey youtube greasemonkey travian greasemonkey chrome greasemonkey mafia wars greasemonkey mafia wars autoplayer
Sunday, February 26, 2012
Indowebster GET[ Link ]
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment