Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #30895 > unrolled thread

[Browser] How to replace strings in a URL with a javascript boormarklet?

Started byarpegiateur@gmail.com
First post2016-07-18 13:42 -0700
Last post2016-07-19 13:41 -0700
Articles 11 on this page of 31 — 5 participants

Back to article view | Back to comp.lang.javascript


Contents

  [Browser] How to replace strings in a URL with a javascript boormarklet? arpegiateur@gmail.com - 2016-07-18 13:42 -0700
    Re: [Browser] How to replace strings in a URL with a javascript boormarklet? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-07-18 23:24 +0200
      Re: [Browser] How to replace strings in a URL with a javascript boormarklet? arpegiateur@gmail.com - 2016-07-19 08:10 -0700
        Re: [Browser] How to replace strings in a URL with a javascript boormarklet? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-07-19 19:49 +0200
          Re: [Browser] How to replace strings in a URL with a javascript boormarklet? arpegiateur@gmail.com - 2016-07-19 13:34 -0700
            Re: [Browser] How to replace strings in a URL with a javascript boormarklet? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-07-20 09:39 +0200
              Re: [Browser] How to replace strings in a URL with a javascript boormarklet? arpegiateur@gmail.com - 2016-07-20 10:09 -0700
                Re: [Browser] How to replace strings in a URL with a javascript boormarklet? Osmo Saarikumpu <osmo@weppipakki.com> - 2016-07-21 16:21 +0300
                  Re: [Browser] How to replace strings in a URL with a javascript boormarklet? Osmo Saarikumpu <osmo@weppipakki.com> - 2016-07-21 16:36 +0300
                    Re: [Browser] How to replace strings in a URL with a javascript boormarklet? arpegiateur@gmail.com - 2016-07-22 12:19 -0700
                      Re: [Browser] How to replace strings in a URL with a javascript boormarklet? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-07-22 23:20 +0200
                        Re: [Browser] How to replace strings in a URL with a javascript boormarklet? arpegiateur@gmail.com - 2016-07-22 18:13 -0700
                          Re: [Browser] How to replace strings in a URL with a javascript boormarklet? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-07-23 12:02 +0200
                            Re: [Browser] How to replace strings in a URL with a javascript boormarklet? arpegiateur@gmail.com - 2016-07-26 11:49 -0700
                              Re: [Browser] How to replace strings in a URL with a javascript boormarklet? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-07-27 00:20 +0200
                                Re: [Browser] How to replace strings in a URL with a javascript boormarklet? arpegiateur@gmail.com - 2016-07-28 08:07 -0700
                                  Re: [Browser] How to replace strings in a URL with a javascript boormarklet? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-07-28 19:24 +0200
                                    Re: [Browser] How to replace strings in a URL with a javascript boormarklet? arpegiateur@gmail.com - 2016-07-28 14:44 -0700
                                      Re: [Browser] How to replace strings in a URL with a javascript boormarklet? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-07-29 00:29 +0200
                                        Re: [Browser] How to replace strings in a URL with a javascript boormarklet? arpegiateur@gmail.com - 2016-07-30 07:53 -0700
                                          Re: [Browser] How to replace strings in a URL with a javascript boormarklet? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-07-30 17:59 +0200
                                            Re: [Browser] How to replace strings in a URL with a javascript boormarklet? arpegiateur@gmail.com - 2016-08-03 08:03 -0700
                                              Re: [Browser] How to replace strings in a URL with a javascript boormarklet? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-08-03 10:05 -0700
                                              Re: [Browser] How to replace strings in a URL with a javascript boormarklet? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-08-03 23:38 +0200
                                                Re: [Browser] How to replace strings in a URL with a javascript boormarklet? arpegiateur@gmail.com - 2016-08-04 13:09 -0700
                                                  Re: [Browser] How to replace strings in a URL with a javascript boormarklet? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-08-04 22:37 +0200
                                                    Re: [Browser] How to replace strings in a URL with a javascript boormarklet? arpegiateur@gmail.com - 2016-08-05 10:54 -0700
                                                      Re: [Browser] How to replace strings in a URL with a javascript boormarklet? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-08-05 20:31 +0200
    Re: [Browser] How to replace strings in a URL with a javascript boormarklet? Aleksandro <aleksandro@gmx.com> - 2016-07-19 15:45 -0400
      Re: [Browser] How to replace strings in a URL with a javascript boormarklet? arpegiateur@gmail.com - 2016-07-19 13:40 -0700
      Re: [Browser] How to replace strings in a URL with a javascript boormarklet? arpegiateur@gmail.com - 2016-07-19 13:41 -0700

