greasemonkey

Changing the parameters of a Javascript function using GreaseMonkey

There are a lot of questions here about Greasemonkey, but I didn't see anything directly related to my question. I'm on a website that uses a text editor control, and it's really annoying that they don't allow horizontal resizing (only vertical). So if you are using a cheapo projector that only supports 1024x768, the text runs off of t...

<canvas> in greasemonkey

I've created a <canvas>, in the variable canvas, but I can't seem to draw to it. I can see the blank canvas on the page, but it's blank. alert(ctx); ctx.fillStyle = "rgb(50,50,50)"; ctx.fillRect(10,10, 55,50); alert("done"); The first alert says [object CanvasRenderingContext2D], and I do see the "done" alert, but the canvas is still ...

Run Code After Function is Finished OR DIV Appears

I have written a Userscript for Facebook and it groups similar notifications together. Now, using just a static HTML page with old notifications I had, the script works 100%. Here's the problem: the DIV that holds notifications by default, has no notifications in it until the user clicks on the Notification button. Facebook has an inlin...

Borrowing javascript code from one page to inject in another

Alright, let me preface this by saying that I have little programming experience, so I apologize if my explanation belies some serious ignorance. I've always wanted to learn certain tricks but I can never find any tutorials. Here's the deal: There's a website that gives you various science questions and grades the input. For each que...

Removing an anonymous event listener

Is there anyway to remove an event listener added like this: element.addEventListener(event, function(){/* do work here */}, false); without replacing the element? ...

Creating a JQueryscript for GM - Trouble by rewriting the JS code

Hello all, after trying to solve the problem without and with help I'm still stuck. My aim was writing a GM-script with JS. Someone told me to use jQuery because of its simplicity. Well, I started learning JS last week and my head is full of information. What I need is hint/start/beginning/whatever telling me how to rewrite the script ...

Greasemonkey Userscript: pasting in jQuery?

Hi, I'm developing a Greasemonkey script to be used only with Firefox, and I need some help. I'm planning to use jQuery, and possibly some other scripts later on. Since the @require for GM only downloads the script at the initial install, later updates to the code won't download updates to external scripts. Therefore, i was wondering: ...

How do I append a dynamic form to the end of a table?

Hello all, I'm completely new to Javascript and Greasemonkey, so feel free to correct me if I'm doing this inefficiently or incorrectly. In this forum that I post in, clicking the "reply" button brings up a new window with just text form to post in. I want to create a greasemonkey script that adds the script for the reply form onto th...

Detecting Download Status in Firefox

Is there any way to detect whether a download has completed or is how much it has downloaded , in the context of a greasemonkey script Or and extension .(i.e) how to detect if firefox is still downloading a file or not, in a greasemonkey script or an extension ? Also please give a Reliable way for using jQuery in greasemonkey. ...

Chrome Userscripts

I'm having a problem with a Userscript in chrome. I have been using a version of this extension in Greasemonkey for a long time now, but I can't figure out how to parse through a NodeList in Chrome. Here is the code as it is in Greasemonkey (please note that the code on the site is really bad, so that accounts for a lot of my code: fo...

Add a dynamic form to specific pages using Greasemonkey and JQuery

In a particular forum, clicking the reply button spawns a new window with a text form to type a reply. I want to implement a script to create that specific text form within the main page (instead of spawning a new window). How would I go about doing this? Here is the source code for the pages I want to implement the script on: http...

Which grease monkey script i can use to customize the webpage i open

I have one web page where i need to hide some images , some tags e,g hide tag with some id so that when i open that page , then those elemenst should always be hidden or removed Is it possible using grease monkey ...

GreaseMonkey countdown not working?

I'm very confused, with greasemonkey setTimeout just isn't working, it never calls the function, looking online people say greasemonkey doesn't support setTimeout, is there anyway to make my objective (below) work? function countdown(time, id) { if(document.getElementById(id)) { var name = document.getElementById(id); v...

Calling Greasemonkey user.js from a custom Firefox Extension

I'm modifying the existing GrabThemAll Firefox extension, which takes a list of URLs, loads them each into their own browser window, and takes a screenshot of the page. I would also like to run a greasemonkey script on this page, but I am not sure how to go about doing this. I have GM set up to automatically execute any time the URLs i...

How can I create a shortcut for firefox in Greasemonkey?

How can I create a shortcut for Greasemonkey for the firefox bookmarks, or, a shortcut that opens a website? Sorry, I want a greasemonkey script that contain some script that bind some key for firefox bookmark for example, press key 1 = open bookmark 1, and so on ...

How can I redirect some page with javascript in Greasemonkey?

Hey, I want to redirect a page when it finish loading... For example, when google.com finish loading, I want to send a javascript to search something... How can I do it ? ...

Changing sth. with Javascript(using Gm and jQuery)in the website when an option is selected

Hello everybody, I'm writing another Greasemonkeyscript with javascript using jQuery and -"tamtam"- there was a question comming up to my mind. There is a button on the page I have no access to. By clicking it, you can choose between four options.Option 2 is preselected. <select id="idname" name="namename"> <option>Option1</option>...

Stop slow-loading script with GreaseMonkey

On a page that I visit, it has a slow-loading external script that occasionally takes so long that the page is basically unusable. Disabling this script entirely removes some functionality, but it's better than nothing. Is there a way I could use greasemonkey to cancel the script? I know I could use NoScript, but I wanted to give it a...

How to alert when url contains[...]

How can I disable an input-field with jQuery using GM if the url contains text? I tried $(document).ready( function() { if($("url:contains('text')")){ $(".input[id=field-owner]:disabled"); } else { $(".input[id=field-owner]:enabled"); } }); I don't know what I did wrong. And I also don't know whether u...

Greasemonkey and jQuery 1.4.2 not working

I am attempting to use Greasemonkey and jQuery 1.4.2. When I install the Greasemonkey script jQuery is definitely downloaded and appears in the scripts directory. However the below code doesn't append anything to elements with the class PAPAGETITLE. What am I doing wrong? // ==UserScript== // @name PS Timesheet // @namespace ...