tampermonkey

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

给你一囗甜甜゛ 提交于 2019-11-26 05:38:25
问题 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. Does anyone host the individual modules? Also, I have tried just requiring code.jquery.com/ui/1.11.1/jquery-ui.js , and the script crashes. Do I need to include some CSS with it as well? And also do some messy looking changes, like according to this answer? Will that code be different for

How to use greasemonkey to selectively remove content from a website

人盡茶涼 提交于 2019-11-26 04:26:47
问题 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 inspect the content of each of these <div> entries and look for some text. This will be used to determine whether the whole \'\' entry is deleted/hidden or not. Is this possible? How? Below is an example. There are several of these in the page, and I want to delete/hide the ones where the text inside the <div

How to get an AJAX get-request to wait for the page to be rendered before returning a response?

末鹿安然 提交于 2019-11-26 00:55:54
问题 I am in the process of writing a Greasemonkey Script for pages in this site (Site1). Site1 has deals and offers of various kinds and my GM script aims to do the following: When one visits an offer on Site1, the script queries Site2 to find out whether this hotel is also listed on Site2. If so, display the search results from Site2 on Site1. The problem is that Site2 displays a progress bar (\"Loading Results\") and then displays the results. Thus my Ajax request always returns empty results

jQuery in Greasemonkey 1.0 conflicts with websites using jQuery

故事扮演 提交于 2019-11-26 00:00:58
问题 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 script (using the @require metadata) conflicts with the page\'s jQuery. This is due to the new @grant code. I\'ve read the documentation but still don\'t know how to run GS scripts in a sandbox again; the only options seem to be to either grant access to a GS API or to grant it to none and run the

Run Greasemonkey script on the same page, multiple times?

一世执手 提交于 2019-11-25 22:43:56
问题 I\'m totally new to Greasemonkey, javascript, in fact all the UI stuff. Requirement: Userscript is run by GS once after the page loads. However, I need the same script to be run multiple times without refresh Use case: For ex, Amazon.com search happens using Ajax. I need to embed a custom element in the search results. I need to inject my content to the search-results-div along with the results every time a search happens in the same page (there\'s no page refresh) My current script runs only

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

偶尔善良 提交于 2019-11-25 22:18:18
问题 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 trying to use this script (below), but every time I go to the sneaker page, it does not properly add the shoe size I want, but just goes straight to checkout with nothing in my cart. I\'m told that I need to match the code to the actual page HTML, but I don\'t know how to do that. Please help. //

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

若如初见. 提交于 2019-11-25 21:41:55
问题 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 created. That is patently false but regardless it is supposed to still do it, even if it requires to pop up an alert to confirm. These are not happening. So does anyone have real, functional and proven method of closing a window using something like javascript:window.close() or javascript:self.close(