greasemonkey

Replace Tumblr, Pinterest, Flickr images with larger versions in InoReader (RSS Reader)

大城市里の小女人 提交于 2019-12-08 08:35:08
问题 I'm looking to make a Greasemonkey script that will replace the images in Tumblr, Pinterest, Flickr, Facebook, and Webstagram RSS feeds with larger versions in InoReader. I had been successfully using the following scripts in Google Reader for Tumblr and Pinterest. Would like to port them over to InoReader and combine them all into a single script. Old Google Reader Tumblr script: // ==UserScript== // @name Big Photos from Tumblr on Google Reader // @include http://*.google.com/reader/view/*

Greasemonkey: “GM_xmlhttpRequest is not defined” with the new update

心已入冬 提交于 2019-12-08 08:15:08
问题 Why this simple Greasemonkey script is not working for me https://jsfiddle.net/pghnsw8z/1/ ? I mean that instead of getting successful response I get error while making an ajax call. // ==UserScript== // @name _Starter AJAX request in GM, TM, etc. // @match *://php.net/* // @grant GM_xmlhttpRequest // @connect php.net // ==/UserScript== GM_xmlhttpRequest ( { method: 'GET', url: 'http://php.net/', onload: function (responseDetails) { // DO ALL RESPONSE PROCESSING HERE... alert(responseDetails)

Modify Javascript Variable Using Greasemonkey

萝らか妹 提交于 2019-12-08 06:14:51
问题 Help, can anyone help me how to change javascript variable using greasemonkey? I already following the answers on this question: How can I change a JavaScript variable using Greasemonkey? and also this link: http://webdeveloper.com/forum/showthread.php?t=166658 but I unable to modify the counter variable value on the function with this script: // ==UserScript== // @name My Fancy New Userscript // @namespace http://use.i.E.your.homepage/ // @version 0.1 // @description enter something useful /

How can I enhance the functionality of a page whose source I shouldn't modify?

雨燕双飞 提交于 2019-12-08 05:20:59
问题 A friend of mine uses a web-app for work related purposes. The app's built using PHP/MySQL , and while it has some JavaScript to make it easier to work with, it's not user friendly enough, and with a bit of extra JS, a lot of stuff could be automated. I would like to enhance that app, but I'd like to not have to modify the original server-side code. To do this, all I could think of was Greasemonkey. Is this the only way to do it, or am I missing out something? I'd also like to be able to use

My Greasemonkey script starts a sequence of images loading. How do I stop it when desired?

假装没事ソ 提交于 2019-12-08 04:16:02
问题 I use ImgLikeOpera and Squid Caching Proxy to manage my bandwidth while on dialup. But, I can't set it to load one image at a time, so I had the bright idea to write a script that will open each image on a page one at a time in a new tab and then close them so that they'll be saved in my cache. Script works great, added a start button so that I could control when it started... but can't figure out how to make a stop button that will interrupt the process. I tried a bunch of stuff and nothing

Check if a website is making X http request with javascript

房东的猫 提交于 2019-12-08 02:31:17
问题 I've been searching for a while but all I could find was examples on how to actually make those requests... What I'm trying to do is to check if a website is making an http request after I click a button to X site Ex. http://test.s3.amazonaws.com/test/1.txt I'm guessing there a way to get all the outgoing requests and then filter the list but I can't even get the requests What I've done so far is just inserting the eventlistener to check that X button has been clicked and then is when I'd

Deleting child nodes of a div node

。_饼干妹妹 提交于 2019-12-08 02:26:56
问题 I have following codes to remove child nodes of a div node. Are both of these codes correct? while(innerWindowContentBox.hasChildNodes()) innerWindowContentBox.removeChild(innerWindowContentBox.childNodes[0]); Other is innerWindowContentBox.innerHTML = ''; Note that the code is for a Greasemonkey script so IE support is not required. 回答1: Both bits of code will get the job done but use the DOM approach ( that is while(innerWindowContentBox.hasChildNodes() ... ). Advantages: It's quite a bit

Disabling a page's focus-checking function using GM [duplicate]

狂风中的少年 提交于 2019-12-08 02:21:42
问题 This question already has answers here : Stop execution of Javascript function (client side) or tweak it (4 answers) Closed 6 years ago . I'm trying to stop a page from stopping itself when it thinks it's lost focus. So How do I disabling a function within webpage using GM? I'll try by giving the script on the page, hopefully someone can help me decipher it better, LOL. <script> var nmn=0,isa=0,pr=1,wc=1,clkt='ptc',clki=303250,clkc=634089,capt=1367698325,stimg='http://something.com/img/',fxp

Is there a way to exit a Greasemonkey script?

ε祈祈猫儿з 提交于 2019-12-08 02:20:40
问题 I know that you can use return; to return from a Greasemonkey script, but only if you aren't in another function. For example, this won't work: // Begin greasemonkey script function a(){ return; // Only returns from the function, not the script } // End greasemonkey script Is there a built in Greasemonkey function that would allow me to halt execution of the script, from anywhere in the script? Thank you, 回答1: Yeah, you can probably do something like: (function loop(){ setTimeout(function(){

Greasemonkey script in Firefox 4, want to change one line of code on webpage

岁酱吖の 提交于 2019-12-08 01:14:21
问题 Alright, I will try to make this is as simple as possible, without being too vague. I want to change one of line of code on a webpage in hopes of preventing a preview pane from appearing. Original line of code <div id="previewpane" class="previewpane" sytle="height: 139px;"> I want to replace the above line with <div id="previewpane" class="previewpane previewpane-hide" style="height:139px;"> I have previously written one Greasemonkey script but unfortunately I am have having difficulty