Comments by Mindeye on scripts

193 comments

Comment on:
YousableTubeFix

Oct 5, 2008

anonymous_user:
It was added some time ago. I'm glad you like it ;-)

naoki:
Ok, I'll think about a system to configure the format choosing

DeathWolf:
Thanks for the report. I've encounter that issue before and didn't know Flash 9 had that limit

Alala:
What description box are you talking about? The video information box?

Comment on:
Userscripts Remove Spam Scripts

Oct 2, 2008

Use something like this:

function delNode(targetNode) {	
  if (targetNode) return targetNode.parentNode.removeChild(targetNode);
  return null;
}

HTMLElement in a Greasemonkey script is wrapped in an XPCNativeWrapper, so it won't let you add methods to its prototype. The "Element" in your code isn't a special object, it's a normal variable (an empty anonymous function after the assignment)

Comment on:
YousableTubeFix

Sep 29, 2008

ShdNx:
I've send you an e-mail to your address

naoki:
1. I'll note that down, but I don't understand why would anyone do that. The ability to resize the video and change its quality are the main features of the script
2. That is something I have thought about too. The H264 version has better audio, but I'm not sure about the video quality. I'll see what I can do about that
I can see problems with your suggestion about categories: there are many music videos which aren't in the Music category, and it would cause confusion that the script choose different qualities for different categories. And a Greasemonkey script can't definitively do what you suggest about taking the video and the audio from different sources and multiplex it together
3. I see. I'll try to fix that in the next version
4. Thank you for your support and feedback

Comment on:
YousableTubeFix

Sep 27, 2008

naoki:
I appreciate your suggestions, but I don't really have the time or desire to do all that. Actually, I'm always struggling to find time to work on YousableTubeFix, I stopped working in the Opera version because of that

I really develop this script for myself, because I find it useful (almost indispensable ;-) ) and share it with others, I don't make money from it (57547 installations and only 1 [one] person has donated). Popularity is nice, but it isn't my main objective

Comment on:
YousableTubeFix

Sep 23, 2008

YouTube player has a problem with Flash 10 Beta (see the common problems section in the script description). This happens with and without the script. Uninstall and install Flash 9 to solve the problem

Comment on:
YousableTubeFix

Sep 23, 2008

Script updated:
- The "remove character counter" feature now use DOM mutation events instead of watch, avoiding unsafeWindow
- Added option to don't move or resize the video by default (1x and in the right column). The video will be moved and resized if the user uses a resize link (disabled by default)

PD: If anyone is waiting for the Opera version of YousableTubeFix, sorry but I've stopped working on it for the time being. I don't have enough time right now and there are some problems with it yet

Comment on:
YousableTubeFix

Sep 23, 2008

JrezIN:
I've checked a few videos and it works ok for me

Comment on:
YousableTubeFix

Sep 21, 2008

Chrono Defying Ninja:
In your Sep 12th message, you said that YouTube uses a different player to view annotated videos. I haven't seen yet. I have checked some videos with annotations and the option to remove them with the script seems to work. Do you still have this problem?

All:
The option to autochoose the best quality available uses the preference order (fastest quality available uses this too, but the other way around): 1º FLV HQ, 2º MP4 H.264, 3º FLV Low Quality. Some users have requested that the script should choose H.264 over FLV HQ because it has better quality, but I'm not sure about that: what do you think?

Comment on:
Download video from Veoh

Sep 20, 2008

I'm afraid I don't know about that ?? operator. Besides, trying to access the [1] member of the match result if the match method returns null will throw an exception and halt the script

Comment on:
YousableTubeFix

Sep 19, 2008

sillygates:
Nice idea about the try-catch, but I sometimes do want the script to fail if changes are important enough, because that make easier to find the problem (the problem sometimes is user-specific). Anyway, the script is modular and checks almost all the elements in the pages before using them, so it can gracefully fail

hiteshgv:
Yes, that's what I had thought :-)

avg:
Thanks for the compliments ;-)
Thanks for your suggestion. I'm currently using Userscripts.org - show new comments and installs, but I'll check your script

Comment on:
YousableTubeFix

Sep 15, 2008

sillygates:
Adding an option to replace the YouTube player is already in my To Do list, I agree with you about CPU use. I did some tests some time ago, but I had problems getting the new code to work under Windows (mplayer doesn't seem to have a plugin for Windows, the VLC plugin conflicts with the Windows Media Player one, etc...)

I'm working in a version of YousableTubeFix for Opera right now, but I'll probably look into that feature in the future. Your code looks good to me ;-)

hiteshgv:
It could be possible, but I don't see any benefits. The player can be replaced, but the comments, title, download links, related videos, videos for the user, stats, etc... will be wrong

Comment on:
YousableTubeFix

Sep 15, 2008

hiteshgv:
I'm doing something like that for the Opera version

naoki:
The option to remove the video responses is already in the script, look in the remove select of the configuration dialog

Comment on:
YousableTubeFix

Sep 14, 2008

moozilla:
I can't tell you much with so little information: are you using the last version of YousableTubeFix?, does it happen only with certain videos?, what are your YousableTubeFix settings?, any errors in the error console?, etc...

hiteshgv:
It's not so easy ;-) The GM_xmlhttpRequest code, for example, uses the regular xmlhttprequest, that doesn't allow cross-domain requests, so the update code won't work. GM_setValue and GM_getValue can be emulated using cookies, but there are inconvenient, etc...
But it's ok if it works for you ;-)

