free.save.tv script

Subscribe to free.save.tv script 13 posts, 3 voices

 
Gasoline- Scriptwright

hey guys, so here comes my question: is it possible to change that awfully slow javascript based recorder at http://free.save.tv/ to something usefull? at the moment you have to click the up and down arrows everytime you want to change a number, so if you want to record something 07.09.2007 at 11.20pm you click like 40 times on those arrows, i could provide a login to the site if you need one. i'm no programmer so i'm not sure what you need, get in touch if you feel like you could do a small script that makes the numbers editable for example. im not sure whats possible and not so hopefully i get some help here

preview of the recorder:
http://imgbox.de/?img=g48709g116.jpg

 
Descriptor Scriptwright

That's probably not JavaScript but a plugin, either Java or Flash.
Did you have to download a plugin? If that's the case there's nothing you can do except to ask the developers.

 
Gasoline- Scriptwright

no, i could just make an account and start recording, so no plugin needed. as i said im no programmer just wanted to know what are the possibilities. you need anything to determine if its possible? like the sites source code? i think you need to be german to do an account but i could give you mine if you need one to look at it a little closer :)

edit: btw just for info: i don't think its flash based, i don't see any flash elements if i want to block something with firefox's adblock plugin

 
Descriptor Scriptwright

Well, it says "EasyRecord Plugin", which implies a plugin, the picture you posted looks like a plugin, so I'm betting it's a Java plugin (not JavaScript).
But if it's an image map, then copy the map and any form html source and paste it here in <pre> tags here and I'll have a look at it.

 
Gasoline- Scriptwright

i hope i got the right things, i just copied what i could find in the source of the iframe with the recorder thingy. you mean that one with the image map?
http://www.save.tv/STV/IMG/global/SVCR/telefunk...

edit: doesn't seem to work out very well with the pre tags i guess i copied to much. saved the whole thing now is that ok? if so you can download it there (btw there seems to be a form on line 1030)
http://archiv.to/?Module=Details&HashID=FILE46B...

 
Descriptor Scriptwright

You are right, it's just a complex image/table. There is no image map or plugin that I can see.

Unfortunately what looks like should be form inputs are not, so you can't just type in the time, instead they try to make this pretty fancy image that sacrifices usability. They could replace the time boxes with form inputs, but that would probably mess up the pretty image display in some browsers. Also, the way they do it allows them to skip any form validation, since there's no way to enter a letter for example.

I could probably convert everything into form inputs, not sure that it wouldn't mess up the display, but does anyone really care? You want it to be easy to use or pretty? the inputs would allow you to enter the times directly, where now they are hidden and the script changes text content and the hidden form values. The logical thing would be to replace the text with the actual form inputs, being visible of course.

I think this is the code that needs to be changed, but not absolutely sure, since I only spent a couple minutes looking at it...

<form action="/REMOVED/tcSVCRShow.cfm" method="post" name="formular">
   <input type="Hidden" name="sStartdateDay" value="1">
   <input type="Hidden" name="sStartdateMonth" value="1">
   <input type="Hidden" name="sStartdateYear" value="2007">
   <input type="Hidden" name="sStartdateHour" value="00">
   <input type="Hidden" name="sStartdateMinute" value="1">
   <input type="Hidden" name="sEnddateHour" value="1">
   <input type="Hidden" name="sEnddateMinute" value="1">
 

So anyone who wants to mess with it should be able to just replace the type attribute to "text" and insert the name as text after the input.

But it shouldn't be too hard to be more elegant and convert the divs that contain this text: <div class="stv-basic-2stellen" id="sdivStartdateDay">01</div> into the corresponding inputs or move the inputs inside them, might be able to get it to look pretty much the same as it is that way.

I have a copy of it so maybe I'll have some time to play with it, unless someone else wants to try it.

 
Gasoline- Scriptwright

thank you for taking your time :) of course i wouldn't mind if the page gets a little messed doesn't need to look pretty as long you can actually use it. the way it works at the moment is just a big mess even if it looks nice, example: you press one of the up arrows it takes 2-3 seconds to change the number from 1 to 2, in the worst case you do that 31 times for the day, 12 times for the month, 24 times for the hour, 60 times for the minute and 12 times for the tv-channel. that summarizes into a real hassle.

i'm not in hurry, i could get a long with it until now so i will do it also in future. it would just be nice to have something a bit more user friendly. if anyone feels like doing the work i wouldn't say no of course (if i could i would do it myself but i never really looked into java script and i'm not sure if i ever manage to learn enough to the point of actually using it for something like this)

 
Descriptor Scriptwright

Well, this looks pretty good I think, but you need to make sure to enter the correct value because it doesn't check that the day is a number between 1 - 31 or that the minute isn't 99. Also I don't think you need the leading 0 in "01", I didn't change that part of the code so that's the way it displays.

Finally, you need to change the // @include to the correct location, I just made a guess and have no idea if that's correct.

// ==UserScript==
// @name          SVCRShow-fix
// @namespace     http://userscripts.org/users/31653
// @description   Fix SVCR Recorder free.save.tv
// @include       http://free.save.tv/STV/M/obj/TC/tcSVCRShow.cfm*
// ==/UserScript==

// List of items to replace
var dateInputs = ["StartdateDay", "StartdateMonth", "StartdateYear", "StartdateHour", "StartdateMinute", "EnddateHour", "EnddateMinute"];
var inputName, divId, inputCopy, hideDiv;

var SVCRForm = document.forms.namedItem("formular");
for(var i=0; dateInputs.length > i; i++){
  // div of class "stv-basic-2stellen" ids start with "sdiv"
  divId = "sdiv" + dateInputs[i];
  // form hidden inputs start with "s"
  inputName = "s" + dateInputs[i];
  hideDiv = document.getElementById(divId);
  inputCopy = SVCRForm.elements.namedItem(inputName).parentNode
      .removeChild(SVCRForm.elements.namedItem(inputName));
  inputCopy.type = "text";
  inputCopy.setAttribute("class","stv-basic-2stellen");
  hideDiv.parentNode.insertBefore(inputCopy, hideDiv);
  hideDiv.style.display = "none";
}

I have to say those guys aren't very good with HTML or JavaScript. At least it was pretty easy to fix.

 
Gasoline- Scriptwright

it works :) thanks a million mate, that really makes the whole thing a lot more usable.

 
Descriptor Scriptwright

Great, glad it works for you. I tried to write it in such a way that you might be able to fix it if the page changes, or at least kind of understand what it's doing.

 
Gasoline- Scriptwright

eheh, it doesn't look too hard, with your piece of (well explained) code plus the source from the website i should be able to fool around with it in the worst case :) thank you again, btw i don't see the possibility to send private messages here, any way i can contact you for a little goodie?

 
Descriptor Scriptwright

I will have a website link eventually.

 
brosel User

Hello,
I am paying customer using that service. Please dont spread the script.
On one hand, its wrong. On the other hand, it will threaten the future of the service.

The people there are working very hard to keep up the service, so in the name of god (it would be a great sin not to do so) I beg you not to support the evil authors of this malicious script.

From a distant look, by the way, it seems to somehow disrupt your browser-settings if installed under Win XP SP3.

Also, the author is a well known hacker, and might use your computer to start distributed attacks on the Agency of Homeland Security by uploading "Musikantenstadl" through save.tv. Please be aware that thes message will selfdestruct in 5 seconds, so close the browser window containing this thread quickly enough.

With best regards,
Hans Buchholz