/    Sign up×
Community /Pin to ProfileBookmark

Implementing this code on a webpage

This code is made for GreaseMonkey. ([URL=”http://userscripts.org/scripts/review/42944″]see code here[/URL])

I need help converting it to .JS that can be used on a webpage.

refer to: [url]http://userscripts.org/topics/67367[/url]

this code, parses megavideo link and gives you a direct link.

is there a way, that if i put a link on my webpage like “http://www.megavideo.com/?d=5BXIXBMI

it will automatically parse and change that to the direct link..?

a example of a directlink (“http://www558.megavideo.com/files/c2e21dd4be1101acf9e376855d3d7a6c/King.of.Baking.E23.XVid.HAN.YELLOWCiNEMA.avi.flv“)

but it changed everytime the page is reloaded.

im using it for a flv player, w/c works well for me, cuz im the one who parsed the direct link.. but if someone else from another computer views my player they wont see anything because the link for them is different so they have to use the greasemonkey script to get the direct link and change the value or URL..but that would not be good..

so i wish to put “http://www.megavideo.com/?d=5BXIXBMI” on my URL to the file and it will automatically change it to the direct link depending on the user viewing..

i really need your help/
tnx

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @majidemo spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...