PageSourceSearch

https://gaugau.futabanet.jp/sr/js/parent_common.js?dmy=016700

js futabanet.jp collected 2026-10-02 03:00:17 UTC 11,810 bytes, 1 lines download raw bytes

1var TCommonFunc=function(){this.request_message_function_array=new Array,this.response_message_function_array=new Array,this.command_message_function_array=new Array,this.result_message_function_array=new Array,this.firefox=!1,this.isChrome=-1<navigator.userAgent.indexOf("Chrome")||-1<navigator.userAgent.indexOf("CriOS/"),this.safari=!1,this.isMobile=!1,this.isAndroid=!1,this.isIOS=!1,this.isIPhone=!1,this.isIPod=!1,this.isIPad=!1,this.isMac=!1,this.isIPadOS=!1,this.isWindows=!1,this.isChromeOS=!1,this.isGoogleApp=!1;var t,e,n,i,s=navigator.userAgent.toLowerCase();if(this.safari=-1<s.indexOf("safari/")&&!1===this.isChrome&&-1==s.indexOf("mobile safari"),this.firefox=-1<s.indexOf("firefox"),window.webview||window.navigator.standalone?this.isMobile=!1:-1!==s.indexOf("ipad")?(this.isMobile=!0,this.isIOS=!0,this.isIPad=!0):-1!==s.indexOf("iphone")?(this.isMobile=!0,this.isIOS=!0,this.isIPhone=!0):-1!==s.indexOf("ipod")?(this.isMobile=!0,this.isIOS=!0,this.isIPod=!0):-1!==s.indexOf("android")&&(this.isMobile=!0,this.isAndroid=!0),-1<s.indexOf("win")&&(this.isWindows=!0),(-1<s.indexOf("mac")&&!1===this.isIOS||-1<s.indexOf("pc")&&!1===this.isWindows)&&("ontouchend"in document?(this.isMobile=!0,this.isIPadOS=!0):this.isMac=!0),!1===this.isWindows&&-1<s.indexOf("cros")&&(this.isChromeOS=!0),this.isIOS&&-1<s.indexOf(" gsa/")&&(this.isGoogleApp=!0),this.osVer=0,this.isIOS&&-1<(t=s.indexOf(" os "))&&(-1<=(n=(e=s.substring(t+4)).indexOf(" "))&&(e=e.substring(0,n)),-1<(n=(e=e.replace("_",".")).indexOf("_"))&&(e=e.substring(0,n)),!0!==isNaN(e)))try{this.osVer=parseFloat(e)}catch(t){this.osVer=0}if(this.isAndroid&&-1<(t=s.indexOf("android "))&&(-1<=(n=(e=s.substring(t+8)).indexOf(String.fromCharCode(59)))&&(e=e.substring(0,n)),(n=e.indexOf("."))<(i=e.lastIndexOf("."))&&(e=e.substring(0,i)+e.substring(i+1)),!0!==isNaN(e)))try{this.osVer=parseFloat(e)}catch(t){this.osVer=0}this.supportsPassive=!1;var o=this;try{var r=Object.defineProperty({},"passive",{get:function(){o.supportsPassive=!0}});window.addEventListener("test",null,r)}catch(t){}window.TDownload||(window.TDownload=function(){this.ajaxSuccess=!1,this.IE=!1,this.onload=null,this.onreadystatechange=null,this.onerror=null,this.httpObj=null,this.ex=null,this.filepath=null,this.timeoutObj=new Object;try{this.httpObj=new XMLHttpRequest}catch(t){this.httpObj=null}if(null===this.httpObj){try{this.httpObj=new ActiveXObject("Msxml2.XMLHTTP")}catch(t){this.httpObj=null}if(null===this.httpObj)try{this.httpObj=new ActiveXObject("Microsoft.XMLHTTP")}catch(t){this.httpObj=null}null!==this.httpObj&&(this.IE=!0)}null!==this.httpObj&&(this.ajaxSuccess=!0)},window.TDownload.prototype.free=function(){delete this.onload,delete this.onreadystatechange,delete this.onerror,this.free_obj(this.httpObj),delete this.httpObj,this.free_obj(this.ex),delete this.ex,this.free_obj(this.filepath),delete this.filepath,null!==this.timeoutObj&&null!=this.timeoutObj&&(this.free_obj(this.timeoutObj),delete this.timeoutObj),delete this.ajaxSuccess,delete this.IE},window.TDownload.prototype.clear=function(){this.onload=null,this.onreadystatechange=null,this.onerror=null,this.free_obj(this.ex),this.ex=null,this.free_obj(this.filepath),this.filepath=null;try{this.httpObj.abort()}catch(t){}},window.TDownload.prototype.open=function(t,e,n,i,s){var o="GET",r=null;if(!0===n&&(o="POST",null!==i&&null!=i&&(r=i)),this.free_obj(this.ex),this.ex=null,this.free_obj(this.filepath),this.filepath=null,!1===this.ajaxSuccess||null===this.httpObj)return!1;try{var l=this.onreadystatechange,a=this.onload,u=this.onerror,h=this.httpObj;this.httpObj.onreadystatechange=null,(this.httpObj.onload=null)!==this.onreadystatechange&&(this.httpObj.onreadystatechange=function(){l(h)}),null!==this.onerror&&(this.httpObj.onerror=function(){0!==c.handle&&(clearTimeout(c.handle),c.handle=0),!1===c.isError&&(c.isError=!0,null!==u&&u(h))}),null!==this.onload&&(this.httpObj.onload=function(){0!==c.handle&&(clearTimeout(c.handle),c.handle=0),!1===c.isError&&a(h)}),this.filepath=t;var c=this.timeoutObj;return this.timeoutObj.isError=!1,null!==e&&null!=e?this.timeoutObj.handle=setTimeout(function(){0!==c.handle&&(clearTimeout(c.handle),c.handle=0),!1===c.isError&&(c.isError=!0,null!==u&&u(h))},e):c.handle=0,this.httpObj.open(o,this.filepath,!1!==s),!0===n&&this.httpObj.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),this.httpObj.send(r),!0}catch(t){return 0!==c.handle&&(clearTimeout(c.handle),c.handle=0),this.ex=t,!1===c.isError&&null!==u&&(c.isError=!0,u()),!1}},window.TDownload.prototype.responseText=function(){if(this.free_obj(this.ex),this.ex=null,!1===this.ajaxSuccess||null===this.httpObj)return null;try{return this.httpObj.responseText}
1catch(t){return this.ex=t,null!==this.onerror&&this.onerror(),null}},window.TDownload.prototype.free_obj=function(t){try{if(null===t||null==t)return;if(t instanceof Array){var e=t.length;if(0<e)for(var n=e-1;0<=n;n--)this.free_obj(t[n]),delete t[n];t.length=0}else if(t instanceof Object){if(null==t.free)return;for(var i in t.free(),t)t.hasOwnProperty(i)&&("function"!=typeof t[i]&&this.free_obj(t[i]),delete t[i])}}catch(t){}t=null})};TCommonFunc.prototype.addListener=function(t,e,n,i){if(null!==t){var s=i||!1;this.supportsPassive||"object"==typeof s&&"capture"in s&&(s=s.capture),userScalableNo.addEventListener(t,e,n,s)}},TCommonFunc.prototype.removeListener=function(t,e,n,i){if(null!==t){var s=i||!1;this.supportsPassive||"object"==typeof s&&"capture"in s&&(s=s.capture),userScalableNo.removeEventListener(t,e,n,s)}},TCommonFunc.prototype.msg_proc=function(t){var e;try{e=JSON.parse(t.data)}catch(t){e=null}if(null!==e&&(!e.id||"content"===e.id))if(null!=e.response){if(void 0===this.response_message_function_array[e.response])return;this.response_message_function_array[e.response](e)}else if(null!=e.request){if(void 0===this.request_message_function_array[e.request])return;this.request_message_function_array[e.request](e)}else if(null!=e.command){if(void 0===this.command_message_function_array[e.command])return;this.command_message_function_array[e.command](e)}else if(null!=e.result){if(void 0===this.result_message_function_array[e.result])return;this.result_message_function_array[e.result](e)}},TCommonFunc.prototype.postMessage=function(t,e){if(null!==t){if(null!=t.tagName)return e.target=t.src,t.contentWindow.postMessage(JSON.stringify(e,null,0),t.contentWindow.location.protocol+"//"+t.contentWindow.location.hostname+(t.contentWindow.location.port?":"+t.contentWindow.location.port:"")+"/"),!0;if(null!=t.location)return e.target=t.href,t.postMessage(JSON.stringify(e,null,0),t.location.protocol+"//"+t.location.hostname+(t.location.port?":"+t.location.port:"")+"/"),!0}return!1},TCommonFunc.prototype.makeRequestMessage=function(t){var e=new Object;return e.id="content",e.request=t,e},TCommonFunc.prototype.makeResponseMessage=function(t){var e=new Object;return e.response=t,e},TCommonFunc.prototype.postChildMessage2Child=function(t,e){return e.target=t.src,t.contentWindow.postMessage(JSON.stringify(e,null,0),t.contentWindow.location.protocol+"//"+t.contentWindow.location.hostname+(t.contentWindow.location.port?":"+t.contentWindow.location.port:"")+"/"),!0},TCommonFunc.prototype.postChildMessage2Parent=function(t){return t.target=parent.href,parent.window.postMessage(JSON.stringify(t,null,0),parent.window.location.protocol+"//"+parent.window.location.hostname+(parent.window.location.port?":"+parent.window.location.port:"")+"/"),!0},TCommonFunc.prototype.makeCommandMessage=function(t){var e=new Object;return e.command=t,e},TCommonFunc.prototype.makeResultMessage=function(t){var e=new Object;return e.result=t,e},TCommonFunc.prototype.addClassName=function(t,e){for(var n=!1,i=t.className.split(" "),s=e.split(" "),o=0;o<s.length;++o){if(i.indexOf)n=-1!==i.indexOf(s[o]);else{n=!1;for(var r=0;r<i.length;++r)if(s[o]==i[r]){n=!0;break}}n||i.push(s[o])}t.className=i.join(" ")},TCommonFunc.prototype.removeClassName=function(t,e){for(var n=-1,i=t.className.split(" "),s=e.split(" "),o=0;o<s.length;++o){if(i.indexOf)n=i.indexOf(s[o]);else{n=-1;for(var r=0;r<i.length;++r)if(0===strcmp(s[o],i[r])){n=r;break}}-1!=n&&i.splice(n,1)}t.className=i.join(" ")},TCommonFunc.prototype.getRelative2AbsolutePath=function(t,e){var n=e.indexOf(":"),i=e.indexOf("//");if(0<n&&n<i)return e;if(n=t.indexOf(":"),i=t.indexOf("//"),n<=0||i<=n)return"";var s,o=t.substring(0,i+2),r=t.substring(i+2),l="";if(r=0<(n=r.indexOf("/"))?(l=r.substring(0,n),r.substring(n+1)):(l=r,""),n=e.indexOf("/"),i=e.indexOf("//"),0===n&&-1==i)return o+l+e;if(n==i&&0===n)return o.slice(-2)+e;s=""!==(r=-1!=(n=r.lastIndexOf("/"))?r.substring(0,n):"")?r.split("/"):new Array;var a,u,h,c="";for(a=""!==(r=-1!=(n=e.lastIndexOf("/"))?(c=e.substring(n+1),e.substring(0,n)):(c=e,""))?r.split("/"):new Array,h=0;h<a.length;h++)".."==(u=a[h])?s.pop():"."!=u&&""!=u&&s.push(u);".."==c?(s.pop(),c=""):"."==c&&(c="");var f=o+l+"/";for(h=0;h<s.length;h++)f+=s[h]+"/";return f+c},TCommonFunc.prototype.trim=function(t){if(null===t)return"";var e=t.replace(/^[  \t\r\n]+|[  \t\r\n]+$/g,"");return t=null,e},TCommonFunc.prototype.setElementText=function(t,e){if(null!==t&&null!=t){if(null!==e&&null!=e||(e=""),!1===this.firefox)t.innerText=e;else if(-1!=e.indexOf("\n")){var n=t.childNodes.length;if(0<n)for(var i=n-1;0<=i;i--)t.removeChild(t.childNodes[i]);t.innerHTML=e.replace(/\n/g,"<BR>")}else t.textContent=e;e=t=null}},TCommonFunc.prototype.setDelayFunc=function(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame;null!=e?e(t):setTimeout(t,0)},TCommonFunc.prototype.getPixelRatio=function(){return window.devicePixelRatio?window.devicePixelRatio:1},TCommonFunc.prototype.getDate2YMDHMSZ=function(t){try{var e=t.getFullYear(),n=t.getMonth()+1,i=t.getDate(),s=t.getHours(),o=t.getMinutes(),r=t.getSeconds(),l=t.getMilliseconds();return t=null,("0000"+e).slice(-4)+("00"+n).slice(-2)+("00"+i).slice(-2)+("00"+s).slice(-2)+("00"+o).slice(-2)+("00"+r).slice(-2)+("000"+l).slice(-3)}catch(t){return null}},TCommonFunc.prototype.getDate2YMDHMS=function(t){try{var e=t.getFullYear(),n=t.getMonth()+1,i=t.getDate(),s=t.getHours(),o=t.getMinutes(),r=t.getSeconds();return t=null,("0000"+e).slice(-4)+("00"+n).slice(-2)+("00"+i).slice(-2)+("00"+s).slice(-2)+("00"+o).slice(-2)+("00"+r).slice(-2)}catch(t){return null}},TCommonFunc.prototype.getDate2YMD=function(t){try{var e=t.getFullYear(),n=t.getMonth()+1,i=t.getDate();return t=null,("0000"+e).slice(-4)+("00"+n).slice(-2)+("00"+i).slice(-2)}catch(t){return null}},TCommonFunc.prototype.getYMD2Date=function(t){if(null===t||null==t)return null;if(null!==t.setTime&&null!=t.setTime)return this.getYMD2Date(getDate2YMDHMSZ(t));try{var e=t.length;if(e<4)return null;var n=0,i=1,s=1,o=0,r=0,l=0,a=0;4<=e&&(n=parseInt(t.substring(0,4),10)),6<=e&&(i=parseInt(t.substring(4,6),10)),8<=e&&(s=parseInt(t.substring(6,8),10)),10<=e&&(o=parseInt(t.substring(8,10),10)),12<=e&&(r=parseInt(t.substring(10,12),10)),14<=e&&(l=parseInt(t.substring(12,14),10)),17<=e?a=parseInt(t.substring(14,17),10):16<=e&&(a=10*parseInt(t.substring(14,16),10)),t=null;var u=new Date(n,i-1,s,o,r,l);return isNaN(u.getTime())?(delete u,null):(u.setMilliseconds(a),u)}catch(t){return null}},TCommonFunc.prototype.cmpYMD_YMD=function(t,e){try{var n=this.getYMD2Date(t),i=this.getYMD2Date(e);
1if((e=t=null)===n&&null===i)return 0;if(null===n&&null!==i)return-1;if(null!==n&&null===i)return 1;var s=n.getTime(),o=i.getTime();return s==o?0:o<s?1:-1}catch(t){return 0}},TCommonFunc.prototype.cmpDate_YMD=function(t,e){try{var n=this.getYMD2Date(e);if(null===t&&null===n)return 0;if(null===t&&null!==n)return-1;if(null!==t&&null===n)return 1;var i=t.getTime(),s=n.getTime();return i==s?0:s<i?1:-1}catch(t){return 0}};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.