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