Software Programming

Kunuk Nykjaer

Attach a script file to any webpage dynamically

leave a comment »

Here’s a trick for applying a custom Javascript file to any webpage.
Have a Javascript file available (here i use Github to host my script file).

In the browser console run the following code.
The result should be white text on black background

Try go to and run the snippet code.
You should see white text on black background.


Written by kunuk Nykjaer

January 4, 2015 at 12:29 am

Posted in Javascript

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: