Enable IE to support greasemonkey and disable Yobo from downloading MP3

Source: Internet
Author: User
Tags id3 tag dedicated server

Author: code out of stock.

Yobo is my favorite music site. Its interface is refreshing and its unique "Music DNA" (that is, it automatically recommends songs for you through psychological testing). It is one of the most popular music recommendation sites in China. All the music is stored on the official dedicated server, and the download speed is fast. The format is MP3, the bit rate is 128 Kbps, And the ID3 tag is complete. In combination with the indexing of the station's artist album, it can basically replace Baidu MP3 search and kugoo download. It is depressing that the website prohibits the download of any songs, and there is no link to the download of any songs on the website.
View the HTML of the Song playback list.CodeAs follows:

< Div ID = "Ybs69395279811" Class = "Yobosongbar" Onmouseover = "Show_songmenu ('ybs69395279811 _ flag', '000000', false, 'singer _ album_list ');" Onmouseout = "Element. Hide ('yobo _ songmenubar ');" > < Table ID = "Ybs69395279811_table" Class = "Table" Cellpadding = "0" Cellspacing = "0" > < Tbody > < Tr > < TD Class = "Control" > < A Href = "Javascript: void (0 );" Onclick = "Yobo_play_song ('Http: // 222.16102.102 // I/123', 69395,279811, false );" ID = "Ybs69395279811_ctrl" Class = "Controllink" > & Nbsp; </ A > </ TD > < TD ID = "Ybs69395279811_time" Class = "Time" > 00: 00 </ TD > < TD Class = "Linkblock" > < A Href = "/Song/views/69395" Target = "_ Blank" Title = "Against cold water" Class = "Songlink" > Cold water </ A > </ TD > < TD Class = "" > By </ TD > < TD Class = "Linkblock" > < A Href = "/Singer/home/1070" Class = "Singerlink" Target = "_ Blank" Title = "Kan kan" > Kan kan </ A > </ TD > </ Tr > </ Tbody > </ Table > < Div ID = "Ybs69395279811_flag" Class = "Flag" > < IMG SRC = "/Images/blank_image.gif"   /> </ Div > </ Div >

The actual address is: the actual file address is http: // 22379102.102 // I/0903/68728218 after the suffix is added to the highlighted image. You need to send reference information of www.yobo.com to the server during download, otherwise, an invalid file of about 20 KB is returned.

In operabrowser, userjs (User script) can be used in Firefox.GreasemonkeyAdd your own user scripts. It is not difficult to add a link to download MP3 files. By the way, what isGreasemonkey?

GreasemonkeyThis allows you to add DHTML statements (User scripts) to any web page to change their display mode. Just like CSS allows you to take over web page styles, and user scripts allow you to easily control all aspects of web page design and interaction. Greasemonkey, written by Google employee Aaron Boodman, is first prevalent in Firefox and is an indispensable plug-in. The corresponding greasemonkey plug-in IE is Trixie. After you download and install Trixie, your IE will support greasemonkey. Both plug-ins involve JavaScript management.

Click to enter the greasemonkey download page.Http://greasemonkey.mozdev.org/
Click to enter Trixie http://www.bhelpuri.net/Trixie/TrixieSetup.msi

The Trixie plug-in IE is quite powerful. It can basically rival userjs in opera and has a script management interface. After downloading and installing the plug-in, put the following script file into C: \ Program Files \ bhelpuri \ Trixie \ scripts \ folder,

// = Userscript =
// @ Name Yobo MP3 download
// @ Namespace http://www.bhelpuri.net/Trixie
// @ Description creates a link to download Yobo MP3
// @ Include http://www.yobo.com /*
// @ Auther: the code is messy.
// ==/ Userscript =


( Function ()
{
VaR Es = Document. Body. getelementsbytagname ( " A " );
For ( VaR I = 0 ; I < Es. length; I ++ )
{
O = Es [I];
If (O. getattribute ( ' Classname ' ) = " Controllink " | O. getattribute ( ' Classname ' ) = " Songctrl " )
{
If (O. Tag)
{
Continue;
}
O. Tag = " Fixed " ;
VaR U = O. getattribute ( ' Onclick ' ). Tostring (). Replace ( / (Yobo_play_lite | yobo_play_song )\(\' / , '' ). Replace ( / \',.* / , '' ) + ' . MP3 ' ;
U = U. Replace ( / \ R | \ n | function anonymous \ (\) |{|} / G, '' );
VaR ELEM = Document. createelement ( " A " );
ELEM. href = U;
ELEM. innertext = " Download " ;
ELEM. style. dispaly = ' Inline-block ' ;
ELEM. style. textdecoration = ' None ' ;
// O. parentelement. parentnode. childnodes [2]. appendchild (ELEM );
O. parentelement. parentnode. childnodes [ 2 ]. Insertbefore (ELEM, O. parentelement. parentnode. childnodes [ 2 ]. Childnodes [ 0 ]);
}
}
}
)();

Open IE and click "tool-Trixie option" to open the Trixie setting interface. In our script Yobo MP3 download, you can use it.
 

From opening the Yobo ranking list, the effect should be

Test environment: IE6 + Windows XP
IE7 passed the test
Download the relevant code in this article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.