Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

facebook: does not work, because right clicking the link undoes the change #43

Open
attila-lendvai opened this issue Apr 7, 2021 · 0 comments

Comments

@attila-lendvai
Copy link

attila-lendvai commented Apr 7, 2021

i was debugging the code, it runs fine, updates the link as expected, but when i right click the link, then something undoes the change.

console log while stepping through one page load (class attr deleted for brevity).

notice how a link node is changing its href from bad, to good, and then back again to bad.

rewriting fb link: <a href=​"https:​/​/​l.facebook.com/​l.php?u=https%3A%2F%2Fyoutu.be%2Fmk-q16k-x0Y%3Ff…ondmXVkc-TZotTfaW92r_9dXYpM6EeBYuFQi28tPJUdpTN7_ZRuGw9cCW4_pszQ9FvXC8uSQO0" rel=​"nofollow noopener" role=​"link" tabindex=​"0" target=​"_blank">​https://youtu.be/mk-q16k-x0Y​

temp1
<a href=​"https:​/​/​youtu.be/​mk-q16k-x0Y?fbclid=IwAR25ikVoQn_KieyHoZAtqc0n8HjjoS4sxUwuPdUxzDf6285jpgNnLw-I9gQ" rel=​"nofollow noopener" role=​"link" tabindex=​"0" target=​"_blank">​https://youtu.be/mk-q16k-x0Y​

temp2
<a href=​"https:​/​/​l.facebook.com/​l.php?u=https%3A%2F%2Fyoutu.be%2Fmk-q16k-x0Y%3Ff…ondmXVkc-TZotTfaW92r_9dXYpM6EeBYuFQi28tPJUdpTN7_ZRuGw9cCW4_pszQ9FvXC8uSQO0" rel=​"nofollow noopener" role=​"link" tabindex=​"0" target=​"_blank">​https://youtu.be/mk-q16k-x0Y​

temp1 == temp2
true

temp1
<a href=​"https:​/​/​l.facebook.com/​l.php?u=https%3A%2F%2Fyoutu.be%2Fmk-q16k-x0Y%3Ff…ondmXVkc-TZotTfaW92r_9dXYpM6EeBYuFQi28tPJUdpTN7_ZRuGw9cCW4_pszQ9FvXC8uSQO0" rel=​"nofollow noopener" role=​"link" tabindex=​"0" target=​"_blank">​https://youtu.be/mk-q16k-x0Y​

@attila-lendvai attila-lendvai changed the title facebook: does not work, because something undoes the change facebook: does not work, because right clicking the link undoes the change Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant