greasemonkey

How to alter this javascript with Greasemonkey?

这一生的挚爱 提交于 2019-11-27 09:23:37
Here is the script: <script type="text/javascript"> // <![CDATA[ $(document).ready(function() { $('#file_upload').uploadify({ 'uploader' : '/uploadify/uploadify.swf', 'script' : '/upload2.php', 'cancelImg' : '/uploadify/cancel.png', 'folder' : '/uploads', 'auto' : false, 'onError' : function (event,ID,fileObj,errorObj) { alert(errorObj.type + ' Error: ' + errorObj.info); }, 'fileExt' : '*.wma;*.mp3', 'fileDesc' : 'Audio Files', 'scriptData' : {'fileID':'20541','hash':

I have to refresh the page for my Greasemonkey script to run?

久未见 提交于 2019-11-27 09:21:27
So I know it's something to do with AJAX, but I've read a few topics and don't quite understand what I have to do. Currently everything works fine, but I have to refresh the page for my script to run. What needs to be done with my code to get it working without refresh? // ==UserScript== // @name Job Aids // @description Aid in closing tickets // @include https://techaccess.ad.qintra.com/WorkJobs/WorkJobs.aspx* // @namespace camzilla.net // @version 1.1.20121128 // ==/UserScript== var url = window.location.href.split(".aspx"); var page = url[1].toLowerCase(); if (page == "#finaltest") { window

How to change a website image with javascript?

我只是一个虾纸丫 提交于 2019-11-27 08:52:25
问题 I'm working with my first Greasemonkey script. And its for a website that have a logo, i want to change the image to a image i have created, and i wonder how i do this? like use JavaScript to edit the current html document and replace the image. Thanks for any help! Edit: The image is inside a <img> tag, the image i want to change/replace is in this code: <img class="fb_logo img" src="https://s-static.ak.facebook.com/rsrc.php/v1/yp/r/kk8dc2UJYJ4.png" alt="Facebook logo" width="170" height="36

Greasemonkey script that removes or blocks select JavaScripts [duplicate]

心不动则不痛 提交于 2019-11-27 08:21:25
问题 This question already has answers here : Stop execution of Javascript function (client side) or tweak it (4 answers) Closed 5 years ago . I tried unsuccessfully to make a script that deletes another script on a page. The page loads 2 scripts in <body> that I don't want to execute: <div id="myindex"> <div class="wrap"> <div id="idone"></div> <div id="idtwo"></div> <script type="text/javascript"></script> <script type="text/javascript"></script> <script type="text/javascript"></script> //To

Userscript to Loop over several HTTP Requests and combine the results?

自作多情 提交于 2019-11-27 08:18:33
问题 I now know how to load columns, of a table, from an external webpage. Now I want to expand on that and: Fetch tabular data from several pages (rankings by player position). Merge it into one master table. This is the URL (http:...fantasysports.yahoo.com...pos=QB) that the script currently fetches. The columns are the team name and the team's rank for the various positions. I want to have it iterate over other positions (i.e. WR, RB, TE). This is done by just changing the last 2 letters of the

Add a JavaScript button using Greasemonkey or Tampermonkey?

Deadly 提交于 2019-11-27 07:29:40
I am fairly new to the world of Greasemonkey and I was wondering how to make a button in JavaScript. Say I wanted to put a button on YouTube or Google for instance? How would I go about calling it or making it? I'm very confused and cant find anything on it. Unless is there someway to interact with the HTML of these sites and add them to Greasemonkey scripts? Ok, here's a complete script that adds a live button to SO question pages 1 : // ==UserScript== // @name _Adding a live button // @description Adds live example button, with styling. // @match *://stackoverflow.com/questions/* // @match *

window.load doesn't fire always on chrome?

你说的曾经没有我的故事 提交于 2019-11-27 07:11:42
问题 I have this userscript: // ==UserScript== // @name test // @namespace test // @description show's an alert on load // @include http://* // @include https://* // ==/UserScript== window.addEventListener('load', function(){alert("loaded");}, false); This works fine on Firefox on all pages but doesn't work at all on Chrome at some occasions. One example is this website: http://lexin.nada.kth.se/lexin/ Entering the link in the address and hitting enter, loads the page normally but no alert is

Greasemonkey script only runs when page is reloaded

折月煮酒 提交于 2019-11-27 07:01:47
问题 I am working on a Greasemonkey script to turn some text into links on a a Rally page. The script works fine only when I reload the page. If I navigate to the page in any manner (links, browser forward/back) the script does not run, despite the fact that the Greasemonkey menu shows my script at the bottom, with a checkmark. Here is an example URL: https://rally1.rallydev.com/#/4745909548/detail/userstory/6138899084/changesets My matching rule: /^https://.*\.rallydev\.com/.*/changesets$/ I don

How to debug Greasemonkey script with the Firebug extension?

假装没事ソ 提交于 2019-11-27 06:43:51
I didn't find a way to debug Greasemonkey scripts with the Firebug extension. Does anyone know how to do this ? Thanks. Brock Adams Updatier: The Mene+Shuman fix now is busted with Firefox 30 and Firebug 2. Firefox 31 may provide workarounds (will investigate). In the meantime, use the "General workaround strategies" listed below. Update: This answer is now obsolete. If you open about:config and set extensions.firebug.filterSystemURLs to false then you can use Firebug to debug the Greasemonkey script just like any other. This works irregardless of the @grant mode. See Mene's answer -- with an

How can I automatically select specific radio buttons with Greasemonkey?

旧街凉风 提交于 2019-11-27 06:32:22
问题 I want to automatically answer questions with Greasemonkey. I have the questions and answers, but how can select them? Here's the HTML: <div class="vito_form_q"> <div class="vito_form_title_min_no"> <span id="ContentPlaceHolder1_lblquestionNo">8</span> </div> <div class="vito_form_title_min"> <span id="ContentPlaceHolder1_lblquestion">Which sport is not playing with the ball?</span> </div> <div class="clearfloat"></div> <div class="meter orange nostripes"><span style="width: 100%"></span><