GM Script not recognized

Requests for help with Orca Browser go here. Note that Orca is no longer in development, and no new builds or versions of Orca are planned.

Moderators: Support Staff², Support Staff, AvantGuard, Developer

Post Reply
fakenjones
Newbie
Newbie
Posts: 14
Joined: Sat Nov 20, 2010 10:20 pm
Windows Version: Windows 7
Avant Version: Not Installed
IE Version: Not Installed

GM Script not recognized

Post by fakenjones » Fri Dec 03, 2010 7:14 am

I have latest version of Orca Browser 1.2 Build 6 on Windows 7 (UAC Disabled)
I installed the latest version of Grease Monkey 0.8.20100408.6.
Then I tried to install this script: http://userscripts.org/scripts/show/58869
Instead of the Install Dialog box, I was taken instead to the Script Source page.

I then downloaded the script file (58869.user.js) manually, and placed it in this folder:
C:\Users\Faken Jones\AppData\Roaming\Orca Profiles\.default\mozdata\UserData\gm_scripts\

However the script still did not register as installed. Ie It did not appear on GreaseMonkey Manage Scripts page.

So I edited the following file:
C:\Users\Faken Jones\AppData\Roaming\Orca Profiles\.default\mozdata\UserData\gm_scripts\config.xml

I changed it so it looked as follows:

Code: Select all

<UserScriptConfig>
	<Script filename="58869.user.js" name="ICE Quick Stream" version="3.7" namespace="http://icefilms.info" description="Enables direct streaming of videos from 2shared as well as from megaupload via www.icedivx.com. Plus, some browsers get the added feature of bypassing the mega captcha. This script works closely with the high quality video links database www.icefilms.info" enabled="true">
		<Include>http://*megaupload.com/*d=*</Include>
		<Include>http://*icefilms.info/*video.php*</Include>
		<Include>http://*2shared.com/file/*</Include>
		<Include>http://*2shared.com/video/*</Include>
	</Script>
</UserScriptConfig>
Now the script did show up in the GreaseMonkey Manage Scripts page as both Installed & Enabled.
However, the script still did not function, and for all practical purposes, pretended like it didn't exist.
Even though GreaseMonkey says that it is supposedly installed and operational.

So, does anyone know what's wrong here? Or how I can get it to work? Or any comment on this from devs? Thanks.

Here is the script for your reference:

Code: Select all

// ==UserScript==
// @name           ICE Quick Stream
// @version		   3.7
// @namespace      http://icefilms.info
// @description    Enables direct streaming of videos from 2shared as well as from megaupload via www.icedivx.com. Plus, some browsers get the added feature of bypassing the mega captcha. This script works closely with the high quality video links database www.icefilms.info
// @include		   http://*megaupload.com/*d=*
// @include		   http://*icefilms.info/*video.php*
// @include		   http://*2shared.com/file/*
// @include		   http://*2shared.com/video/*
// ==/UserScript==
	var version = "3.7";
	
	// get url params
	function gup(name){
		name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
		var regexS = "[\\?&]"+name+"=([^&#]*)";
		var regex = new RegExp(regexS);
		var results = regex.exec(location.href);
		if (results == null)
			return "";
		else
			return results[1];
	}
	
	// url params
	var w = gup('w');
	var h = gup('h');
	
	// defaults
	if (!w) w = 638;
	if (!h) h = 388;
	var downloadlink = 0;
	var flashlink = 0;
	var timer = 0;
	
	function iceVerify(){
		var iframe = document.createElement("iframe");
		iframe.src = 'http://www.icefilms.info/components/com_iceplayer/verify.php?url='+location.href;
		iframe.style.width = w+'px';
		iframe.style.height= h+'px';
		iframe.style.border= "0";
		iframe.style.margin= "0";
		iframe.setAttribute("scrolling","no");
		iframe.setAttribute("id","iceVerify");
		document.body.insertBefore(iframe, document.body.firstChild);
	}

	function iceEmbed(){
		var iframe = document.createElement("iframe");
		iframe.src = 'http://www.icedivx.com/video.php?w='+w+'&h='+(h-18)+'&vurl='+downloadlink+'&flash='+flashlink+'&t='+timer+'&v='+version;
		iframe.style.width = w+'px';
		iframe.style.height= h+'px';
		iframe.style.border= "0";
		iframe.style.margin= "0";
		iframe.setAttribute("scrolling","no");
		iframe.setAttribute("id","iceQuickStream");
		document.body.insertBefore(iframe, document.body.firstChild);
	}
	
	