Page 2 of 2 — ← Prev page 1 [2]


#30997

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2016-07-30 17:59 +0200
Message-ID<XnsA655B700865DEeejj99@194.109.6.166>
In reply to#30996
arpegiateur@gmail.com wrote on 30 Jul 2016 in comp.lang.javascript:

>> (...)
>> 
>> Presuming on what others know on Usenet 
>> is not a good way to ask Qs.
>>
>> (...) 
>> Wow! So if the feature is not new, it is not a bookmarklet?
>> 
>> Seems you do not enjoy being taken for a ride.
>> 
>> 
> What isn't a good way? and "a feature is not new"?
Your words were: 
>>> ".... contains JavaScript commands that add new features to the browser"

So my "if a feature is not new" would logically point to your words.

> I think something has been lost

You should not skip my words ">> (...)", if you want to comment on it.

Most Usenet news-servers will still have the conversation stored,
so you can quite easily look it up if you lost track.

> in translation 1 or 2 posts back

Eh? Did you translate it somehow? 
Into what language?
This NG is only about the Javascript language.

> and it's compounding now,

"compounding" ??

<https://en.wikipedia.org/wiki/Compound>

> because to be honest I don't have the slightest
> idea of what you're talking about now. 

Always a good thing to be honest, I wouldn't have expected differently.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#31047

Fromarpegiateur@gmail.com
Date2016-08-03 08:03 -0700
Message-ID<2639dedf-d082-4a52-bb26-584fec7f0244@googlegroups.com>
In reply to#30997
Evertjan, you were helpful, but now, forgive if I'm wrong, but it seems you're just prolonging this conversation by questioning everything I respond to, just for the kick of it, which makes me feel that either your knowledge of the english language makes you take things too much to the letter and you're just confused with certain things I say, or you are trolling me; if it's the first case - and I'm betting it is - I mean no offence.

## Meaning of "Lost in translation":
 http://www.urbandictionary.com/define.php?term=Lost%20In%20Translation
"When something is translated into another language, and sometimes translated back into the original language, and because of differences of the languages some of the original meaning is lost."

## Exponential (coumpounding) error:
 https://en.wikipedia.org/wiki/Exponential_error
"Exponential error is an idea expressing how a very small error can compound itself over time. It can be characterized as the exponential growth of an error or the application of exponential growth in terms of an error."


And I only skip words to address just the topics at the beggining and the end of a certain paragraph without loosing context; no need to include the whole thing, that would just get in the way of what I was pointing, besides the original paragraph is present in previous posts. Ironically you broke my "I think something has been lost in translation" sentence in half when making your replies :-)


On Saturday, July 30, 2016 at 4:59:27 PM UTC+1, Evertjan. wrote:
> > What isn't a good way? and "a feature is not new"?
> Your words were: 
> >>> ".... contains JavaScript commands that add new features to the browser"
> 
> So my "if a feature is not new" would logically point to your words.

Who said the feature is not new? And who cares if either it is or not?
And they are not "my" words, that's the official definition of a bookmarklet that I quoted, I didn't invent it.


> > because to be honest I don't have the slightest
> > idea of what you're talking about now. 
> 
> Always a good thing to be honest, I wouldn't have expected differently.
 
Good.

[toc] | [prev] | [next] | [standalone]


#31048

From"Michael Haufe (TNO)" <tno@thenewobjective.com>
Date2016-08-03 10:05 -0700
Message-ID<3cb83a2b-1661-40a6-8677-36d98cce2be5@googlegroups.com>
In reply to#31047
On Wednesday, August 3, 2016 at 10:03:20 AM UTC-5, arpeg...@gmail.com wrote:
> Evertjan, you were helpful, but now, forgive if I'm wrong, but it seems you're just prolonging this conversation by questioning everything I respond to, just for the kick of it, which makes me feel that either your knowledge of the english language makes you take things too much to the letter and you're just confused with certain things I say, or you are trolling me; if it's the first case - and I'm betting it is - I mean no offence.

My suggestion is to cut your losses here.

[toc] | [prev] | [next] | [standalone]


