Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

80 views
Skip to first unread message

arpeg...@gmail.com

unread,
Jul 18, 2016, 4:42:57 PM7/18/16
to
-1
down vote
favorite


I regularly visit a site that is using and abusing more and more of those links protectors where you have to wait -with the tab in focus or the timer won't run-, only to open another link protector where you have to proof you're not a robot, then choose from a collection of images the ones that have trees (oh yes), and then wait a few more seconds to finally open the damn link, only to find that sometimes it doesn't have what I wanted (music album previews).

I have 160 links to process and I refuse to go through all this everytime.

The link is something like this:

http://sh.st/r/54a92df92a7214a3b10b7be0308d9088/12/1/http://ouo.io/s/7GRMeb12/?s=http%3A%2F%2Fwww.amazon.co.uk%2Fgp%2Fproduct%2FB01AJ05PXC%3Fkeywords%3DLust%2520for%2520Youth%2520-%2520Compassion%26qid%3D1456989377%26ref_%3Dsr_1_1%26sr%3D8-1

The URL shorteners are always those 2, sh.st and ouo (I had to put a space in each of them or the editor wouldn't let me to post this). As you can see I need 2 things: To eliminate those 2 spammy annoying and frustrating link protectors and keep only the 3rd link which is the one with the content I want (in htis case, amazon).

The other is to substitute those %2F and other hex combinations with their real values like : and / .

I already have a list for those values, I just need an example where 1 or 2 of those are replaced, but I don't know anything about javascript, I'm more of a DOS/batch guy (archaic, I know :P).

My objective is to have a bookmarklet, a bookmark with javascript code in it that with just one click, grabbs the current double protected link, filters out the trash in it, substitutes hex strings with the correct values, and finally navigates to that link. I'm sure this is easy for someone with average knowledge of javascript.

Can anyone help me?

Evertjan.

unread,
Jul 18, 2016, 5:24:16 PM7/18/16
to
arpeg...@gmail.com wrote on 18 Jul 2016 in comp.lang.javascript:
> I regularly visit a site that is using and abusing more and more of
> those links protectors where you have to wait -with the tab in focus or
> the timer won't run-, only to open another link protector where you have
> to proof you're not a robot, then choose from a collection of images the
> ones that have trees (oh yes), and then wait a few more seconds to
> finally open the damn link, only to find that sometimes it doesn't have
> what I wanted (music album previews).
>
> I have 160 links to process and I refuse to go through all this
> everytime.
>
> The link is something like this:
>
> http://sh.st/r/54a92df92a7214a3b10b7be0308d9088/12/1/http://ouo.io/s/7GRM
> eb12/?s=http%3A%2F%2Fwww.amazon.co.uk%2Fgp%2Fproduct%2FB01AJ05PXC%3Fkeywo
> rds%3DLust%2520for%2520Youth%2520-%2520Compassion%26qid%3D1456989377%26re
> f_%3Dsr_1_1%26sr%3D8-1
[..]
>
> My objective is to have a bookmarklet, a bookmark with javascript code
> in it that with just one click, grabbs the current double protected
> link, filters out the trash in it, substitutes hex strings with the
> correct values, and finally navigates to that link. I'm sure this is
> easy for someone with average knowledge of javascript.

<!DOCTYPE html>
<html><head>
<script>
function decode(t) {
location.href=decodeURIComponent(t.value.replace(/^.*(http)/,'$1'));
};
</script>
</head><body>

Drop or paste the code in the textarea and then click on it:

<br><br>
<textarea onclick='decode(this)' style='height:200px;width:500px;'>
</textarea>
</body></html>




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

arpeg...@gmail.com

unread,
Jul 19, 2016, 11:10:54 AM7/19/16
to
Wow! That works amazing, and with much less code than I imagined. Still, and I'm not trying to streching it here, but could you transform that into those bookmarklets that start with "javascript:" so that I could just click on it the moment the url shortener page appeared; instead of opening your html file, go to the shortened page, drag the link to your html and click on it?

If you could do it, awsome, if not, amazing job anyway, because you already saved me a lot of frustration and time :-)

