bluzi / chrome-extension-execute-on-website Goto Github PK
View Code? Open in Web Editor NEWAccess JS on web pages directly through your Chrome extensions
Home Page: https://www.npmjs.com/package/chrome-extension-execute-on-website
Access JS on web pages directly through your Chrome extensions
Home Page: https://www.npmjs.com/package/chrome-extension-execute-on-website
In my case there is an iframe in the page my extension is working on and this would allow me to choose where to execute the code
The executed code is running in the browser, while the application code is running in the extension. These scopes are completely different.
Find a way to bind events/variables to allow communication between executed code and the extension.
Hi guys, feel free to edit the README and fix grammar issues or add more information.
line comments and missing semicolons inside the function to execute will break the script, also new lines will convert to
trying to execute this function
function print(){
// comment
console.log('text1')
console.log('text2')
}
will generate this script
<script>(function print(){<br> // comment<br> console.log('text1')<br> console.log('text2')<br> arr.map(console.log)<br>})();</script>
besides the
tags the whole function is treated as a oneliner so it has all the restrictions applied to onliners.
i'm working on a pr to fix this
i thinks is posible to pass parameters to the function as an object using JSON.stringify().
i really need this in my use case so if it works i will create a PR
Browser simply refused to execute inline script.
Throws:
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-+RZUImEMrvaz53X61qBeQyW2YiBe3H5/bNdUQLs+dfI='), or a nonce ('nonce-...') is required to enable inline execution.
Hi,
I'd love if someone would some time and create good test suits (using any tool you think is best), so we can integrate Travis.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.