1. Hi there, Guest

    Only registered users can really experience what DLP has to offer. Many forums are only accessible if you have an account. Why don't you register?
    Dismiss Notice
  2. Hey DLP authors, there's a bit less than a month left to wow us with your story about Daphne or Azkaban.

    The Author applies the words to the paper or it gets the hose. Write or die! The more the merrier.

    Click here for more information!
    Dismiss Notice

High Quality Script for Youtube (images)

Discussion in 'Movies, Music and TV shows' started by Paimon, Mar 24, 2009.

  1. Paimon

    Paimon That fucking cat

    Joined:
    Dec 20, 2006
    Messages:
    308
    This is sort of relate to the Fanfiction theme script in that you need one of the add-ons used for it.

    Using the Greasemonkey Add-On for firefox, you can make a script that makes any of the videos you watch high quality so you don't have to reload or anything of the sort.

    Step 1: Install the greasemonkey add-on at:

    https://addons.mozilla.org/en-US/firefox/addon/748

    Step 2: Right click on the monkey icon at the lower right of Firefox and click 'New User Script.'

    [​IMG]

    Step 3: Type in a name for the script, a name space for the file, and type in *youtube.com/watch?v=* as shown.

    [​IMG]

    Step 4: When the text editor opens with the script type in:

    Code:
    if (window.location.toString().match("&fmt=18") == null) 
    {
    window.location.replace(window.location + '&fmt=18');
    }
    [​IMG]

    Step 5: ???

    [​IMG]

    Step 6: PROFIT!!

    [​IMG]

    Have fun.
     
  2. Knox

    Knox The Last Remnant DLP Supporter

    Joined:
    Aug 11, 2006
    Messages:
    1,087
    Location:
    At the crossroad where the demon lies. Waiting to
    Paimon says Bumb, So I BUMP!

    [​IMG]
     
  3. Solomon

    Solomon Heir

    Joined:
    Jul 11, 2007
    Messages:
    2,744
    Location:
    Minnesota
    This is fucking awesome. Thanks, Paimon.
     
  4. Kthr

    Kthr Unspeakable DLP Supporter

    Joined:
    Sep 1, 2008
    Messages:
    713
    Location:
    São Paulo, Brazil
    Mind explaining what the commands do? I mean, with my lack of knowledge about programing I could make a guess and say that the script searches for the HQ option and activate it "if null"?

    And what the fuck does "&fmt=18" mean? the HQ button position?
     
  5. Solomon

    Solomon Heir

    Joined:
    Jul 11, 2007
    Messages:
    2,744
    Location:
    Minnesota
    It just adds the line "&fmt=18" to the end of the URL if it isn't there and reloads the page, NightSpy. &fmt=18 is basically the way you force a video on YouTube to be HQ when possible, even if the option isn't apparent.
     
  6. Kthr

    Kthr Unspeakable DLP Supporter

    Joined:
    Sep 1, 2008
    Messages:
    713
    Location:
    São Paulo, Brazil
    Heh, thanks. I really should start learning more about java and stuff. Damn useful to know.
     
Loading...