All Questions

114
votes
11answers
359552 views

window.close and self.close do not close the window in Chrome

The issue is that when I invoke window.close() or self.close() it doesn't close the window. Now there seems to be a belief that in Chrome you can't close by script any window that is not script create...
7
votes
1answers
11905 views

Choosing and activating the right controls on an AJAX-driven site

So, I am trying to make it where every time I visit any nike.com sneaker page (without the HTML link), it automatically picks my shoe size, adds it to the cart, and checks out for me. I am currently...
16
votes
3answers
5474 views

jQuery in Greasemonkey 1.0 conflicts with websites using jQuery

Ever since the new Greasemonkey 1.0 was released a few days ago, every site that has jQuery and where I use jQuery in my Greasemonkey script do not run my script properly. The jQuery I have in my GS s...
4
votes
1answers
2831 views

jQuery-UI is not working in my userscript without CSS, or with customization?

I only want to use a tiny part of jQuery-UI (Menus) in a userscript I am making. jQuery-UI offers custom downloads, but I cannot find any links to specific modules, that I can @require in the script. ...
2
votes
1answers
2613 views

How do I get Greasemonkey to click on a button that only appears after a delay?

I've seen a lot of similar questions and I've tried everything I can think of to get this to work on my own. First the relevant code (¿from the target page?): document.getElementById('btn_submit')....
13
votes
2answers
7045 views

Can a website know if I am running a userscript?

Can, for example, Facebook.com run a version control script on my browser and find out if I am running altered HTML code with the use of a script? Could that be done with a script that can read the H...
10
votes
2answers
2981 views

How to exclude iframe in Greasemonkey or Tampermonkey?

I have created a Greasemonkey script for a website. What the script does is adding a div at the end of the page. document.body.insertBefore(myDiv, document.body.firstChild); But now the site adds a...
2
votes
1answers
625 views

Recall Tampermonkey script when page location changes

Well, I want to know if its possible to recall a Tampermonkey script when a user changes his location (but the match is still active). For example, my scripts hooks youtube website. I need to make th...
21
votes
2answers
9235 views

Run a Greasemonkey script only once per page load?

If you create a Greasemonkey script with @include * and go to a site like youtube, it runs the script 20+ times every time you refresh. This is on Firefox, not sure about Chrome. Is there a way to pre...
7
votes
1answers
18251 views

How to use greasemonkey to selectively remove content from a website

The content I am trying to modify has a series of <div> entries, and within each of these are other <div> entries. There are no id tags to help here. What I want the script to do is inspec...

Previous Next