29

I should not have looked at this really interesting Chrome extension.
https://chrome.google.com/webstore/...
It tries to prevent phishing links from working by adding attributes to change the behaviour of the browser.

HOW DOES THIS WORK?
Just one simple line:
$('[target="_blank"]').attr("rel", "noopener noreferrer");

But why is this extension so bloated?
It loads the full jQuery library. For an attribute change!

I'd like to refer to this site for further investigations: http://youmightnotneedjquery.com//...
http://youmightnotneedjquery.com//...

Comments
  • 3
    Now THAT is a good laugh😂😂
  • 5
    @AllenII it feels like someone found a solution on stackoverflow.com to solve this issue with jQuery. And believed it unquestionably.
  • 0
    when would you need jQuery? I mean, I always see this kind of cometary "don't use jQuery" but I never saw a case where it was better to use it... so when thus all started?
Add Comment