I'm currently working on an Opera Extension and I have a question.
Is there a way to use the includes folder in order to directly inject jQuery into the live HTML of a webpage?
For example, can I change the background color of the DOM to black?
If possible, how would this script work?
// The injected script
var elems = document.getElementsByTagName("body");
var arr = jQuery.makeArray(elems);
$(document).ready(function() {
$("body").css("background-color", "#000000");
$("body").css("color", "#ffffff");
$(arr).appendTo(document.body);
});
If anyone could provide a tutorial or direct me to one, as I'm having trouble visualizing how to accomplish this myself.
Thank you, Kev