This question already has answers here: Closed 10 years ago. Possible Duplicate: Passing values to onclick
When I write a GreaseMonkey script, if I create a div and set onclick to alert it works: var btn = document.createElement(\'div\');
What I want to do is insert a link and img for every thread of this forum I use. The href of the link should be based on the href of a child of the element.
I\'m using Greasemonkey and JQuerys #css method to add css styles to a page. Script so far: // ==UserScript==
First,I created a hidden frame like this: var oHiddenFrame = null; if(oHiddenFrame == null){ oHiddenFrame = document.createElement(\"iframe\");
I am attempting to write a user script that makes a cross domain AJAX request. I have included jQuery inside my script using @require and everything seems to be working fine up until the point where
My employer is blocking the Google CDN domain that provides the jQuery file to so many websites: http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js
I\'m just fiddling around with user scripts in chrome right now, so please bear with my potential ignorance/idiocy.
I created a hidden frame as follows: var oHiddenFram开发者_Go百科e = null; if(oHiddenFrame == null){
In certain conditions, I have a web page that gets opened in an iframe. When it\'s loaded into that iframe, I need it to set the window location to a resource to download a file (all of this in an att