greasemonkey

fixing ESPNConversations (add pause button)

旧时模样 提交于 2019-12-12 16:31:50
问题 Its their new discussion board. (http://espn.go.com/nba/conversation?id=310605006) The problem is, the real time updates keep adding new comments so it keeps scrolling away from whatever you're reading, for example right after a game when thousands of people are adding comments. Its really ridiculous. So just trying to write a greasemonkey script where you can hit a button and it will pause the board updates. The pause function is what I don't know - what is the most basic straightforward way

how to replace Head script using Greasemonkey code

回眸只為那壹抹淺笑 提交于 2019-12-12 13:41:33
问题 i want to replace "script.js" to "demo.js". anyone please help me <head> <script src="script.js" type="text/javascript" language="javaScript"></script> </head> 回答1: Run your script early by @run-at document-start . Add an event listener beforescriptexecute and check the script source. When you detect the desired script, call preventDefault method of the event and replace the script tag in the DOM. // ==UserScript== // @name demo-scriptreplace // @include http://example.com/* // @version 1 //

Submit form using Greasemonkey

∥☆過路亽.° 提交于 2019-12-12 13:13:08
问题 The first time, each day, I try to access a web page at work, I get redirected to an internally hosted web page with the IT guidelines and a form with two buttons "Agree" and "Disagree". Clicking "Agree" then allows external internet access for that day and sends you to the site you were originally looking for. I want to make a Greasemonkey script that auto-submits the form, since I already have a batch file starting up all my normal apps on boot and this would allow me to just leave the PC

How to view the source of currently displayed html page(dynamically) than the original page? [duplicate]

倾然丶 夕夏残阳落幕 提交于 2019-12-12 11:23:41
问题 This question already has answers here : Best Way to View Generated Source of Webpage? (16 answers) Closed 6 years ago . G'day everybody, As an avid firefox user, I use plugins like stylish and Greasemonkey to modify default styles of pages. However the view->page source option of the browser shows only the page in its original form and not the current form after it is manipulated by a script or a style. Is there any way i can view the source of a page based on what is displayed on the

Can I execute MySQL SQL statements in FireFox?

夙愿已清 提交于 2019-12-12 10:08:15
问题 There is a FireFox plugin called greasemonkey with which you can execute some piece of JavaScript code on the page you specified. I want to know whether there is a way that I can embed SQL statements (MySQL) in JavaScript. If so, I can extract the information I need and save them to my MySQL database for later use. Is this possible? Thanks. 回答1: Strictly speaking, you cannot execute MySQL statements in Firefox, although you can in Chrome for the moment. In Firefox you can create and use

How to have greasemonkey Check if text if found on page

馋奶兔 提交于 2019-12-12 08:53:56
问题 I did do some research on google and the userscripts site but was unsuccessful in finding an answer. So basically how can I check if specific text is found on a page? And the text is in no special tags or anything. 回答1: A crude but fast way, for FF GM: if (/Text you are looking for/i.test (document.body.innerHTML) ) { alert ("Found it!"); } //--- Looking for one of two different texts... if (/(Text ONE that you are looking for)|(Text TWO that you are looking for)/i.test (document.body

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

那年仲夏 提交于 2019-12-12 06:17:06
问题 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 challenge: // 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++){ // check each link for the 'asin' value var result = /asin=([

my redirect_uri results in an “Unable to connect” warning

不羁岁月 提交于 2019-12-12 05:42:07
问题 My question is a follow-up to how to programmatically create an authentication/login window. One reply to that question suggested that I look at the example code in https://meta.stackexchange.com/a/293498/148310. I implemented that code, and I am now able to get a login/authentication window. The problem now is that immediately after entering my login credentials, I am redirected to my specified redirect_uri URL address (localhost, see image), where the browser complains of "Problem loading

Toggling click handler using waitForKeyElements

 ̄綄美尐妖づ 提交于 2019-12-12 05:13:30
问题 I recently discovered, waitForKeyElements. An amazing utility from BrockA. I'm using the userscript below in Tampermonkey to automatically accept chats from SalesForce's LiveAgent. Works great, my question is if there's a way to add a button or a link to toggle between it, without having to flip the disable & enable switch on Tampermonkey, and then refreshing the page? Any help is greatly appreciated since I've spent a few days looking for an answer, and very little to show for. Thanks in

Automate getting report from webpage

橙三吉。 提交于 2019-12-12 04:33:35
问题 I'm a Java developer and I have a question about automating a task I've been given. I'm having to 3 times daily, login to this website we have at work, select a few form elements and then click on submit to get a report printed out. I'm wondering how I can write some sort of script that will automate this task? Where should I start? What language should I do it in? I was thinking PHP might be able to do this or even a greasemonkey script possibly? Thanks a lot. 回答1: Check out cURL in PHP. It