Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #32623 > unrolled thread
| Started by | yavindu@gmail.com |
|---|---|
| First post | 2017-02-13 08:25 -0800 |
| Last post | 2017-02-14 15:08 -0800 |
| Articles | 9 — 6 participants |
Back to article view | Back to comp.lang.javascript
Javascript editing by user yavindu@gmail.com - 2017-02-13 08:25 -0800
Re: Javascript editing by user "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-02-13 22:29 +0100
Re: Javascript editing by user yavindu@gmail.com - 2017-02-13 23:48 -0800
Re: Javascript editing by user "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-02-14 10:32 +0100
Re: Javascript editing by user JJ <jj4public@vfemail.net> - 2017-02-14 23:47 +0700
Re: Javascript editing by user yavindu@gmail.com - 2017-02-14 09:00 -0800
Re: Javascript editing by user Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-02-14 23:04 +0100
There is no web page James Kirk <noneya.invalid@gmail.com> - 2017-02-16 14:53 -0500
Re: Javascript editing by user Gene Wirchenko <genew@telus.net> - 2017-02-14 15:08 -0800
| From | yavindu@gmail.com |
|---|---|
| Date | 2017-02-13 08:25 -0800 |
| Subject | Javascript editing by user |
| Message-ID | <e912e0c9-61b5-4747-ba4d-6de316cc7288@googlegroups.com> |
Hi In chrome, user can edit javascript file in source tab.Is there way to trigger an event when user try to edit javascript file in console?
[toc] | [next] | [standalone]
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
|---|---|
| Date | 2017-02-13 22:29 +0100 |
| Message-ID | <XnsA71BE4C593BFFeejj99@194.109.6.166> |
| In reply to | #32623 |
yavindu@gmail.com wrote on 13 Feb 2017 in comp.lang.javascript: > In chrome, user can edit javascript file in source tab. No, not in the 'view-source:' > Is there way to > trigger an event when user try to edit javascript file in console? What would be the sense of that? -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | yavindu@gmail.com |
|---|---|
| Date | 2017-02-13 23:48 -0800 |
| Message-ID | <96aaabe8-c22a-461e-94ea-cdc0a8da4b99@googlegroups.com> |
| In reply to | #32625 |
On Tuesday, February 14, 2017 at 2:59:18 AM UTC+5:30, Evertjan. wrote:
> yavindu@gmail.com wrote on 13 Feb 2017 in comp.lang.javascript:
>
> > In chrome, user can edit javascript file in source tab.
>
> No, not in the 'view-source:'
>
> > Is there way to
> > trigger an event when user try to edit javascript file in console?
>
> What would be the sense of that?
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)
Not in the view-source.I meant Inspect source tab.
My Idea is this.
If i declare a function like this -
function reloadWhenUserEditJSFile(){
location.reload()
}
and if there an event to call that function when user edit js file using Inspect source tab then probably i can stop user from editing file using browser Inspect source tab.
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
|---|---|
| Date | 2017-02-14 10:32 +0100 |
| Message-ID | <XnsA71C6B2C360F8eejj99@194.109.6.166> |
| In reply to | #32629 |
yavindu@gmail.com wrote on 14 Feb 2017 in comp.lang.javascript:
> On Tuesday, February 14, 2017 at 2:59:18 AM UTC+5:30, Evertjan. wrote:
>> yavindu@gmail.com wrote on 13 Feb 2017 in comp.lang.javascript:
>>
>> > In chrome, user can edit javascript file in source tab.
>>
>> No, not in the 'view-source:'
>>
>> > Is there way to
>> > trigger an event when user try to edit javascript file in console?
>>
>> What would be the sense of that?
[please do not quote signatures on usenet, signature removed]
> Not in the view-source.I meant Inspect source tab.
Oh well, you mean the developer tool.
>
> My Idea is this.
>
> If i declare a function like this -
>
> function reloadWhenUserEditJSFile(){
>
> location.reload()
>
>}
>
> and if there an event to call that function when user edit js file using
> Inspect source tab then probably i can stop user from editing file using
> browser Inspect source tab.
Why would you expect JS to run again when you change the developer tool?
When the page is with the user, it is not your property anymore,
only your intelectual property, so why this primordial wish to control the
user?
If you want to have some control over the page,
use serverside programming, [or flash, as long as it lasts].
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | JJ <jj4public@vfemail.net> |
|---|---|
| Date | 2017-02-14 23:47 +0700 |
| Message-ID | <1faumow9p9v0z$.sad5fdlkedbz$.dlg@40tude.net> |
| In reply to | #32629 |
On Mon, 13 Feb 2017 23:48:27 -0800 (PST), yavindu@gmail.com wrote:
>
> Not in the view-source.I meant Inspect source tab.
>
> My Idea is this.
>
> If i declare a function like this -
>
> function reloadWhenUserEditJSFile(){
>
> location.reload()
>
> }
>
> and if there an event to call that function when user edit js file using
> Inspect source tab then probably i can stop user from editing file using
> browser Inspect source tab.
No. Web page script don't have access to the Developer Tools or any part of
it.
AFAIK, any JS file opened in the Developer Tools' Sources tab is just a
copy. Any changes to the JS code is not applied to the one which is used by
the web page.
[toc] | [prev] | [next] | [standalone]
| From | yavindu@gmail.com |
|---|---|
| Date | 2017-02-14 09:00 -0800 |
| Message-ID | <129d01ad-e4eb-4981-9e37-098d282592c9@googlegroups.com> |
| In reply to | #32632 |
On Tuesday, February 14, 2017 at 10:17:08 PM UTC+5:30, JJ wrote:
> On Mon, 13 Feb 2017 23:48:27 -0800 (PST), yavindu@gmail.com wrote:
> >
> > Not in the view-source.I meant Inspect source tab.
> >
> > My Idea is this.
> >
> > If i declare a function like this -
> >
> > function reloadWhenUserEditJSFile(){
> >
> > location.reload()
> >
> > }
> >
> > and if there an event to call that function when user edit js file using
> > Inspect source tab then probably i can stop user from editing file using
> > browser Inspect source tab.
>
> No. Web page script don't have access to the Developer Tools or any part of
> it.
>
> AFAIK, any JS file opened in the Developer Tools' Sources tab is just a
> copy. Any changes to the JS code is not applied to the one which is used by
> the web page.
For global variable it's a copy but not inside a function.You can change function content and javascript takes that new content into run time.
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2017-02-14 23:04 +0100 |
| Message-ID | <1866493.OBFZWjSADL@PointedEars.de> |
| In reply to | #32632 |
JJ wrote:
> On Mon, 13 Feb 2017 23:48:27 -0800 (PST), yavindu@gmail.com wrote:
>> Not in the view-source.I meant Inspect source tab.
>>
>> My Idea is this.
>>
>> If i declare a function like this -
>>
>> function reloadWhenUserEditJSFile(){
>>
>> location.reload()
>>
>> }
>>
>> and if there an event to call that function when user edit js file using
>> Inspect source tab then probably i can stop user from editing file using
>> browser Inspect source tab.
>
> No.
Correct.
> Web page
There is no “web page”.
> script don't have access to the Developer Tools or any part of it.
<script type="text/javascript">
console.log("You are wrong.");
</script>
> AFAIK, any JS file opened in the Developer Tools' Sources tab is just a
> copy. Any changes to the JS code is not applied to the one which is used
Yes, it is, but only until the window/tab is reloaded.
> by the web page.
There is no “web page”.
--
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | James Kirk <noneya.invalid@gmail.com> |
|---|---|
| Date | 2017-02-16 14:53 -0500 |
| Subject | There is no web page |
| Message-ID | <20170216145357.00005076@james.kirk.invalid> |
| In reply to | #32634 |
In-Reply-To: <1866493.OBFZWjSADL@PointedEars.de> Subject-Was: Re: Javascript editing by user Followup-To: alt.html Thomas 'PointedEars' Lahn <PointedEars@web.de> wrote: > JJ wrote: [snip] >> Web page > There is no “web page”. [snip] >> by the web page. > There is no “web page”. What is the definition of “web page”¿ [url]https://www.w3.org/TR/UNDERSTANDING-WCAG20/conformance.html#uc-web-page-head[/url] ¦ Understanding "Web Page" ¦ The definition of a Web Page is: ¦ Web page ¦ a non-embedded resource obtained from a ¦ single URI using HTTP plus any other ¦ resources that are used in the rendering or ¦ intended to be rendered together with it by a ¦ user agent ¦ … -- James Kirk
[toc] | [prev] | [next] | [standalone]
| From | Gene Wirchenko <genew@telus.net> |
|---|---|
| Date | 2017-02-14 15:08 -0800 |
| Message-ID | <u537acleehbfcnmjfg4g1uje4u69up0jk2@4ax.com> |
| In reply to | #32629 |
On Mon, 13 Feb 2017 23:48:27 -0800 (PST), yavindu@gmail.com wrote:
[snip]
>Not in the view-source.I meant Inspect source tab.
>
>My Idea is this.
>
>If i declare a function like this -
>
>function reloadWhenUserEditJSFile(){
>
>location.reload()
>
>}
>
>and if there an event to call that function when user edit js file
using Inspect source tab then probably i can stop user from editing
file using browser Inspect source tab.
Nope.
1) It is the user's system. All he would have to do is use a
browser that did not have that event or have it enabled. (I do not
know of any such event anyway.)
2) I used to hack a former ISP's usage page. I had a limit of so
many gigabytes per month. There was a way to see how much I had used.
Unfortunately, the page was hard-coded to just a couple of months, and
they did not update the page each month.
Tired of this, I took a look at the source, modified it to cover
the month I wanted, and then executed it. It worked, and I got my
usage statistics that I was entitled to.
This did not change their version of the page.
I have no idea if I could have seen the statistics for anyone
else or if I could have gotten at anything else. That would have been
dependent on their security system of which I know naught.
Sincerely,
Gene Wirchenko
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web