// ==SiteScript== // @siteName BeeJP.Net // @siteUrl http://beejp.net/ // @author mayan // @authorUrl // @scriptUrl // @description // @date 2017/06/01 // @version 0.4.3 // ==/SiteScript== function CravingSiteScript() { this._initialize(); } CravingSiteScript.prototype = { _xhr: null, _initialize: function() {}, _getXmlHttpRequest: function() { if ( this._xhr != null ) { return this._xhr; } var xhr = null; var these = [ function() { return new XMLHttpRequest(); } , function() { return new ActiveXObject( "Msxml2.XMLHTTP" ); } , function() { return new ActiveXObject( "Microsoft.XMLHTTP" ); } , function() { return new ActiveXObject( "Msxml2.XMLHTTP.4.0" ); } ]; for ( var i = 0, length = these.length; i < length; i++ ) { var func = these[ i ]; try { xhr = func(); break; } catch( e ) {} } this._xhr = xhr; return this._xhr; }, _load: function( url, data, method ) { var req = this._getXmlHttpRequest(); var mtd = ( method == null ) ? "GET" : "POST"; req.open( mtd, url, false ); if ( mtd == "POST" ) { req.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded" ); } req.send( data ); return req.responseText; }, getResponseText: function( url, data, method ) { return this._load( url, data, method ); }, getResponseJSON: function( url, data, method ) { var text = this._load( url, data, method ); return eval( "("+text+")" ); }, /// Math random: function( limit ) { return Math.floor( Math.random() * limit ); }, /// String decodeHtml: function( str ) { return str.replace( /&(quot|#0*34);/ig, "\"" ) .replace( /&(amp|#0*38);/ig, "&" ) .replace( /&(apos|#0*39);/ig, "'" ) .replace( /&(lt|#0*60);/ig, "<" ) .replace( /&(gt|#0*62);/ig, ">" ) .replace( /&(nbsp|#0*160);/ig, " " ) .replace( /&(frasl|#8260);/ig, "/" ); } } var _SEXVIDX = {}; _SEXVIDX.showMsg = true; _SEXVIDX.chkLnk = true; function isSiteUrl( url ) { if ( url.match( /^http:\/\/(?:www\.)?beejp\.net(?::\d+)?(\/.+)/ ) || url.match( /^http:\/\/(?:www\.)?sexvidx\.tv(?::\d+)?(\/.+)/ ) || //url.match( /^http:\/\/(?:www\.)?javon\.tv(?::\d+)?(\/.+)/ ) ||//->jadult.net url.match( /^http:\/\/(?:www\.)?javclub\.net(?::\d+)?(\/.+)/ ) ||//<-jadult.net url.match( /^http:\/\/(?:www\.)?sexvidx\.com(?::\d+)?(\/.+)/ ) ) { var path = RegExp.$1; } else { return false; } if ( path.match( /^\/(?:watch\/[^\/?]+\/)?video\/\d+\/[^\/?]+?\.html/ ) ) return true; if ( path.match( /^\/embed\/\d+/ ) ) return true; return false; } function getVideoDetail( url ) { if ( typeof _SEXVIDX != "object" ) _SEXVIDX = {}; url = url.replace( /^http:\/\/(?:www\.)?sexvidx\.tv(?::\d+)?\//, "http://beejp.net/" ); url = url.replace( /^http:\/\/(?:www\.)?sexvidx\.com(?::\d+)?\//, "http://beejp.net/" ); //url = url.replace( /^http:\/\/(?:www\.)?javon\.tv(?::\d+)?\//, "http://beejp.net/" ); url = url.replace( /^http:\/\/(?:www\.)?javclub\.net(?::\d+)?\//, "http://beejp.net/" ); url = url.replace( /^http:\/\/www\./, "http://" ); if ( url.match( /http:\/\/beejp\.net\/(watch\/[^\/?]+\/)?video\/(\d+)\/([^\/?]+?)\.html/ ) ) { var vid = RegExp.$2; var bk_title = RegExp.$3 + "_" + vid; if ( RegExp.$1 ) var type = "watch"; else type = "clip"; } else if ( url.match( /http:\/\/beejp\.net\/embed\/(\d+)/ ) ) { vid = RegExp.$1; bk_title = "sexvidx_" + vid; type = "embed"; } else { //return null; } var craving = new CravingSiteScript(); try { var text = craving.getResponseText( url ); } catch( e ) { text = ""; } if ( !text ) return null; if ( type != "embed" ) { if ( text.match( /]*?property\s*=\s*("|')?og:title\2[^>]*)>/i ) && RegExp.$1.match( /\s+content\s*=\s*("|')(.*?)\1/ ) ) { var title = craving.decodeHtml( RegExp.$2 ); } if ( text.match( /