So I made a extension for a website where your money is refreshed dynamically and I want the value of that div inside of my extension, It doesn't seem to refresh or work at all. I'm posting releated stuff, if you want to know anything else you request and I will provide information. I'm trying to learn jQuery so I'm not the best at the language (yet).
popup.js
var cash = $("#v4").html();
$('.cash').append(cash);
my extension html page
<script type="text/javascript">
$(".cash").append($("#v4").html());
</script>
<div class="cash"></div>
My error
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' chrome-extension-resource:". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution.