tw8 Posted July 30, 2008 Report Posted July 30, 2008 A se folosi impreuna cu GreaseMonkey:// ==UserScript==// @name HackClips Download - by tw8// @namespace tw8// @description Using this script you can download any video from "http://www.hackclips.com/"// @include [url]http://www.hackclips.com/video/*[/url]// ==/UserScript==/*Made by tw8Have a look on: [url]http://www.hackpedia.info[/url] [url]http://skullbox.info[/url] [url]http://rstcenter.com[/url]*/function get_link() { var link = document.location.href; link = link.substr(link.lastIndexOf("/")+1); return "http://www.hackclips.com/fplayer.php?id=" + link; }function true_link(source) { var link = source.substr(0, source.indexOf("</file>")); link = link.substr(link.indexOf("<file>")+6); document.location = link; return 0; }GM_registerMenuCommand ('Download this video', function() { var tw8 = get_link(); GM_xmlhttpRequest ({ method:"GET",url:tw8, headers:{"User-Agent":"Mozilla/5.0", "Accept":"text/xml"}, onload:function(response) { var continut = response.responseText; true_link(continut); } }) } );O sa fac si un mini-tutorial de instalare, pentru ca multi nu stiu cum sa il puna pe picioare. Quote
Vhaerun Posted July 30, 2008 Report Posted July 30, 2008 ieri am inceput si eu sa folosesc greasemonkey . mi-am facut un "script" pt. un joc online, o sa pun si eu niste tutoriale , pe masura ce la fac .sper sa mai vad ceva idei de greasemonkey de la tine Quote