#31051

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2016-08-03 23:38 +0200
Message-ID<XnsA659F0866FB1eejj99@194.109.6.166>
In reply to#31047
arpegiateur@gmail.com wrote on 03 Aug 2016 in comp.lang.javascript:

> Evertjan, you were helpful, but now, forgive if I'm wrong, but it seems
> you're just prolonging this conversation by questioning everything I
> respond to, just for the kick of it, which makes me feel that either
> your knowledge of the english language makes you take things too much to
> the letter and you're just confused with certain things I say, or you
> are trolling me; if it's the first case - and I'm betting it is - I mean
> no offence. 

Even if it were "for the kick of it" that would not be improper on Usenet,
but it is not.

This is an international NG using English as its medium of communication,
but that does not mean the natives can use local idiom ad random just for 
the same kick.

One should rather not presume on the language skills of the NG members,
outside their skills of the Javascript dialects.

>## Meaning of "Lost in translation":
>  http://www.urbandictionary.com/define.php?term=Lost%20In%20Translation
> "When something is translated into another language, and sometimes
> translated back into the original language, and because of differences
> of the languages some of the original meaning is lost." 

So I hold that "urbandictionary" slang is out of bounds on this NG.

>## Exponential (coumpounding) error:
>  https://en.wikipedia.org/wiki/Exponential_error
> "Exponential error is an idea expressing how a very small error can
> compound itself over time. It can be characterized as the exponential
> growth of an error or the application of exponential growth in terms of
> an error." 

Sme objection.

> And I only skip words to address just the topics at the beggining and
> the end of a certain paragraph without loosing context; no need to
> include the whole thing, that would just get in the way of what I was
> pointing, besides the original paragraph is present in previous posts.
> Ironically you broke my "I think something has been lost in translation"
> sentence in half when making your replies :-) 
> 
> 
> On Saturday, July 30, 2016 at 4:59:27 PM UTC+1, Evertjan. wrote:
>> > What isn't a good way? and "a feature is not new"?
>> Your words were: 
>> >>> ".... contains JavaScript commands that add new features to the
>> >>> brows 
> er"
>> 
>> So my "if a feature is not new" would logically point to your words.

Ah yes.

> Who said the feature is not new? And who cares if either it is or not?
> And they are not "my" words, that's the official definition of a
> bookmarklet that I quoted, I didn't invent it. 

I doubt "bookmarklet" has an "official definition", but if you quote 
something, using it as an argument, you should be prepared such argument to 
be countered.
  
>> > because to be honest I don't have the slightest
>> > idea of what you're talking about now. 
>> 
>> Always a good thing to be honest, I wouldn't have expected differently.
>  
> Good.

The game of responding to a response must be played by both sides,
so complaining that the other side plays that game does not hold.

Perhaps take the advice of Michael Haufe?

==============

I had hoped, however to get back to the matter of input and output of the 
bookmarklet, that's where somewhere the confusion began, methinks.

"location.href" could be such a dual function [read/write] method, but imho 
it should be thoroughly tested for the browser used.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#31064

Fromarpegiateur@gmail.com
Date2016-08-04 13:09 -0700
Message-ID<ab4b5148-1d8e-4e85-b734-4bf092a313d6@googlegroups.com>
In reply to#31051
On Wednesday, August 3, 2016 at 10:38:49 PM UTC+1, Evertjan. wrote:
> 
> This is an international NG using English as its medium of communication,
> but that does not mean the natives can use local idiom ad random just for 
> the same kick.

I'm not an english language native, and the terms I said are global, not local idiom.


> So I hold that "urbandictionary" slang is out of bounds on this NG.

Again, global.


> >## Exponential (coumpounding) error:
> >  https://en.wikipedia.org/wiki/Exponential_error
> > "Exponential error is an idea expressing how a very small error can
> > compound itself over time. It can be characterized as the exponential
> > growth of an error or the application of exponential growth in terms of
> > an error." 
> 
> Sme objection.


What objection? That one came from wikipedia so it's well known enough. 
Please note that I'm not blaming you *at all* for not knowing them, as much widespreaded as they are, after all no one is obliged to now everything about the english language, I sure don't. 
But at least you could just recognize you didn't know those expressions instead of keep dismissing them as local slang or even non-existant, which they definetly are not. Why do you think the movie "Lost in Translation", with Bill Murray in Japan has that name?


> I doubt "bookmarklet" has an "official definition", but if you quote 
> something, using it as an argument, you should be prepared such argument to 
> be countered.

Here's a suggestion: try to google it. It doesn't have to be with Google since you don't like them, use DuckDuckGo for instance, and see how widespread that word is.


> The game of responding to a response must be played by both sides,
> so complaining that the other side plays that game does not hold.
> 
> Perhaps take the advice of Michael Haufe?

Of course it must, but you kept questioning everything I said in an irrelevant ping-pong with no purpose in view. But I get it, you didn't understood what I said. No harm done.
I'm about to take Michael's advice, yes, I see you understood that expression he used


> ==============
> 
> I had hoped, however to get back to the matter of input and output of the 
> bookmarklet, that's where somewhere the confusion began, methinks.
> 
> "location.href" could be such a dual function [read/write] method, but imho 
> it should be thoroughly tested for the browser used.
> 

It worked on Firefox; I just tried it in Chrome, Opera (the new one) and Vivaldi, and it worked on them also.
I can't pronounce much about the 'location.href' since, remember, I don't know anything of javascript, that's why I came here in the 1st place :)
Cheers

[toc] | [prev] | [next] | [standalone]


#31066

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2016-08-04 22:37 +0200
Message-ID<XnsA65AE613E29C4eejj99@194.109.6.166>
In reply to#31064
arpegiateur@gmail.com wrote on 04 Aug 2016 in comp.lang.javascript:

>> =============
>> 
>> I had hoped, however to get back to the matter of input and output of
>> the 
>  
>> bookmarklet, that's where somewhere the confusion began, methinks.
>> 
>> "location.href" could be such a dual function [read/write] method, but
>> im 
> ho 
>> it should be thoroughly tested for the browser used.
>> 
> 
> It worked on Firefox; I just tried it in Chrome, Opera (the new one) and
> Vivaldi, and it worked on them also. I can't pronounce much about the
> 'location.href' since, remember, I don't know anything of javascript,

Well, this Usenet NG is not a help-desk. 
Discussion is or should be a co-operative effort.

I don't remember you 'don't know anything of Javascript',
I just seem to remember you professed that. 

And I do not believe your pronounced profession,
that you 'don't know anything of Javascript'. 
Your knowledge of Javascript is at least more than nothing.

> that's why I came here in the 1st place :) 

No, that is not true, you came here to get help,
and, since this is not a helpdesk, you got more than help,
you got unasked advice too, unasked critique too, 
and perhaps you were even taken for a ride.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#31078

Fromarpegiateur@gmail.com
Date2016-08-05 10:54 -0700
Message-ID<f3b2091b-d64e-4113-86c4-a7db8a6db239@googlegroups.com>
In reply to#31066
On Thursday, August 4, 2016 at 9:37:02 PM UTC+1, Evertjan. wrote:
> 
> I don't remember you 'don't know anything of Javascript',
> I just seem to remember you professed that. 

You "don't remember" what you "just seem to remember". Right. No wonder we are going around in circles. In my 1st post and maybe in others I clearly said I didn't know a thing about javascript, I don't see where's the confusion.


> And I do not believe your pronounced profession,
> that you 'don't know anything of Javascript'. 
> Your knowledge of Javascript is at least more than nothing.

No, it's really nothing. At best I may be aware of a variable being set and being used later specially when it has an unequivocal name, but in a script that someone else has made, I don't know how to program in js, not to mention that I think I have a better insight of what I really know than you.


> > that's why I came here in the 1st place :) 
> 
> No, that is not true, you came here to get help,

Yes, to get help in javascript. Jesus!

> and, since this is not a helpdesk, you got more than help,
> you got unasked advice too, unasked critique too, 
> and perhaps you were even taken for a ride.

And now I'm getting unasked spam. 
 Clearly I was wrong when I said that you just didn't understand what I wrote.
You sure love misunderstandings, don't you? You said it yourself twice that I was "taken for a ride", which served what purpose, exactly?

No it's not a 'helpdesk', it's a place where people can post questions and get answers from other people, which I did. You on the other hand are trying to make it "4chan" but you failed.

This ends here, I'm done. Thanks for your initial help, special thanks to Osmo who took from there and did exactly what I wanted and didn't went around in circles.
As you said Michael, time to cut my losses.

Over and out, drop the mic, leaving the building, and all that stuff. 
"Ride" over.

[toc] | [prev] | [next] | [standalone]


