Skip to content

Instantly share code, notes, and snippets.

View gonelf's full-sized avatar
🏠
Working from home

Gonçalo Henriques gonelf

🏠
Working from home
View GitHub Profile
@gonelf
gonelf / bookmarklet_inject_script_to_page.js
Created July 15, 2021 11:03 — forked from midlan/bookmarklet_inject_script_to_page.js
Bookmarklet to inject script by url to page, e.g. jquery.
javascript: (function() {
var url = prompt('URL of script to inject:', 'https://code.jquery.com/jquery-3.4.1.min.js');
if (url) {
console.log('Script inject request URL:', url);
var script = document.createElement('script');
script.src = url;