Cheers, and tank you again.




On Monday, July 18, 2016 at 10:24:16 PM UTC+1, Evertjan. wrote:

Evertjan.

unread,
Jul 19, 2016, 1:49:06 PM7/19/16
to
arpeg...@gmail.com wrote on 19 Jul 2016 in comp.lang.javascript:

> Wow! That works amazing, and with much less code than I imagined. Still,
> and I'm not trying to streching it here, but could you transform that
> into those bookmarklets that start with "javascript:" so that I could
> just click on it the moment the url shortener page appeared; instead of
> opening your html file, go to the shortened page, drag the link to your
> html and click on it?

What is a "shortened page", is there no html in it?

How do you want to get the information to your bookmarklet?

If you put my html-page somewhere, on a server or on your pc,
and put the link in the bookmark-bar, what is the working difference with a
bookmarklet?

> If you could do it, awsome, if not,

It is just that I don't exactly understand what you envision.

Please do not toppost,
do sparce interpost without quoting signatures on Usenet.

> amazing job anyway, because you
> already saved me a lot of frustration and time :-)
>
> Cheers, and tank you again.




Aleksandro

unread,
Jul 19, 2016, 3:45:25 PM7/19/16
to
On 18/07/16 16:42, arpeg...@gmail.com wrote:
> -1
> down vote
> favorite

favorite!!!

> ...

arpeg...@gmail.com

unread,
Jul 19, 2016, 4:34:48 PM7/19/16
to

> What is a "shortened page", is there no html in it?

That entire link in my 1st post here is the shortener page, the first of two. It's the page that makes you wait before it opens the link I want.


> How do you want to get the information to your bookmarklet?

For instance like a bookmarklet I have here called 'Translate page' that takes the URL, puts it into Google translator and translates the entire page. In essence, it takes the URL and processes it.

> If you put my html-page somewhere, on a server or on your pc,
> and put the link in the bookmark-bar, what is the working difference with a
> bookmarklet?
Not much, unless I change the Operating system or even the browser (I do that when my browser starts to get bloated), and then I'll certainly forget of that html file, risking having only that bookmark pointing to a non-existent file.
I could save the Html to a backup folder I guess. But I have this coding philosophy even in my .Bat files to make them independent of other files (as much as possible), as self-contained as they can be.

Also it would use fewer steps. But I don't want to overburden you with this. You already were very useful :-)


> It is just that I don't exactly understand what you envision.

Going to the relevant page with just one click, meaning, when I open the 'album preview' link from my RSS feed and the browser opens the 1st link shortener, I then click on the bookmarklet, which will take the URL, decode it, and open the final result in the browser.

Better yet would be if I could just drag and drop that 'album preview' link in my feed directly on top of the bookmarklet which would then decode it and open it automatically, but I don't know if that's even possible.

> Please do not toppost,
> do sparce interpost without quoting signatures on Usenet.

Ok sorry, the times I posted in google groups could be counted with the fingers of one hand, with many to spare :P I don't know the 'etiquette'
Message has been deleted

arpeg...@gmail.com

unread,
Jul 19, 2016, 4:41:36 PM7/19/16
to
>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

Evertjan.

unread,
Jul 20, 2016, 3:40:04 AM7/20/16
to
arpeg...@gmail.com wrote on 19 Jul 2016 in comp.lang.javascript:

>> Please do not toppost,
>> do sparce interpost without quoting signatures on Usenet.
>
> Ok sorry, the times I posted in google groups could be counted with the
> fingers of one hand, with many to spare :P I don't know the 'etiquette'

This NG is NOT a Google-group but a Usenet group, and even predates Google
by decennia. Usenet even predates the World-Wide-Web by over a decennium.

Google may well be devoid of any etiquette,
but Usenet "Netiquette" is something else.

Seems you are using a Google-groups server as a web-newsreader into Usenet,
without realizing its hidden, and therefore quite dirty, potential.

