|
Jan 10, 2008
|
Topic: Script development / Greasemonkey - performance I vaguely remember a discussion(s) years ago about image loading, but there are so many issues (Image Manager, CSS, onload handlers, prefetching...) the memory isn't clear.
Images are always downloaded, CSS and JavaScript methods have no effect on that. The visual effect is as I stated above.
Iframe content is downloaded even with CSS defining it or it's parent not be displayed.
I still want to test object tags and embed tags within object tags. Images can be added with object tags as well. And some pages embed mp3 files which get picked up by my download manager, which is really annoying. I haven't tested CSS background images. |
|
Jan 10, 2008
|
Topic: Ideas and script requests / Need a script Hi to all members of this big growing community, I am really new to this internet world and found a site this can be downloaded in http://ougo.com/setup.exe , I need a script that must be run with this browser. If any one is familiar with this site. Can you make a script that will make it run with this browser. Its an autosurf browser and generates credits to each person who rotates the site. I also need a complete script to track the members activities and see how each of them do there works.
Happy New Year to all members of Userscripts Forum |
|
Jan 10, 2008
|
Topic: Script development / Greasemonkey - performance @Mikado
|
|
Jan 10, 2008
|
|
|
Jan 10, 2008
|
Topic: Userscripts.org discussion / esnips script hi Please i have tried this Javascript code for : http://userscripts.org/scripts/show/16714 it's used for download script but dont work right
Please some one can telle me what i must edit in script thx |
|
Jan 10, 2008
|
Topic: Userscripts.org discussion / Spam and malware Spammer.. |
|
Jan 9, 2008
|
Topic: Script development / Greasemonkey - performance non-displayed images (I think) are not downloaded Only true for Opera. http://www.quirksmode.org/css/displayimg.html |
|
Jan 9, 2008
|
|
|
Jan 9, 2008
|
Topic: Ideas and script requests / Media Center WebGuide with Google Calendar output Well, if you can't change the server code to include the buttons, you could do it in the browser with a user script of course. To get started, this document is just perfect: http://diveintogreasemonkey.org/toc/ Especially, take a look at the DOM inspector and Javascript Shell part of it (chapter 3). With these two tools it should be quite easy to adapt one of my Google Calendar button scripts to your needs. The main task is to fish the necessary bits of information (date, time, duration, description) out of the original page and pack them into a Google Calendar button. Without having the HTML of these pages at hand, I can't say anything more specific. Regards, Tilman |
|
Jan 9, 2008
|
Topic: Script development / Greasemonkey - performance Thanks so much Descriptor!!! What you've written is totally what I was thinking, at first I was mistaken about Greasemonkey, only when I created the script I realized that it actually uses JS to apply CSS to the page, and that's where the slight delay might be coming from. I can definetely use it with CSS and I will create a Stylish script for that purpose as I'm only using CSS manipulation. I asked this question also, because I wasn't sure about the "competition" between GM and Stylish ;) I thought it's about GM being more popular and widely used than Stylish, now I can see that those addons serve a bit different purpose and should be used accordingly. Nevertheless I still can see some scripts on Userstyles which can be loaded via Greasemonkey, hence my confusion... Thanks! |
|
Jan 9, 2008
|
Topic: Script development / Greasemonkey - performance Greasemonkey manipulates the document through JavaScript (it inserts new JS code into the DOM).
So I think the answer is, if you can do it with CSS, then use Stylish. If you can't, or if it isn't practical, then use Greasemonkey. With Greasemonkey you can add element IDs and Classes (to use in Stylish); and remove, replace or add elements. This you (mostly) can't do with Stylish CSS at all. However CSS does allow you to add content :before and :after, and to replace background images. |
|
Jan 9, 2008
|
Topic: Script development / Greasemonkey - performance Hi there, I made one script for Greasemonkey which basically hides unwanted elements on a page. However these elements get loaded before GM script comes into effect, and are visible for a short while. This is not a big problem but I was thinking of GM performance, is this the same as Stylish addon? I would have to create a Stylish script and check for myself... but the question I had was, what's the main purpose of GM? Should it be used for CSS manipulations? Or is it the field of Stylish? .... cheers |
|
Jan 9, 2008
|
Topic: Ideas and script requests / Simple rerolling script for RPG game Thank you very much, I haven't been able to try this out because I've been working 14 hour days, but when I get some freetime I will, and I'll post back with how it worked out and my final script hopefully. |
|
Jan 9, 2008
|
Topic: Script development / DOMParser error Yes, very handy for complex tasks, but for simple tasks I think a simple regex would be faster. Don't think I want to try serializing and parsing a hundred requests. |
|
Jan 9, 2008
|
Topic: Userscripts.org discussion / Spam and malware More by smallcat http://userscripts.org/users/42042/posts
|
|
Jan 9, 2008
|
Topic: Script development / DOMParser error Thank you so much! I will finally be able to stop using that iframe in my facebook refresh script. |
|
Jan 8, 2008
|
Topic: Script development / Problem with GM_xmlhttpRequest I have the same problem right here:
And apparently there is a solution right here:
I really hope the GM developers will find a way tomake simple things like that work. |
|
Jan 8, 2008
|
Topic: Script development / Problem with GM_xmlhttpRequest I want to retrieve a property of an element on a external page.
The above code results an alert:
Now I want to get the "href" of the 2nd "Ref".
But it doesn't work! Any help? |
|
Jan 8, 2008
|
Topic: Ideas and script requests / note pad for gmail it would be nice to have some sort of note pad or scratch pad for gmail so i don't have to email myself all the time. would this be easy? |
|
Jan 8, 2008
|
Topic: Ideas and script requests / Omerta ranking script... i wanna buy omerta rank script .... what can ı do ? |
|
Jan 8, 2008
|
Topic: Ideas and script requests / Omerta ranking script... i wanna buy omerta rank script .... what can ı do ? |
|
Jan 8, 2008
|
Topic: Ideas and script requests / Quicktime Default Volume Thanks a lot!
|
|
Jan 8, 2008
|
Topic: Ideas and script requests / Quicktime Default Volume If QuickTime is set to handle all video types, this might work better.
// set volume 0 to 100
var QT_volume = "50";
var QT_node;
if(QT_node = document.evaluate("//embed[starts-with(translate(@type, 'VIDEO', 'video'), 'video/') or contains(translate(@src, 'MOV', 'mov'), '.mov')]", document, null, 9, null)){
QT_node.singleNodeValue.setAttribute("volume", QT_volume);
}
else if(QT_node = document.evaluate("//object[starts-with(translate(@type, 'VIDEO', 'video'), 'video/')]", document, null, 9, null)){
var node;
if(node = document.evaluate("//param[translate(@name, 'VOLUME', 'volume') = 'volume']", QT_node.singleNodeValue, null, 9, null)){
node.singleNodeValue.setAttribute("value", QT_volume);
}else{
node = document.createElement("param");
node.setAttribute("name", "volume");
node.setAttribute("value", QT_volume);
QT_node.singleNodeValue.appendChild(node);
}
}
|
|
Jan 8, 2008
|
Topic: Ideas and script requests / Quicktime Default Volume
// set volume 0 to 100
var QT_volume = "50";
var QT_node;
if(QT_node = document.evaluate("//embed[contains(translate(@type, 'QUICKTME', 'quicktme'), 'quicktime') or contains(translate(@src, 'MOV', 'mov'), '.mov')]", document, null, 9, null)){
QT_node.singleNodeValue.setAttribute("volume", QT_volume);
}
else if(QT_node = document.evaluate("//object[contains(translate(@type, 'QUICKTME', 'quicktme'), 'quicktime')]", document, null, 9, null)){
var node;
if(node = document.evaluate("//param[translate(@name, 'VOLUME', 'volume') = 'volume']", QT_node.singleNodeValue, null, 9, null)){
node.singleNodeValue.setAttribute("value", QT_volume);
}else{
node = document.createElement("param");
node.setAttribute("name", "volume");
node.setAttribute("value", QT_volume);
QT_node.singleNodeValue.appendChild(node);
}
}
|
|
Jan 8, 2008
|
Topic: Ideas and script requests / Quicktime Default Volume I would love a script that sets the default volume to a lower value maybe half.
VOLUME=value (optional...requires QuickTime 3) The VOLUME attribute sets the movie's initial volume. Only integer values between 0 through 100 are supplied for this attribute. By default, VOLUME is set to 100. A setting of 0 effectively mutes the audio whereas a setting of 100 is the maximum volume. For example:
anyone up for the task? |