Comment on:
YousableTubeFix

Sep 14, 2008

hiteshgv:
That's actually quite difficult. You can't replace GM functions functionality, have to have in mind the differences in DOM and Javascript support in different browsers, etc... I know because I'm trying at this moment " to port" the script and make an Opera compatible version, with limited functionality (I can't replicate all the features without Greasemonkey functions, like update check). Maybe you should wait till I upload that "port" to begin working with it instead of with the Greasemonkey version

Comment on:
YousableTubeFix

Sep 13, 2008

hiteshgv:
It isn't a very good idea to start learning to code Greasemonkey scripts with YousableTubeFix, as it is a very complex script for a beginner. I recommend you to start with a simpler script

Some good pages with documentation are the Greasespot wiki and the Mozilla Developer Center (specially the Javascript and DOM sections)

About unsafeWindow: if a script uses it, a malicious page in the script's @include can use some tricks to gain access to privileged features available to Greasemonkey scripts (like GM APIs). There are some security checks in place to prevent it in last Greasemonkey versions though. I only use unsafeWindow if I have to, and avoid it as much as possible. However, I don't think YouTube will do that, and YousableTubeFix only executes in YouTube pages

Comment on:
YousableTubeFix

Sep 13, 2008

Naoki:
Unfortunately YouTube doesn't offer the MP3 download of the audio of the video, and a Greasemonkey script can't separate (demultiplex) the video from the audio. However, you can easily do this yourself after downloading the file using a program like VirtualDub

Greasemonkey scripts can't control the cache, that is up to Firefox and the Flash plugin

Can you give a link to a video where that autoplay issues happen? I have never seen that

It's not necessary to delete all that, only the insertAfter --> reloadPlayer line is, if you don't use the resize links

Maybe, but I'll try to fix that with the current configuration setup first. However, I think is has something to do with the GM_registerMenuCommand API, so I'll make a test case and send it to Greasemonkey developers

Comment on:
YousableTubeFix

Sep 13, 2008

Script updated:
- Fixed the following features which were broken by YouTube changes: automatically expand video description, hide the collapse link, remove footer and remove header
- Added option to remove the video quality link ("watch in high quality"/"watch in normal quality") (disabled by default)

Comment on:
YousableTubeFix

Sep 13, 2008

Chrono Defying Ninja:
I'll check the id changes in YouTube code for the next version. At this moment, the footer/header removal code is already fixed

Can you post a link to the video with annotations using a different player? I haven't seen that yet. The annotations removal feature is already present in the script, look in the "Remove" select of the configuration dialog

Are you talking about the delay to change the video to the best quality available? That has nothing to do with Javascript speed, it's because the script sends request to the YouTube server to see what video formats are available. As this information hasn't been added to the YouTube XML API, and I can't check directly for the files because of Gecko bug 343028, I'm using a indirect, ugly and slow method for detecting the available formats. Its speed depends on the speed of the YouTube server to answer the requests, so there's little I can do about it

Bevvie:
As some users are requesting that (not sure why, I find the default video size too small and annoying), I'll see what I can do about it. I think I have figured a way to add it without many code changes, but I'm not sure yet. At the very least, I'll try to make it easier for users interested in this feature to edit the script to get it

Naoki:
Do you mean the video annotations? The script already have an option to remove that, see my response to Chrono Defying Ninja

Comment on:
YousableTubeFix

Sep 11, 2008

Aethonic & Meuhcoin:
Thanks for the reports. The "automatically expand video description" feature is indeed broken because of a YouTube change, will be fixed in the next version. Is there any other problem?

PD: Thanks Meuhcoin for your compliments, I appreciate them ;-)

Comment on:
YousableTubeFix

Sep 7, 2008

DarkJedi613:
Thanks for the advice, I'd never tried to download the video without the tId, it's good to know it works without it

fusen & Gwadaboy:
Gwadaboy is right. If you have Flash 10 beta installed, you may have problems with YouTube HD video, specially the H264 version. It's a problem with YouTube player, so let's wait till they fix it. I'll add a note about that in the script description (although is unrelated to the script itself)

Comment on:
YousableTubeFix

Sep 5, 2008

fusen:
I can play the video you link to in the three qualities, so the detection system works there. Are you using the video to icon feature? That can happen then, because the system YouTube has in place to prevent direct links to video: the player receives a tId (tracking id?) parameter that expires after some time, so if you left the video in iconic state for too much time and then try to play it, its tId has already expired and the YouTube servers deny the petition. That can be solved by reloading the page, as the player gets a "fresh" tId. I'm afraid I can't do anything to solve that if that's the problem

Comment on:
P2P Links

Sep 3, 2008

Script updated:
- Added support for links to torrent files in Demonoid

Comment on:
YousableTubeFix

Sep 2, 2008

dkhal:
Thanks for the compliments. However, I have to say that your script doesn't "work" with 8 formats the same way that YousableTubeFix does, because YouTube doesn't offer wmv, avi or mpg formats. Your script contacts with an external website that does a conversion of the original YouTube video to another format, losing quality in the process. You can't watch the video in those formats

Comment on:
P2P Links

Sep 2, 2008

Script updated:
- Added support for links to torrent files in Mininova

Comment on:
Userscripts.org has no class

Sep 1, 2008

How about adding the center tag to the whitelist. It's deprecated, but it can be useful to center elements in the script description as CSS styles aren't allowed