Relative Content

Tag Archive for google-chrome-extensiongoogle-chrome-devtoolschrome-extension-manifest-v3

How to use jquery.js in content_scripts in (chrome extension development)

Chrome extension does not allows to inject jquery using cdn, or through dom manupulation by creating a script-tag. I am getting an error: Uncaught ReferenceError: $ is not defined, My code contains this: $(“p”).click(function (e) { e.preventDefault(); $(this).hide(); }); if I remove the above code it works fine: // Select all <p> elements var paragraphs […]