>> What is a "shortened page", is there no html in it?
>
> That entire link in my 1st post here is the shortener page, the first of
two. It's the page that makes you wait before it opens the link I want.
>
>
>> How do you want to get the information to your bookmarklet?
>
> For instance like a bookmarklet I have here called 'Translate page'

Where? Should I register for that to log in?
That is something we usenetters are very reluctant to do.

> that takes the URL, puts it into Google translator and translates
> the entire page. In essence, it takes the URL and processes it.

Well, you can take the essence of my javascript code, and use it as you
like, it seems you are the bookmarklet specialist here ;-)

var source = '....';
var result = decodeURIComponent(source.replace(/^.*(http)/,'$1'));

this code throws away everything before the last 'http' [or "https" for that
matter] and decodes the resulting string.

arpeg...@gmail.com

unread,
Jul 20, 2016, 1:09:38 PM7/20/16
to
On Wednesday, July 20, 2016 at 8:40:04 AM UTC+1, Evertjan. wrote:
>
> This NG is NOT a Google-group but a Usenet group, and even predates Google
> by decennia. Usenet even predates the World-Wide-Web by over a decennium.
>
> Google may well be devoid of any etiquette,
> but Usenet "Netiquette" is something else.
>
> Seems you are using a Google-groups server as a web-newsreader into Usenet,
> without realizing its hidden, and therefore quite dirty, potential.

Ok, it says Google Groups in this left panel, but I guess is just a front end then. But I find it easier to search for topics like these, although I hate that it doesn't let me edit a post once I send it.
What dirty potential are you talking about? The data that google gathers?


> Where? Should I register for that to log in?
> That is something we usenetters are very reluctant to do.

The translate bookmarklet:

javascript:var%20t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection%20&&document.selection.createRange&&document.selection.createRange().text));var%20e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=en&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&tbb=1&ie='+e;};

...it will translate any non-english webpage into english, just put that code into a new bookmark, open the page you want to translate, click that bookmark, and presto you'll have that page in english, with *no google login required*, don't worry :).
It works with private browser sessions too. I hope you find it useful.


> Well, you can take the essence of my javascript code, and use it as you
> like, it seems you are the bookmarklet specialist here ;-)
>
> var source = '....';
> var result = decodeURIComponent(source.replace(/^.*(http)/,'$1'));
>
> this code throws away everything before the last 'http' [or "https" for that
> matter] and decodes the resulting string.


'Specialist' only in knowing their usefullness :D
All right, I'll try your last code suggestion.
Thank you for your work so far, it already helped a lot :)

Osmo Saarikumpu

unread,
Jul 21, 2016, 9:21:08 AM7/21/16
to
On 20/07/2016 20:09, arpeg...@gmail.com wrote:
> On Wednesday, July 20, 2016 at 8:40:04 AM UTC+1, Evertjan. wrote:
>> Well, you can take the essence of my javascript code, and use it as you
>> like, it seems you are the bookmarklet specialist here ;-)
>>
>> var source = '....';
>> var result = decodeURIComponent(source.replace(/^.*(http)/,'$1'));
> All right, I'll try your last code suggestion.

Here is a proposal for the bookmarklet:

javascript:(function ()
{location.assign(decodeURIComponent(location.href.replace(/^.*(http)/,'$1')))})()

--
Best wishes, Osmo

Osmo Saarikumpu

unread,
Jul 21, 2016, 9:36:05 AM7/21/16
to
On 21/07/2016 16:21, Osmo Saarikumpu wrote:
> Here is a proposal for the bookmarklet:
>
> javascript:(function ()
> {location.assign(decodeURIComponent(location.href.replace(/^.*(http)/,'$1')))})()

On second thought:

location.assign(decodeURIComponent(location.href.replace(/^.*(http)/,'$1')))


should be sufficient for this one.

--
Best wishes, Osmo

arpeg...@gmail.com

unread,
Jul 22, 2016, 3:19:58 PM7/22/16
to
Osmo, both work wonderfully, thank you : )

I was trying to do that with this feeble attempts:

javascript:var source=location.href;var result=decodeURIComponent(source.replace(/^.*(http)/,'$1'));

javascript:(function decode(t){location.href=decodeURIComponent(t.value.replace(/^.*(http)/,'$1'));});

javascript:location.href=decodeURIComponent(t.value.replace(/^.*(http)/,'$1'));


...but I always got nothing (remember I don't know squat about javascript)

But yours do work. I chose the latter, simpler one, as a good programing practice.

I can process the cr@p out of text strings with DOS batch commands, but in javascript I can't even print a 'Hello World'. Well I can if I google it and copy paste it :P

Anyway thanks again to you and Evertjan, you both were very helpful.

Evertjan.

unread,
Jul 22, 2016, 5:20:56 PM7/22/16
to
arpeg...@gmail.com wrote on 22 Jul 2016 in comp.lang.javascript:

> I was trying to do that with this feeble attempts:
>
> javascript:var source=location.href;var
> result=decodeURIComponent(source.replace(/^.*(http)/,'$1'));

So you do nothing with the 'result' variable.

> javascript:(function
> decode(t){location.href=decodeURIComponent(t.value.replace(/^.*(http)/,'$
> 1'));});

So you do not call the function, so it cannot execute.

> javascript:location.href=decodeURIComponent(t.value.replace(/^.*(http)/,'
> $1'));

Indeed, but to understand it, please first look at this one:

javascript:location.href='http://cnn.com/';

or even better use the console [F12] and there enter:

location.href='http://cnn.com/';

arpeg...@gmail.com

unread,
Jul 22, 2016, 9:14:48 PM7/22/16
to
On Friday, July 22, 2016 at 10:20:56 PM UTC+1, Evertjan. wrote:
>
> So you do nothing with the 'result' variable.
>
> > javascript:(function
> > decode(t){location.href=decodeURIComponent(t.value.replace(/^.*(http)/,'$
> > 1'));});
>
> So you do not call the function, so it cannot execute.
>
> > javascript:location.href=decodeURIComponent(t.value.replace(/^.*(http)/,'
> > $1'));
>

I may have tried this one too:
javascript:decodeURIComponent(location.href.replace(/^.*(http)/,'$1'));

... which is probably wrong with the wrong syntax, but with the right idea.

To be honest I was just putting parts from other javascript bookmarklets into your code in 'unholly ways', mixing with some lightning and hoping in the end I could say "It's alive!" :P :D



> Indeed, but to understand it, please first look at this one:
>
> javascript:location.href='http://cnn.com/';
>
> or even better use the console [F12] and there enter:
>
> location.href='http://cnn.com/';
>
In the console it says that is about to exit the current page and go to CNN, after I authorize the copy-paste function in the console.

Evertjan.

unread,
Jul 23, 2016, 6:02:30 AM7/23/16
to
arpeg...@gmail.com wrote on 23 Jul 2016 in comp.lang.javascript:

> I may have tried this one too:
> javascript:decodeURIComponent(location.href.replace(/^.*(http)/,'$1'))
> ;
>
> ... which is probably wrong with the wrong syntax, but with the right
> idea.

No, it is the wrong idea, because you modify a string but do nothing with
the result, so in effect[!!], you did nothing.

it is:
1 copy present location.href into a string
2 skip the front of the string
3 decode the result

while you should do:
1 copy present location.href into a string
2 skip the front of the string
3 decode the result
4 paste the result as new location.href

> To be honest I was just putting parts from other javascript bookmarklets
> into your code in 'unholly ways', mixing with some lightning and hoping
> in the end I could say "It's alive!" :P :D

Well this is just as silly as thinking faith incantations have an effect
upon the real world.

Programming with an effect needs some knowledge of the language, logical
thinking and of the programming environment: js-engine and DOM, for instance
in thre case of a browser.

So start off with pseudocode of what you want, like the bove 1 2 3 4,
and then repeat your coding and logical thinking sequence ad nauseam.

Ad some debugging, by using the console [f12]
or inserting temporary alert(); -s.

1 copy present location.href into a string
1a console.log(aString);
2 skip the front of the string
2a console.log(aString);
3 decode the resulting string
3a console.log(aString);
3b alert('Now look at the console, please.');
4 paste this result as new location.href


You will get results in knowledge, experience and coding. Not buy pasting
code from the web without adding your growing own logic and understanding.

arpeg...@gmail.com

unread,
Jul 26, 2016, 2:49:12 PM7/26/16
to
On Saturday, July 23, 2016 at 11:02:30 AM UTC+1, Evertjan. wrote:
>
>
> while you should do:
> 1 copy present location.href into a string
> 2 skip the front of the string
> 3 decode the result
> 4 paste the result as new location.href

I thought I was doing the 4th one


> Well this is just as silly as thinking faith incantations have an effect
> upon the real world.
>
> Programming with an effect needs some knowledge of the language, logical
> thinking and of the programming environment: js-engine and DOM, for instance
> in thre case of a browser.
>
>(...)

> You will get results in knowledge, experience and coding. Not buy pasting
> code from the web without adding your growing own logic and understanding.

That was a metaphor, of course I wasn't randomly pasting pieces of code mindlessly (only the results felt that way), I went for the other bookmarklets I have here that take the URL, do something with it and navigate to the new URL, and through them I tried to get a glimpse of what I should do. Surely the opening of the URL should be common to all of them, but they weren't (several ways to skin a cat) and I was trying one or the other, with no results, from nothing happening whatsoever, to some errors here and there.

Evertjan.

unread,
Jul 26, 2016, 6:20:56 PM7/26/16
to
arpeg...@gmail.com wrote on 26 Jul 2016 in comp.lang.javascript:

> On Saturday, July 23, 2016 at 11:02:30 AM UTC+1, Evertjan. wrote:
>>
>>
>> while you should do:
>> 1 copy present location.href into a string
>> 2 skip the front of the string
>> 3 decode the result
>> 4 paste the result as new location.href
>
> I thought I was doing the 4th one

How?

You skipped the code you are talking about!

Perhaps you misinterpreted the regex replace(),
that RETURNS the result and does NOT change the source,
and THEN you still have to do something with it.


>> You will get results in knowledge, experience and coding. Not buy
>> pasting
>
>> code from the web without adding your growing own logic and
>> understanding
> .
>
> That was a metaphor, of course I wasn't randomly pasting pieces of code

How could I mindlessly have thought you ment what you said?

> mindlessly (only the results felt that way), I went for the other
> bookmarklets I have here that take the URL, do something with it and
> navigate to the new URL, and through them I tried to get a glimpse of
> what I should do. Surely the opening of the URL should be common to all
> of them, but they weren't (several ways to skin a cat) and I was trying
> one or the other, with no results, from nothing happening whatsoever, to
> some errors here and there.

Javascript code engines do not interprete metaphors.

;-)

arpeg...@gmail.com

unread,
Jul 28, 2016, 11:07:54 AM7/28/16
to
On Tuesday, July 26, 2016 at 11:20:56 PM UTC+1, Evertjan. wrote:

> You skipped the code you are talking about!
>
> Perhaps you misinterpreted the regex replace(),
> that RETURNS the result and does NOT change the source,
> and THEN you still have to do something with it.
>

Perhaps. I deleted those drafts so I don't know for sure.

>
> Javascript code engines do not interprete metaphors.
>
> ;-)

The metaphor was applied in the way I described it to you, not the actual way I tried to make that work

;-)

Evertjan.

unread,
Jul 28, 2016, 1:24:43 PM7/28/16
to
arpeg...@gmail.com wrote on 28 Jul 2016 in comp.lang.javascript:

> On Tuesday, July 26, 2016 at 11:20:56 PM UTC+1, Evertjan. wrote:
>
>> You skipped the code you are talking about!
>>
>> Perhaps you misinterpreted the regex replace(),
>> that RETURNS the result and does NOT change the source,
>> and THEN you still have to do something with it.
>
> Perhaps. I deleted those drafts so I don't know for sure.

Well, you sent it to Usenet, did you delete it from usenet?

>> Javascript code engines do not interprete metaphors.
>>
>> ;-)
>
> The metaphor was applied in the way I described it to you, not the
> actual way I tried to make that work
>
> ;-)

>>>> How to replace strings in a URL with a javascript boormarklet?

But your OQ, was "boormarklet" a metaphor too?
Could it be that you were on the wrong track?

arpeg...@gmail.com

unread,
Jul 28, 2016, 5:44:17 PM7/28/16
to
On Thursday, July 28, 2016 at 6:24:43 PM UTC+1, Evertjan. wrote:
>
> Well, you sent it to Usenet, did you delete it from usenet?
>
The bits I showed here were just a sample, I had many more.

>
> But your OQ, was "boormarklet" a metaphor too?
> Could it be that you were on the wrong track?
>

Of course not. I thought you knew what a bookmarklet was:
« A bookmarklet is a bookmark stored in a web browser that contains JavaScript commands that add new features to the browser.»
(https://en.wikipedia.org/wiki/Bookmarklet)

Evertjan.

unread,
Jul 28, 2016, 6:30:07 PM7/28/16
to
arpeg...@gmail.com wrote on 28 Jul 2016 in comp.lang.javascript:

> On Thursday, July 28, 2016 at 6:24:43 PM UTC+1, Evertjan. wrote:
>>
>> Well, you sent it to Usenet, did you delete it from usenet?
>>
> The bits I showed here were just a sample, I had many more.

But you introduced code whereon I responded.

You asked a Q about that.

>> But your OQ, was "boormarklet" a metaphor too?
>> Could it be that you were on the wrong track?
>
> Of course not.

Why "of course"?? I don't think I sould presume
my correspondents are never mistaken.

> I thought you knew what a bookmarklet was:

Presuming on what others know on Usenet
is not a good way to ask Qs.

> « A bookmarklet is a bookmark stored in a web browser that contains
> JavaScript commands that add new features to the browser.»
> (https://en.wikipedia.org/wiki/Bookmarklet)

Wow! So if the feature is not new, it is not a bookmarklet?

Seems you do not enjoy being taken for a ride.

arpeg...@gmail.com

unread,
Jul 30, 2016, 10:54:06 AM7/30/16
to
On Thursday, July 28, 2016 at 11:30:07 PM UTC+1, Evertjan. wrote:

>
> But you introduced code whereon I responded.
>
> You asked a Q about that.

Yes, I know, and I thanked you for your suggestions.
>
> >> But your OQ, was "boormarklet" a metaphor too?
> >> Could it be that you were on the wrong track?
> >
> > Of course not.
>
> Why "of course"?? I don't think I sould presume
> my correspondents are never mistaken.
>
> (...)
>
> 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"?
I think something has been lost in translation 1 or 2 posts back and it's compounding now, because to be honest I don't have the slightest idea of what you're talking about now.

You gave me helpful suggestions, Osmo implemented those in the pratical way I wanted, I thanked you both, let's keep it as that.
Cheers.

Evertjan.

unread,
Jul 30, 2016, 11:59:27 AM7/30/16
to
arpeg...@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.

arpeg...@gmail.com

unread,
Aug 3, 2016, 11:03:20 AM8/3/16
to
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.

Michael Haufe (TNO)

unread,
Aug 3, 2016, 1:06:06 PM8/3/16
to
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.

Evertjan.

unread,
Aug 3, 2016, 5:38:49 PM8/3/16
to
arpeg...@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.

arpeg...@gmail.com

unread,
Aug 4, 2016, 4:09:07 PM8/4/16
to
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

Evertjan.

unread,
Aug 4, 2016, 4:37:02 PM8/4/16
to
arpeg...@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.

arpeg...@gmail.com

unread,
Aug 5, 2016, 1:55:23 PM8/5/16
to
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.

Evertjan.

unread,
Aug 5, 2016, 2:31:08 PM8/5/16
to
arpeg...@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.
0 new messages