Questions tagged [greasekit]

GreaseKit is a SIMBL plugin, that adds user scripting to Safari, Mailplane, Diet Pibb.app and all WebKit applications.

GreaseKit is a SIMBL (a patching tool for Cocoa apps) plugin, that adds user scripting to Safari, Mailplane, Diet Pibb.app and all WebKit applications.

14 questions
3
votes
1 answer

How can I parse an embedded iFrame to show only a snippet from the iframed page?

For my Greasemonkey-like script, I have loaded an https page on Amazon.co.uk and I wish to display the price of an item on a linked page. What I’ve been doing so far: I tried to use an iFrame to display the window: var prodLinks =…
3
votes
1 answer

Using GM xmlhttpRequest instead of an iframe to display pertinent info from an external page

I have loaded an https page on Amazon.co.uk and I wish to display use 'GM xmlhttpRequest' to request the price of an item on a linked page. What I’ve been doing so far I tried to use an iFrame to display the window: var prodLinks =…
2
votes
3 answers

If page contains specific text then reload (using javascript)

If the text We are sorry but we made a boo boo appears then Wait 5 seconds reload I would like to do this in JavaScript. Here is an attempt (function () { "use strict"; function walkTheDOM(node, func) { if (node && node.nodeType) { …
Hiya
  • 175
  • 1
  • 2
  • 9
2
votes
1 answer

How can I craft a GreaseMonkey-like script to show a different page in the lower-third?

If you take a look at this page, there's a lot of white space in the bottom. I wish to use Greasemonkey-like script on that page, that utilises some of that white space and loads another page there (using something like an iFrame). The URL that I…
2
votes
1 answer

Auto select items-per-page (a drop down) using a Greasemonkey-like script

If you take a look at this page, there's a drop down to show results per page: it can be 10, 20 or 50. I would like a Greasemonkey-like script to simulate selecting 50 per page. For ease of reference some of the HTML from the page is…
Sockie
  • 189
  • 1
  • 9
1
vote
7 answers

How can I refine this Javascript code to refine it so it only work on links from images (and NOT links from text)

I want to make some refinement to some code from a previous question: // the new base url var base = ' https://www.example.co.uk/gp/wine/order?ie=UTF8&asin='; var links = document.getElementsByTagName('a'); for(var i = 0;i < links.length;i++){ …
1
vote
1 answer

Using Javascript to click on a given button AND have it open in a new window

When this page loads, I want to simulate automatically clicking the send me this thing button whilst having it open in a new window (or new tab) There will only ever be one send me this thing button on any page like that What for? This is for…
Sockie
  • 189
  • 1
  • 9
1
vote
0 answers

Using Javascript (Greasekit) to click two items from a list depending on my whims

When this page loads, I would like to be able to use a greasemonkey-like script to click two items based on my whims. For this example, my whims are: Chocolate "Alcohol free" So, if either of the above keywords appear in a link on that page, I…
Hiya
  • 175
  • 1
  • 2
  • 9
1
vote
1 answer

JavaScript (Greasekit) click radio button box and submit the form

From this:
Where would you like your ad to appear?
Elle
  • 375
  • 1
  • 2
  • 12
1
vote
1 answer

Using GreaseKit: if a string is present in a table cell, then click a specific button IF it appears in the very same cell

I am using GreaseKit (so JavaScript) Step #1 Look for string & Step #2 Click button When this HTML page loads, if either of the following : Only 3 Left or Only 2 Left or Only 1 Left appears in a table cell AND a button with class="PrmryBtnMed" is…
Hiya
  • 175
  • 1
  • 2
  • 9
1
vote
1 answer
0
votes
2 answers

How can I refine this Javascript code so it IGNORES links from images

This is a variation of an existing question {Please note - this question is the opposite/inverse of an existing StackOverflow question that is too complex to answer there} From the very beginning I want to make some refinement to some code from this…
Elle
  • 375
  • 1
  • 2
  • 12
0
votes
1 answer

If a button appears on a page, automatically click it

Dispatch to this address If I was to give instructions to a human, I would say: look for a…
Elle
  • 375
  • 1
  • 2
  • 12