XTube - Video Download Link

By Signe Last update Feb 17, 2011 — Installed 25,127 times.

Change

in
Subscribe to Change 2 posts, 2 voices



JoeSimmons Scriptwright

I think your getQueryVariable function can be replaced with mine, it's quicker and one line:

String.prototype.getPref = function(s, splitter) {
return this.split(s+"=")[1].split((splitter||"&"))[0];
};
var url = window.location.href,
    whos = url.getPref('v_user_id'),
    vix = url.getPref('idx'),
    vidid = url.getPref('v'),
    clid = url.getPref('cl');

 
Signe Script's Author

I'll do that, thanks. Optimizing it wasn't high on my priority list, but I like how you did it.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel