Recent posts by znerp
|
Sep 5, 2008
|
Topic: Script development / Script Not Running I've had this issue before, and I suggest two solutions. Firstly, disable all other add-ons amd see if the srcipt runs then. This didn't work for me, so the second solution was that I created a new firefox profile and installed only greasemonkey and the script that wasn't working, and it worked fine. I don't spend much time on computers these days, but at some point I will get around to moving all of my other settings across to this new profile and using only that one. |
|
Aug 26, 2008
|
Topic: Script development / Move an element to 0,0? First post, first script It looks like you just want to change the style of some element with id #some-id {
position: absolute !important;
top: 0px !important;
left: 0px !important;
border: 3px solid red !important;
}
|
|
Aug 23, 2008
|
Topic: Ideas and script requests / Timezone script.. I've done something similar to this by using var parts = myDate.replace(/[\s:]/g, "-").split("-");
var year = parts[0];
var month = parts[1];
etc..
|
|
Aug 23, 2008
|
Topic: Userscripts.org discussion / Script Categories? This sounds a little like the Communities idea Jesse posted a few months back. I agree that more structure would be good. A year ago I could easily keep up with every script that had been uploaded or updated, but due to having less time in general and with more scripts being uploaded/modified now (or at least, it seems that way), I can't keep up. Communities/categories would certainly help with this. |
|
Aug 20, 2008
|
Topic: Script development / How to uninstall scripts? See this - http://wiki.greasespot.net/Greasemonkey_Manual:... EDIT: How quickly exactly were you expecting a reply? I posted my reply only to see that shortly beforehand, within 8 minutes of posting your question, you've posted a follow-up asking again. In those 8 minutes perhaps you could have searched the internet or followed the link on the Greasemonkey page of the firefox add-ons site and searched the wiki yourself. If you try helping yourself instead of hounding others for help you might actually learn something. |
|
Aug 20, 2008
|
Topic: Script development / scriptsss I don't know if there's actually anything wrong with your scripts, but after briefly seeing their names I can tell you that you're unlikely to find much help on this website. The 'scrap all' scripts have been a huge annoyance to a lot of people on this site, and if you don't understand what they do or how to do it, I'd recommend that you just quietly remove your scripts and stop posting on here. |
|
Aug 19, 2008
|
Topic: Userscripts.org discussion / Fix the web idea project Have you tried MonkeyBarrel? |
|
Aug 17, 2008
|
Topic: Userscripts.org discussion / Order scripts per fans I'm sure you must know this, but if that's a request you should post it on uservoice. |
|
Aug 15, 2008
|
Topic: Userscripts.org discussion / Spam and malware Another topic spammer: http://userscripts.org/users/62961 |
|
Aug 14, 2008
|
Topic: Ideas and script requests / Set wmode="transparent" for flash players. Please. I've not tested it, but if you just want it after every embeds = document.getElementsByTagName("embed")
for (i = 0; i < embeds.length; i++)
embeds[i].setAttribute("wmode", "transparent")
|
|
Aug 14, 2008
|
Topic: Userscripts.org discussion / Spam and malware This looks like another spam topic - http://userscripts.org/forums/4/topics/3095 |
|
Aug 14, 2008
|
Topic: Userscripts.org discussion / Spam and malware Another forum spammer - http://userscripts.org/users/62849 |
|
Aug 13, 2008
|
Topic: Ideas and script requests / renaming tab As I said, look up regular expressions... In the example that I linked, Assuming that the title of the page you're trying to change starts with "Tribal Wars Map " then you want to use |
|
Aug 13, 2008
|
Topic: Userscripts.org discussion / Spam and malware I was just looking up a script of Henrik's for this topic (this script here), and it looks like it's been duplicated here with one very minor change. That user seems to have modified it and used it for a number of other applications which is fine but I'm not sure about the original duplication of Henrik's script. |
|
Aug 13, 2008
|
Topic: Ideas and script requests / ?.jpg ... why? |
|
Aug 13, 2008
|
Topic: Ideas and script requests / renaming tab Have you tried looking at current scripts to see how they do it? I'd recommend you look at eg. Henrik's script here, and maybe look up regular expressions to help you understand it better. |
|
Aug 13, 2008
|
Topic: Userscripts.org discussion / Versions & Diffs for a userscript Btw, on other topics I had posted in the forums about bugs and improvements... should I put it elsewhere? where? :)On the left of the screen you'll see an orange "feedback" link. I think that would be the appropriate place for bugs and improvements. |
|
Aug 13, 2008
|
Topic: Script development / link to pictuer Yes there is. Try this... links = document.evaluate('//a[contains(@href, "/pic-")]',document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null)
for (i = links.snapshotLength - 1; i >= 0; i--)
links.snapshotItem(i).href = links.snapshotItem(i).href.replace(/\/pic-(\d+)\.html/i, "/$1.jpg")
|
|
Aug 12, 2008
|
Topic: Script development / Scripts do everything twice people are complaining of scripts not working at all in 0.8.xNew scripts aren't running for me at all, and also after I modify scripts they don't work for me. This is only at my home PC though; everything works fine at work. In the end I've created a new profile and that seems to work fine. If nothing changes in the next week or so I'll probably simply transfer all my settings across to this new one. |
|
Aug 11, 2008
|
Topic: Ideas and script requests / ?.jpg [...] or else your url bar will get infinitely filled up with ?.jpg's.That's a very good point. That one's a schoolboy error, but one that I seem to make surprisingly often. |
|
Aug 11, 2008
|
Topic: Ideas and script requests / ?.jpg So you want whatever address you go to to have window.location.replace(window.location.href + "?.jpg") To install this in greasemonkey, right click the monkey face in the corner and select "New user script...". Fill in the details, and then paste that line into the script. Save it and then it should simply work. |
|
Aug 11, 2008
|
Topic: Ideas and script requests / ?.jpg Is that to every link, or to the location of the window? To add it to every link, the following would work... for (i = document.links.length - 1; i >= 0; i--) document.links[i].href += "?.jpg" |
|
Aug 11, 2008
|
Topic: Script development / remove tags with regex @ScroogeMcPump: Interesting post, I like that .. thanks for the reply. |
|
Aug 11, 2008
|
Topic: Script development / Scripts do everything twice Could the script be running on two frames in the window? |
|
Aug 11, 2008
|
Topic: Ideas and script requests / Notify when a page is loaded This should work... window.addEventListener('load', function(e) { alert("page loaded!"); }, true);
|
