Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #22278
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2013-12-10 09:40 -0800 |
| Message-ID | <4ef66f86-2f6a-402f-875d-e8d21cae20c6@googlegroups.com> (permalink) |
| Subject | JavaScript get specific values from web page and add them to end of url in a multiple tabs |
| From | chozze@gmail.com |
I want to use tampermonkey with Chrome to do this I am inspired by this code http://hibbard.eu/tampermonkey-tutorial/
1) First I need to collect the values to array
ID: 70966, Obratnik raka (slovensky) ... 65,- Kc
ID: 88853, Mechanickz pomeranc ... 65,- Kč
From this sample code I need just numbers after ID:
2) then open in multiple tabs for each item and at the end of the url should be ID number (after id=)
http://antikvariat-smichov.cz/detail.php?kategorie=28&id=90021
I examine the example witch I mentioned above but there he simply specify by jquery to extract urls based on css style I cant not do that in this example. Also when he gets the array it is already full url wich he can easily refer to
ok checked the similiar questions but no better idea
I think I put numbers into array by this
$(document).ready(function() {
var hrefs = new Array();
var elements = $('.headline > a');
elements.each(function() {
hrefs.push($(this).attr('href'))
});
any ideas how to solve this or first maybe find the right command for getting that numbers?
any help appreciated, thank you
chozze
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
JavaScript get specific values from web page and add them to end of url in a multiple tabs chozze@gmail.com - 2013-12-10 09:40 -0800
Re: JavaScript get specific values from web page and add them to end of url in a multiple tabs JJ <duh@nah.meh> - 2013-12-11 11:28 +0700
Re: JavaScript get specific values from web page and add them to end of url in a multiple tabs Izmarias Klon <chozze@gmail.com> - 2013-12-13 01:31 -0800
Re: JavaScript get specific values from web page and add them to end of url in a multiple tabs Izmarias Klon <chozze@gmail.com> - 2013-12-13 01:38 -0800
Re: JavaScript get specific values from web page and add them to end of url in a multiple tabs Ben Bacarisse <ben.usenet@bsb.me.uk> - 2013-12-13 12:26 +0000
Re: JavaScript get specific values from web page and add them to end of url in a multiple tabs Izmarias Klon <chozze@gmail.com> - 2013-12-13 08:39 -0800
Re: JavaScript get specific values from web page and add them to end of url in a multiple tabs Ben Bacarisse <ben.usenet@bsb.me.uk> - 2013-12-13 17:37 +0000
Re: JavaScript get specific values from web page and add them to end of url in a multiple tabs Izmarias Klon <chozze@gmail.com> - 2013-12-14 02:00 -0800
Re: JavaScript get specific values from web page and add them to end of url in a multiple tabs Izmarias Klon <chozze@gmail.com> - 2013-12-14 02:16 -0800
Re: JavaScript get specific values from web page and add them to end of url in a multiple tabs Izmarias Klon <chozze@gmail.com> - 2013-12-14 03:03 -0800
Re: JavaScript get specific values from web page and add them to end of url in a multiple tabs Ben Bacarisse <ben.usenet@bsb.me.uk> - 2013-12-14 12:18 +0000
Re: JavaScript get specific values from web page and add them to end of url in a multiple tabs Izmarias Klon <chozze@gmail.com> - 2013-12-15 21:44 -0800
csiph-web