Greasemonkey,jquery and elements from links to new link
- by Bulfen
Hi all,
I'm pretty new to jquery and greasemonkey. So if someone could help me out it would be great.
Here is an example url I get values from.
Org: http://www.example.com/index.php?value1=blabla1&sid=blabla2&mid=blabla3
Result I want: link://www.example.com/blabla1/data/blabla2/blabla3.ext
example:
var sid=document.URL.substring(document.URL.indexOf('sid=')+15); // How do I set the lenght of blabla2 ? -7 ?
Anyway, Hopefully someone understand what I mean and can help me out alittle.