Load external JS from bookmarklet?

2015 Update Content security policy will prevent this from working in many sites now. For example, the code below won’t work on Facebook. 2008 answer Use a bookmarklet that creates a script tag which includes your external JS. As a sample: javascript:(function(){document.body.appendChild(document.createElement(‘script’)).src=”https://stackoverflow.com/questions/106425/** your external file URL here **”;})();

JavaScript: Invert color on all elements of a page

First things first, grab the awesome RGBColor class here. Here goes: jsFiddle example //set up color properties to iterate through var colorProperties = [‘color’, ‘background-color’]; //iterate through every element in reverse order… $(“*”).get().reverse().each(function() { var color = null; for (var prop in colorProperties) { prop = colorProperties[prop]; //if we can’t find this property or it’s … Read more