• Mystery (DOM change when JavaScript is disabled)

    From Stefan Ram@21:1/5 to All on Mon Sep 20 22:51:05 2021
    A web page has a link that is shown (in the status bar when
    the mouse is positioned over it) as, e.g.,

    http://www.example.com/

    . When one clicks on it (even with the /right/ mouse bottom),
    it is being changed into something like

    http://www.badcompany.com/redirect?uri=http%3A%2F%2Fwww.example.com%2F

    . I have looked at the DOM before the click and then again after
    the click and it seems that the DOM is being changed from

    ... href="http://www.example.com/" ...

    into

    ... href="http://www.badcompany.com/redirect?uri=http%3A%2F...

    . Ok, this is annoying. I assumed that the click is being intercepted
    with JavaScript and then the href attribute is changed.

    To get rid of the nasty "clickjacking", I disabled JavaScript before
    I clicked on the link with the right mouse button to "copy" the URI).
    What bewildered me: The link is still changed /with Java-Script/
    disabled! How is this possible?

    I tried the same thing with a different browser and still see the
    same behavior.

    Is it possible that after a page has been loaded and some scripts
    already have been executed, disabling JavaScript might not
    immediately disable running any JavaScript from that moment on?
    Is it possible that some JavaScript statements still can be executed?

    I have no idea how else it can be possible that the link is
    being changed when JavaScript is disabled.

    Or is there any HTML feature that would allow to have such a
    change of the DOM happen without JavaScript? TIA!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew Poulos@21:1/5 to Stefan Ram on Tue Sep 21 09:17:35 2021
    On 21/09/2021 8:51 am, Stefan Ram wrote:
    A web page has a link that is shown (in the status bar when
    the mouse is positioned over it) as, e.g.,

    http://www.example.com/

    . When one clicks on it (even with the /right/ mouse bottom),
    it is being changed into something like

    http://www.badcompany.com/redirect?uri=http%3A%2F%2Fwww.example.com%2F

    . I have looked at the DOM before the click and then again after
    the click and it seems that the DOM is being changed from

    ... href="http://www.example.com/" ...

    into

    ... href="http://www.badcompany.com/redirect?uri=http%3A%2F...

    . Ok, this is annoying. I assumed that the click is being intercepted
    with JavaScript and then the href attribute is changed.

    To get rid of the nasty "clickjacking", I disabled JavaScript before
    I clicked on the link with the right mouse button to "copy" the URI).
    What bewildered me: The link is still changed /with Java-Script/
    disabled! How is this possible?

    I tried the same thing with a different browser and still see the
    same behaviour.

    Is it possible that after a page has been loaded and some scripts
    already have been executed, disabling JavaScript might not
    immediately disable running any JavaScript from that moment on?
    Is it possible that some JavaScript statements still can be executed?

    I have no idea how else it can be possible that the link is
    being changed when JavaScript is disabled.

    Or is there any HTML feature that would allow to have such a
    change of the DOM happen without JavaScript? TIA!

    They could be using CSS to hide one link, on hover, and show another?

    Andrew Poulos

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Maik Koenig@21:1/5 to All on Tue Sep 21 02:39:08 2021
    Am 21.09.2021 um 00:51 schrieb Stefan Ram:
    A web page has a link that is shown (in the status bar when
    the mouse is positioned over it) as, e.g.,

    http://www.example.com/

    . When one clicks on it (even with the /right/ mouse bottom),
    it is being changed into something like

    http://www.badcompany.com/redirect?uri=http%3A%2F%2Fwww.example.com%2F


    How about giving the url so we can look?

    Greetz,
    MK
    --
    Kopp-Verlag-Gläubige, Religionsdeppen, rechte Vollidioten
    und ähnlicher Bio-Abfall werden ohne Hinweis ignoriert!
    Ich lese die Gruppen in denen ich schreibe: KEINE Mailkopie.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jon Ribbens@21:1/5 to Stefan Ram on Tue Sep 21 11:11:01 2021
    On 2021-09-20, Stefan Ram <ram@zedat.fu-berlin.de> wrote:
    Is it possible that after a page has been loaded and some scripts
    already have been executed, disabling JavaScript might not
    immediately disable running any JavaScript from that moment on?
    Is it possible that some JavaScript statements still can be executed?

    I think I would go with "if JavaScript was enabled when you loaded the
    page, then disabling it does nothing until you reload the page".

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From JJ@21:1/5 to Stefan Ram on Wed Sep 22 02:35:40 2021
    On 20 Sep 2021 22:51:05 GMT, Stefan Ram wrote:
    A web page has a link that is shown (in the status bar when
    the mouse is positioned over it) as, e.g.,

    http://www.example.com/

    . When one clicks on it (even with the /right/ mouse bottom),
    it is being changed into something like

    http://www.badcompany.com/redirect?uri=http%3A%2F%2Fwww.example.com%2F

    . I have looked at the DOM before the click and then again after
    the click and it seems that the DOM is being changed from

    .... href="http://www.example.com/" ...

    into

    .... href="http://www.badcompany.com/redirect?uri=http%3A%2F...

    . Ok, this is annoying. I assumed that the click is being intercepted
    with JavaScript and then the href attribute is changed.

    To get rid of the nasty "clickjacking", I disabled JavaScript before
    I clicked on the link with the right mouse button to "copy" the URI).
    What bewildered me: The link is still changed /with Java-Script/
    disabled! How is this possible?

    I tried the same thing with a different browser and still see the
    same behavior.

    Is it possible that after a page has been loaded and some scripts
    already have been executed, disabling JavaScript might not
    immediately disable running any JavaScript from that moment on?
    Is it possible that some JavaScript statements still can be executed?

    I have no idea how else it can be possible that the link is
    being changed when JavaScript is disabled.

    Or is there any HTML feature that would allow to have such a
    change of the DOM happen without JavaScript? TIA!

    I suspect that the JavaScript is not entirely disabled/blocked. If it was disabled/blocked using a browser addon, some addons can only do it by
    blocking external JavaScript resource network requests but can not disable enbedded/inline JavaScript.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)