// icefilms
if (location.host.match('icefilms.info') && location.href.match('video.php') && !location.href.match('&sourceid=')){
	var a = document.getElementById('srclist').getElementsByTagName('a');
	for (var i=0;i<a.length;i++){
		var url=a[i].href.indexOf('&url=')+5;
		if (url>5)
			a[i].href=a[i].href.slice(url);
	}
}


// 2shared
else if (location.host.match('2shared.com') && (location.href.match('/file/') || location.href.match('/video/')) ){
	
	document.body.style.margin = '0';
	document.getElementById("topNav").style.top = h+'px';
	
	// check for bad link
	var pagecontent = document.getElementsByTagName('head')[0].innerHTML + document.getElementById('overall').innerHTML;
	var bad = pagecontent.search("The file link that you requested is not valid") +
	pagecontent.search("file is suspected of illegal or copyrighted content.") +
	pagecontent.search(".mkv</title>") +
	pagecontent.search(".ogm</title>") +
	pagecontent.search(".001</title>") +
	pagecontent.search(".002</title>") +
	pagecontent.search(".003</title>") +
	pagecontent.search(".rar</title>") +
	pagecontent.search(".zip</title>");	

	if (bad > 0 && !document.getElementById('iceVerify')){
		iceVerify();
	}
	
	// display embed
	else if (!document.getElementById('iceQuickStream'))
	{
		
	    function ice2haredEmbed(){
	    
		var downloadlink = "http://dc" + matched + "&.avi";

		var showHideDivs = "\
			document.getElementById('fakeVidPlayer').style.visibility='hidden';\
			document.getElementById('buttons').style.visibility='hidden';\
			document.getElementById('divxPlayer').style.display='block';\
			return false;\
		";
		
		var box = document.createElement("div");
		box.style.width = w+'px';
		box.style.height= h+'px';
		box.style.border= "0";
		box.style.margin= "0";
		box.style.position="relative";
		box.setAttribute("id","iceQuickStream");
		box.innerHTML = "\
		\
		    <div id='fakeVidPlayer'> \
			 <img src='http://img251.imageshack.us/img251/149/2lwra5s.jpg' width='100%' height="+h+"px border='0' /> \
			<a onClick=\"document.getElementById('playbutton').onclick();return false;\" href='#'> \
			<div style='position:absolute; bottom:0; left:0; height:26px; width:100%; background-repeat: repeat-x; background-image: url(http://www.icefilms.info/images/divxcontrols2.png);'></div> \
			<div style='position:absolute; bottom:0; left:0; height:26px; width:71px; background-image: url(http://www.icefilms.info/images/divxcontrols1.png);'></div> \
			<div style='position:absolute; bottom:0; right:0; height:26px; width:264px; background-image: url(http://www.icefilms.info/images/divxcontrols3.png);'></div> \
			</a>\
		   		<div style='position:absolute; top:0; left:0;color:white;'> \
		   	     	<span style=font-size:10px;font-family:Impact;>This video brought to you by</span><br> \
				&nbsp;&nbsp;<a href='http://www.icefilms.info' target=_blank style=''><img src='http://a.imageshack.us/img210/7713/icebannerlogobot.png' width=100></a> \
			    </div> \
			    <div style='position:absolute;top:2px;right:2px;color:grey;'>IQS v"+version+"</div> \
			</div> \
		    \
		    <div id='buttons' style='position: absolute; top:50%; left:50%; width:500px; height:250px; margin-left:-250px; margin-top:-138px; '> \
			<div style='width:500px; left:0px;'> \
			    <iframe src='http://www.icefilms.info/300x250ad' style='width:300px; height:250px; float:left; border:0; margin:0; padding:0;' scrolling=no></iframe>\
			    <a id='playbutton' onClick=\""+showHideDivs+"\" href='#' style='display: block; position: absolute; top: 88.375px; right: 76.5px; z-index: 1; width: 48px; height: 48px; background: url(http://www.icefilms.info/images/playbutton.png) top;' onMouseOver=this.style.backgroundPosition='bottom' onMouseOut=this.style.backgroundPosition='top'></a> \
			    <a id='downloadbutton' href='"+downloadlink+"' style='display: block; position: absolute; top: 152.375px; right: 28.5px; z-index: 1; width: 144px; height: 48px; background: url(http://www.icefilms.info/images/downloadbutton.png) top' onMouseOver=this.style.backgroundPosition='bottom' onMouseOut=this.style.backgroundPosition='top'></a> \
				</div> \
			</div> \
			\
			<div id='divxPlayer' style='display:none;top:0;position:absolute;'>\
				<span style='float:right;'> \
					<label id='currentStatus'></label>&nbsp;<label id='currentDownload'></label>&nbsp;<label id='totalDownload'></label>&nbsp;<label id='downloadSpeed'></label> \
				</span> \
		 \
				<a href='http://www.icefilms.info' target=_blank><img border='0' height=16 src='http://www.icefilms.info/images/logosmall.png'></a> \
				<br> \
				<object id='ie_plugin' classid='clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616' \
					width='"+w+"' \
					height='"+(h-18)+"' \
					codebase='http://go.divx.com/plugin/DivXBrowserPlugin.cab'> \
			\
			  <param name='custommode' value='stage6' /> \
			  <param name='previewImage' value='http://img18.imageshack.us/img18/8372/playerbanner.jpg' /> \
			  <param name='autoPlay' value='true' /> \
			  <param name='src' value="+downloadlink+" /> \
			  <param name='bannerEnabled' value='false' /> \
			  <param name='timeCallback' value='myTimeCallback' /> \
			  <param name='statusCallback' value='myDivXPlugin.statusCallbackSink' /> \
			  <param name='bufferCallback' value='myBufferCallback' /> \
			  <param name='downloadCallback' value='myDownloadCallback' /> \
			\
			  <embed id='np_plugin' type='video/divx' \
				   src="+downloadlink+" \
				   custommode='stage6' \
				   width='"+w+"' \
				   height='"+(h-18)+"' \
				   autoPlay='true'  \
				   bannerEnabled='false'\
				   previewImage='http://img18.imageshack.us/img18/8372/playerbanner.jpg'  \
				   timeCallback='myTimeCallback'\
				   statusCallback='myDivXPlugin.statusCallbackSink'\
				   bufferCallback='myBufferCallback'\
				   downloadCallback='myDownloadCallback'\
				   pluginspage='http://go.divx.com/plugin/download/'> \
			  </embed> \
			</object> \
			</div> \
				<script type='text/javascript'> \
			</script> \
		";

		document.body.insertBefore(box, document.body.firstChild);
		
		
		
		var ss = document.createElement("script");
		ss.text = "\
			function myTimeCallback(current)\
			{\
				 document.getElementById('currentTime').innerHTML = current;\
			}\
			function myBufferCallback(current,total)\
			{\
				 document.getElementById('currentBuffer').innerHTML = current;\
				 document.getElementById('totalBuffer').innerHTML = total;\
			}\
			var lastKB = 0;\
			var curSpeed = 0;\
			function myDownloadCallback(current,total)\
			{\
				 curSpeed = Math.round((current - lastKB) / 1000);\
				 document.getElementById('currentDownload').innerHTML = Math.round(current / 100000)/10;\
				 document.getElementById('totalDownload').innerHTML = 'of ' + Math.round(total / 100000)/10 + ' MB';\
				 document.getElementById('downloadSpeed').innerHTML = '(' + curSpeed + 'KB/s)';\
				 lastKB = current;\
			}\
			var plugin;\
			if(navigator.userAgent.indexOf('MSIE') != -1)\
			{\
				plugin = document.getElementById('ie_plugin');\
			}\
			else\
			{\
				plugin = document.getElementById('np_plugin');\
			}\
		\
			var BScounter = 0;\
			function DivXPluginSinks()\
			{\
				this.statusCallbackSink = function(status)\
				{\
					var s = parseInt(status);\
					var cs = document.getElementById('currentStatus');\
					switch(s)\
					{\
						 case 0:\
						 cs.innerHTML = 'Initialized';\
						 break;\
						 case 1:\
						 cs.innerHTML = 'Video Opened';\
						 break;\
						 case 2:\
						 cs.innerHTML = 'End of Video';\
						 break;\
						 case 10:\
						 cs.innerHTML = '';\
						 break;\
						 case 15:\
						 BScounter++;\
						 cs.innerHTML = 'Connect Attempt #'+BScounter;\
						 break;\
						 case 16:\
						 cs.innerHTML = 'Buffering Stop';\
						 break;\
						 case 17:\
						 cs.innerHTML = 'Download Start';\
						 break;\
						 case 18:\
						 cs.innerHTML = 'Download Failed';\
						 break;\
						 case 19:\
						 if (document.getElementById('totalDownload').innerHTML == '' && BScounter<=10)\
							setTimeout(function(){plugin.Open('"+downloadlink+"')},5000);\
						 else if (document.getElementById('totalDownload').innerHTML == '' && BScounter>10)\
							cs.innerHTML = 'Failed to Connect';\
						 else\
						 	cs.innerHTML = 'Download Done';\
						 break;\
					}\
				}\
			}\
			myDivXPlugin = new DivXPluginSinks();\
		";
		var hh = document.getElementsByTagName('head')[0];
		hh.appendChild(ss);
		
		ss = document.createElement("style");
		ss.setAttribute("type","text/css");
		var def = "\
		    #iceQuickStream, #fakeVidPlayer, #divxPlayer {\
			background-color:black;\
			color:white;\
			font-family:Arial, Helvetica, sans-serif;\
			font-size:12px;\
		    }\
		";
		if (ss.styleSheet) {   // IE
		    ss.styleSheet.cssText = def;
		} else {                // the rest
		    var tt = document.createTextNode(def);
		    ss.appendChild(tt);
		}
		hh.appendChild(ss);
	    }
	    
	    function matchLoop(){
		matched = document.body.innerHTML.match(/>http:\/\/dc(.*)<\/div>/i);
		if (!matched){
			setTimeout(function(){matchLoop();},250);
		}else{
			matched = matched[1];
			ice2haredEmbed();
		}
	    }
	    
	    var matched = 0;
	    matchLoop();
	    
	    
	}
}


