Comments by dob on scripts
10 comments
|
Comment on: |
I think I opened a thread about that once, given that it's possible by simply a for() loop in PHP, but it wasn't changed, which is too bad. It should only be counted as one install per IP in my opinion. |
|
Comment on: |
Jesse, regarding your post about the "dashboard".
Also, a quote function for comments would be very nice. // Also, I think that the amount of installed scripts is one of the most interesting facts, so why not make it a little more prominent?
|
|
Comment on: |
For some reason this script "unbolds" all the text on my google result pages. |
|
Comment on: |
Try this version:
function $x(p, context) {
if (!context) context = document;
var i, arr = [], xpr = document.evaluate(p, context, null, 6, null);
for (i=0; item=xpr.snapshotItem(i); i++) arr.push(item);
return arr;
}
var links = $x("//a[contains(@href, 'imdb.com/title/')]");
if (links.length) {
links.forEach(function(link,i) {
if (!link.hasChildNodes()) {
if (!GM_getValue(link.href)) {
GM_xmlhttpRequest({
method: "get",
url: link.href,
onload: rs(i)
});
}
}
});
}
function rs(i) {
return function(e) {
var title = e.responseText.split("<title>")[1].split("</title>")[0];
links[i].textContent = title;
GM_setValue(links[i].href, title);
}
}
This is just alpha, I haven't tried it yet. |
|
Comment on: |
I updated the script so image links won't be changed. |
|
Comment on: |
This is just a quick&dirty version to get it to work.
|
|
Comment on: |
This is really amazing, I wish I knew how to do that. I can't really read through hundreds of lines of code, but all I'd like to know is how you read the colors from the photo? Thanks! |
|
Comment on: |
Found a little bug on a widescreen 1680x1050: |
|
Comment on: |
Updated the script a little.
Also, http://*.imdb.com will be excluded.
|
|
Comment on: |
Awesome script, but support for editing post would be great, too. I really miss that. |