#31079

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2016-08-05 20:31 +0200
Message-ID<XnsA65BD0BAAD251eejj99@194.109.6.166>
In reply to#31078
arpegiateur@gmail.com wrote on 05 Aug 2016 in comp.lang.javascript:

> On Thursday, August 4, 2016 at 9:37:02 PM UTC+1, Evertjan. wrote:
>> 
>> I don't remember you 'don't know anything of Javascript',
>> I just seem to remember you professed that. 
> 
> You "don't remember" what you "just seem to remember". Right. No wonder
> we are going around in circles. In my 1st post and maybe in others I
> clearly said I didn't know a thing about javascript, I don't see where's
> the confusion. 

you don't have to agree with my words, but you could at least read them.

Things are not true just because you stated so.

I do not believe you 'don't know anything of Javascript',
even though you professed so.

>> And I do not believe your pronounced profession,
>> that you 'don't know anything of Javascript'. 
>> Your knowledge of Javascript is at least more than nothing.
> 
> No, it's really nothing.

Well, I don't believe so, 
your argument should be more factual than "really".

> At best I may be aware of a variable being set
> and being used later specially when it has an unequivocal name,

Is that "nothing"?

> but in a script that someone else has made, 

[period?]

> I don't know how to program in js,
> not to mention that I think I have a better insight of what I really
> know than you. 

Well, that does not convince me,
also as you just stated that you might be aware.

>> > that's why I came here in the 1st place :) 
>> 
>> No, that is not true, you came here to get help,
> 
> Yes, to get help in javascript. Jesus!

Wel, you are in the wrong NG calling me Jesus.

>> and, since this is not a helpdesk, you got more than help,
>> you got unasked advice too, unasked critique too, 
>> and perhaps you were even taken for a ride.
> 
> And now I'm getting unasked spam. 

No, you asked for it, though it was not spam, as it was on topic.

If you ask for help in this NG, some of us are prepared to teach you by 
helping you on the way understanding Javascript. 

But none or few will do your programming, if you do not want to learn.

>  Clearly I was wrong when I said that you just didn't understand what I
>  wrote. 

Okay, if you think so.

> You sure love misunderstandings, don't you? You said it yourself twice
> that I was "taken for a ride", which served what purpose, exactly? 

I said that that was not impossible.
 
> No it's not a 'helpdesk', it's a place where people can post questions
> and get answers from other people,

Not so, this is a Usenet NG, where you get responses on your posts.

> which I did. You on the other hand
> are trying to make it "4chan" but you failed. 

"4chan", don't understand.
 
> This ends here, I'm done. Thanks for your initial help, special thanks
> to Osmo who took from there and did exactly what I wanted and didn't
> went around in circles. As you said Michael, time to cut my losses.
> 
> Over and out, drop the mic, leaving the building, and all that stuff. 
> "Ride" over.

Okay.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#30915

FromAleksandro <aleksandro@gmx.com>
Date2016-07-19 15:45 -0400
Message-ID<nmm00g$lo0$1@dont-email.me>
In reply to#30895
On 18/07/16 16:42, arpegiateur@gmail.com wrote:
>  -1
> down vote
> favorite

favorite!!!

> ...

[toc] | [prev] | [next] | [standalone]


#30918

Fromarpegiateur@gmail.com
Date2016-07-19 13:40 -0700
Message-ID<a51b90d0-6f45-4df7-a2c1-e616c0fe7f74@googlegroups.com>
In reply to#30915
On Tuesday, July 19, 2016 at 8:45:25 PM UTC+1, Aleksandro wrote:
> 
> favorite!!!
> 
> > ...

:P I posted this question in stackoverflow before I posted it here, but got no response, in fact some jackass downvoted my question.

I guess when I selected and copied the text to post it here, that snippet got copied too and I didn't even notice it. :P

[toc] | [prev] | [next] | [standalone]


#30919

Fromarpegiateur@gmail.com
Date2016-07-19 13:41 -0700
Message-ID<a1d1ce0f-b9a6-43e4-9467-b9c1cae43ca9@googlegroups.com>
In reply to#30915
>On Tuesday, July 19, 2016 at 8:45:25 PM UTC+1, Aleksandro wrote:
> 
> favorite!!!
> 
> > ...

:P I posted this question in stackoverflow before I posted it here, but got no response, in fact some jackass downvoted my question.

I guess when I selected and copied the text to post it here, that snippet got copied too and I didn't even notice it. :P 

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.lang.javascript


csiph-web