// mega
else if ((location.host.match('megaupload.com') || location.host.match('megaporn.com')) && location.href.match('\\?d=')){

	// check for bad link
	var pagecontent = document.body.innerHTML;
	var bad = pagecontent.search("Unfortunately, the link you have clicked is not available.") +
	pagecontent.search("The file that you're trying to download is larger than 1 GB.") +
	pagecontent.search("The file you're trying to download is password protected.") + 
	pagecontent.search(".mkv</font><br>") +
	pagecontent.search(".ogm</font><br>") +
	pagecontent.search(".001</font><br>") +
	pagecontent.search(".002</font><br>") +
	pagecontent.search(".003</font><br>") +
	pagecontent.search(".rar</font><br>") +
	pagecontent.search(".zip</font><br>");
	
	if (bad > 0 && !document.getElementById('iceVerify')){
		iceVerify();
	}
	
	// display embed
	else if (!document.getElementById('iceQuickStream'))
	{
		if (document.body.innerHTML.indexOf('megavideo.com/?d=')>-1){
			flashlink = gup('d');
		}
		
		if (document.getElementById('countdown')){
			//timer = document.getElementById('countdown').innerHTML;
		}

		var a = document.getElementsByTagName('a');
		for (var i=0;i<a.length;i++){
			if (a[i].href.indexOf('megaupload.com/files/') > 0){
				downloadlink = escape(a[i].href);
				iceEmbed();
				break;
			}
		}
		 		
	}
	
}

Post Reply

Who is online

Users browsing this forum: No registered users