<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on Script Updater | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/8877</link>
    <description>Recent comments on userscript: Script Updater</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Broken, replied by Eyal Soha</title>
      <description>&lt;p&gt;I incorporated all the bugfixes and more into this new script:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://userscripts.org/scripts/show/36259&quot;&gt;http://userscripts.org/scripts/show/36259&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 17 Apr 2009 22:38:00 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:18743:111883</guid>
      <author>Eyal Soha</author>
      <link>http://userscripts.org/posts/111883</link>
    </item>
    <item>
      <title>Broken, replied by sizzlemctwizzle</title>
      <description>&lt;p&gt;Use this script now: &lt;a href=&quot;http://userscripts.org/scripts/show/26062&quot;&gt;http://userscripts.org/scripts/show/26062&lt;/a&gt;
&lt;br /&gt;It can now import scripts as well.&lt;/p&gt;</description>
      <pubDate>Thu, 22 Jan 2009 01:23:03 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:18743:91271</guid>
      <author>sizzlemctwizzle</author>
      <link>http://userscripts.org/posts/91271</link>
    </item>
    <item>
      <title>Broken, replied by Chris4</title>
      <description>&lt;p&gt;Hmm. I can't even get it to do anything. Maybe I have no updates? The tab doesn't open like it says it should.&lt;/p&gt;

&lt;p&gt;I've also tried the patched version: &lt;a href=&quot;http://userscripts.org/topics/14721?page=3#posts-59786&quot;&gt;http://userscripts.org/topics/14721?page=3#post...&lt;/a&gt; but that does the same.&lt;/p&gt;</description>
      <pubDate>Tue, 09 Dec 2008 11:53:37 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:18743:82223</guid>
      <author>Chris4</author>
      <link>http://userscripts.org/posts/82223</link>
    </item>
    <item>
      <title>Broken, replied by JoeSimmons</title>
      <description>&lt;p&gt;&lt;pre&gt;Error: invalid range in character class
Line: 0&lt;/pre&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 09 Dec 2008 06:58:19 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:18743:82169</guid>
      <author>JoeSimmons</author>
      <link>http://userscripts.org/posts/82169</link>
    </item>
    <item>
      <title>Archived Comments, replied by sanriver12</title>
      <description>&lt;p&gt;does this script work??? never seen any changes/action&lt;/p&gt;</description>
      <pubDate>Thu, 11 Sep 2008 14:46:58 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14721:59785</guid>
      <author>sanriver12</author>
      <link>http://userscripts.org/posts/59785</link>
    </item>
    <item>
      <title>Archived Comments, replied by Eyal Soha</title>
      <description>&lt;p&gt;Okay, I've got all the patches together in one bundle now.  alien_scum needs to update his script!&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;
--- scriptupdater.user.js.orig	2008-07-29 13:32:41.000000000 +0300
+++ scriptupdater.user.js	2008-07-29 13:32:47.000000000 +0300
@@ -29,12 +29,12 @@
 
 
 
-function xhr(uri,f,a,b,c) {GM_xmlhttpRequest({method: 'get',headers: {'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey'},url: uri,onload:function(res){f(res.responseText,a,b,c)}});}
+function xhr(uri,f,a,b,c,d) {GM_xmlhttpRequest({method: 'get',headers: {'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey'},url: uri,onload:function(res){f(res.responseText,a,b,c,d)}});}
 
 function iframe(src,show) {var f=document.createElement('iframe');f.style.display=show?'inline':'none';f.src=src;return f;}
 
 function hash(s){
-  s=s.replace(/&amp;amp;/g,'&amp;amp;').replace(/&amp;amp;\w*;/g,'').replace(/[^\w(){}=.-+]/g,'');
+  s=s.replace(/&amp;amp;/g,'&amp;amp;').replace(/&amp;amp;\w*;/g,'').replace(/[^-\w(){}=.+]/g,'');
   var h=0;
   for (i=0;i&amp;lt;s&gt;&amp;lt;&amp;lt;3&gt;&gt;29)^s.charCodeAt(i);
   return h 
@@ -121,6 +121,7 @@
         cnt++;
         tr.appendChild(cE('td',name=n.getAttribute('name')));
         tr.appendChild(cE('td',filename=n.getAttribute('filename')));
+        basedir=n.getAttribute('basedir');
         if(n.getAttribute('enabled')=='false'){
           tr.style.background='#EEEEEE';
           tr.appendChild(cE('td','disabled')); 
@@ -148,7 +149,7 @@
             cnt--;
           });
         },tr.appendChild(cE('td')),name,n.getAttribute('namespace'));
-        tr.appendChild(cE('td')).appendChild(iframe(profile+'gm_scripts/'+filename)).parentNode.style.display='none';
+        tr.appendChild(cE('td')).appendChild(iframe(profile+'gm_scripts/'+basedir+'/'+filename)).parentNode.style.display='none';
       }
       mes.innerHTML='looking on us.o for updates...';
       window.setTimeout(function (){//waits for iframe to load
@@ -181,16 +182,15 @@
   if(!/#scriptupdater/.test(location.href) &amp;amp;&amp;amp; checkable()) {
     scripts=getValue('scripts');
     for(s in scripts){
-      xhr(ckref(scripts[s].num),function(res,s){
-        script=scripts[s];
-        if (hash(res)!=script.hash) {
+      xhr(ckref(scripts[s].num),function(res,s,script_name,script_hash,script_num){
+        if (hash(res)!=script_hash) {
          scpts=getValue('scripts');
          scpts[s].hash=hash(res);
          setValue('scripts',scpts);
-         if(confirm('Update found for: \n'+script.name+'\n'+res.match(/@description\s*(.*)/)[1])) 
-           GM_openInTab(upref(script.num))
+         if(confirm('Update found for: \n'+script_name+'\n'+res.match(/@description\s*(.*)/)[1])) 
+           GM_openInTab(upref(script_num))
         }
-      },s);
+      },s,scripts[s].name,scripts[s].hash,scripts[s].num);
     }
   }
 }
&lt;/pre&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 29 Jul 2008 10:36:16 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14721:59786</guid>
      <author>Eyal Soha</author>
      <link>http://userscripts.org/posts/59786</link>
    </item>
    <item>
      <title>Archived Comments, replied by Eyal Soha</title>
      <description>&lt;p&gt;I fixed it.  The problem was the regexp on line 37.  Use this:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
&lt;br /&gt;  s=s.replace(/&amp;amp;/g,'&amp;amp;').replace(/&amp;amp;\w*;/g,'').replace(/[^-\w(){}=.+]/g,'');
&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;A minus character that doesn't represent a range must be the first character in a character class except for a caret.  Let me know if it works for you....&lt;/p&gt;

&lt;p&gt;And then I found another bug.  Working on it...&lt;/p&gt;</description>
      <pubDate>Tue, 29 Jul 2008 07:13:57 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14721:59787</guid>
      <author>Eyal Soha</author>
      <link>http://userscripts.org/posts/59787</link>
    </item>
    <item>
      <title>Archived Comments, replied by Martin Stone</title>
      <description>&lt;p&gt;Hi. I've tried the Line 89 and Line 128 fixes and added the patch from Eyal Soha just in case, but I get this error (before, between and after the changes):&lt;/p&gt;

&lt;p&gt;Error: invalid range in character class&lt;/p&gt;

&lt;p&gt;No line number, which doesn't help. Has anyone beaten this bug?&lt;/p&gt;

&lt;p&gt;P.S. Should probably add: This error appears with no action in the browser - no new tab, and no change to about:cache#scriptupdater when accessed directly.&lt;/p&gt;</description>
      <pubDate>Sun, 27 Jul 2008 21:12:22 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14721:59788</guid>
      <author>Martin Stone</author>
      <link>http://userscripts.org/posts/59788</link>
    </item>
    <item>
      <title>Archived Comments, replied by lazyttrick</title>
      <description>&lt;p&gt;I have a simple script updater, check my scripts.&lt;/p&gt;</description>
      <pubDate>Thu, 12 Jun 2008 13:05:15 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14721:59789</guid>
      <author>lazyttrick</author>
      <link>http://userscripts.org/posts/59789</link>
    </item>
    <item>
      <title>Archived Comments, replied by Eyal Soha</title>
      <description>&lt;p&gt;I think that I fixed the bug that Ronen and I have seen.  Looks like a race condition.  Basically, the script is looking up multiple scripts for updates simultaneously and it gets confused because it is trying to access a variable that is global to the function.  I read on a forum somewhere that the solution is to pass variables in to the function.  Those are always copied, where as accessing a shared global isn't.  Doesn't seem like it should help but it does.  Anyway, the diff is below.  Patch it in by hand or automatically and it should fix the bug.  Worked for me in the few tests that I did.  I hope that the author can incorporate this.  Let me know if this works for you.&lt;/p&gt;

&lt;p&gt;Eyal&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;
--- C:\Documents and Settings\eyals\Desktop\scriptupdater_old.js	Mon Jun 02 16:56:57 2008
+++ C:\Documents and Settings\eyals\Desktop\scriptupdater_new.user.js	Mon Jun 02 16:58:04 2008
@@ -29,7 +29,7 @@
 
 
 
-function xhr(uri,f,a,b,c) {GM_xmlhttpRequest({method: 'get',headers: {'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey'},url: uri,onload:function(res){f(res.responseText,a,b,c)}});}
+function xhr(uri,f,a,b,c,d) {GM_xmlhttpRequest({method: 'get',headers: {'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey'},url: uri,onload:function(res){f(res.responseText,a,b,c,d)}});}
 
 function iframe(src,show) {var f=document.createElement('iframe');f.style.display=show?'inline':'none';f.src=src;return f;}
 
@@ -181,16 +181,15 @@
   if(!/#scriptupdater/.test(location.href) &amp;amp;&amp;amp; checkable()) {
     scripts=getValue('scripts');
     for(s in scripts){
-      xhr(ckref(scripts[s].num),function(res,s){
-        script=scripts[s];
-        if (hash(res)!=script.hash) {
+      xhr(ckref(scripts[s].num),function(res,s,script_name,script_hash,script_num){
+        if (hash(res)!=script_hash) {
          scpts=getValue('scripts');
          scpts[s].hash=hash(res);
          setValue('scripts',scpts);
-         if(confirm('Update found for: \n'+script.name+'\n'+res.match(/@description\s*(.*)/)[1])) 
-           GM_openInTab(upref(script.num))
+         if(confirm('Update found for: \n'+script_name+'\n'+res.match(/@description\s*(.*)/)[1])) 
+           GM_openInTab(upref(script_num))
         }
-      },s);
+      },s,scripts[s].name,scripts[s].hash,scripts[s].num);
     }
   }
 }
&lt;/pre&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 02 Jun 2008 14:04:09 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14721:59790</guid>
      <author>Eyal Soha</author>
      <link>http://userscripts.org/posts/59790</link>
    </item>
    <item>
      <title>Archived Comments, replied by Eyal Soha</title>
      <description>&lt;p&gt;Ronen, same here.  The script claimed one script was old and then tried to update the other.  When I used about:config#scriptupdater , it said that everything was up-to-date.  Weird.&lt;/p&gt;</description>
      <pubDate>Wed, 21 May 2008 19:27:33 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14721:59791</guid>
      <author>Eyal Soha</author>
      <link>http://userscripts.org/posts/59791</link>
    </item>
    <item>
      <title>Archived Comments, replied by Volkan</title>
      <description>&lt;p&gt;This script doesn't work at all.&lt;/p&gt;</description>
      <pubDate>Wed, 16 Apr 2008 16:51:34 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14721:59792</guid>
      <author>Volkan</author>
      <link>http://userscripts.org/posts/59792</link>
    </item>
    <item>
      <title>Archived Comments, replied by Black Cat</title>
      <description>&lt;p&gt;hi&lt;/p&gt;

&lt;p&gt;I replaced the line 128:
&lt;br /&gt;        } else xhr('http://userscripts.org/scripts/search?q='+name,function(res,p,s,ns){&lt;/p&gt;

&lt;p&gt;with&lt;/p&gt;

&lt;p&gt;} else xhr('http://userscripts.org/scripts/search?q='+name.replace(/[^a-zA-Z0-9]+| {2,}/g,&quot; &quot;),function(res,p,s,ns){&lt;/p&gt;

&lt;p&gt;because it didn't find any of my scripts ;)&lt;/p&gt;</description>
      <pubDate>Wed, 16 Jan 2008 20:44:02 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14721:59793</guid>
      <author>Black Cat</author>
      <link>http://userscripts.org/posts/59793</link>
    </item>
    <item>
      <title>Archived Comments, replied by Noone^^</title>
      <description>&lt;p&gt;cool thing. ;)&lt;/p&gt;</description>
      <pubDate>Mon, 14 Jan 2008 23:42:39 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14721:59794</guid>
      <author>Noone^^</author>
      <link>http://userscripts.org/posts/59794</link>
    </item>
    <item>
      <title>Archived Comments, replied by Ronnen</title>
      <description>&lt;p&gt;Its a great script with some problem. 
&lt;br /&gt;recently, there was an update to the script: &quot;inYOf4ceBook&quot;. 
&lt;br /&gt;The Updater found that there is a script to update, but it updated the script: &quot;Multi-Column view of Google Search Results&quot;  instead. 
&lt;br /&gt;meaning, the script update a wrong script.&lt;/p&gt;</description>
      <pubDate>Thu, 10 Jan 2008 15:10:52 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14721:59795</guid>
      <author>Ronnen</author>
      <link>http://userscripts.org/posts/59795</link>
    </item>
    <item>
      <title>Archived Comments, replied by ladiko</title>
      <description>&lt;p&gt;grrrr i'm an idiot...&lt;/p&gt;

&lt;p&gt;so again:
&lt;br /&gt;message box will be shown with:
&lt;br /&gt;##########################
&lt;br /&gt;function getValue(query) {
&lt;br /&gt;alert(&quot;hallo&quot;);
&lt;br /&gt;return eval(GM_getValue('cache','({})'))[query];
&lt;br /&gt;}
&lt;br /&gt;##########################
&lt;br /&gt;msgbox will not be shown with:
&lt;br /&gt;##########################
&lt;br /&gt;function getValue(query) {
&lt;br /&gt;return eval(GM_getValue('cache','({})'))[query];
&lt;br /&gt;alert(&quot;hallo&quot;);
&lt;br /&gt;}
&lt;br /&gt;##########################
&lt;br /&gt;so it seems like this function fails&lt;/p&gt;</description>
      <pubDate>Wed, 10 Oct 2007 16:53:59 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14721:59796</guid>
      <author>ladiko</author>
      <link>http://userscripts.org/posts/59796</link>
    </item>
    <item>
      <title>Archived Comments, replied by ladiko</title>
      <description>&lt;p&gt;aahh vise-versa. the first give no msgbox, but the second =D&lt;/p&gt;</description>
      <pubDate>Wed, 10 Oct 2007 16:49:21 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14721:59797</guid>
      <author>ladiko</author>
      <link>http://userscripts.org/posts/59797</link>
    </item>
    <item>
      <title>Archived Comments, replied by ladiko</title>
      <description>&lt;p&gt;this doesnt help me, but i found out, that&lt;/p&gt;

&lt;p&gt;function getValue(query) {
&lt;br /&gt;  alert(&quot;hallo&quot;);
&lt;br /&gt;  return eval(GM_getValue('cache','({})'))[query];
&lt;br /&gt;}
&lt;br /&gt;makes an message box, but
&lt;br /&gt;function getValue(query) {
&lt;br /&gt;  alert(&quot;hallo&quot;);
&lt;br /&gt;  return eval(GM_getValue('cache','({})'))[query];
&lt;br /&gt;}
&lt;br /&gt;does not. so maybe there is a problem?!?&lt;/p&gt;</description>
      <pubDate>Wed, 10 Oct 2007 16:48:42 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14721:59798</guid>
      <author>ladiko</author>
      <link>http://userscripts.org/posts/59798</link>
    </item>
    <item>
      <title>Archived Comments, replied by ChronoStriker1</title>
      <description>&lt;p&gt;After fixing line 89 the script works as its supposed to for me.&lt;/p&gt;</description>
      <pubDate>Tue, 02 Oct 2007 18:09:21 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14721:59799</guid>
      <author>ChronoStriker1</author>
      <link>http://userscripts.org/posts/59799</link>
    </item>
    <item>
      <title>Archived Comments, replied by Thufir</title>
      <description>&lt;p&gt;hi&lt;/p&gt;

&lt;p&gt;i found a typo in line 89 of the latest version of your script (&quot;profe&quot; instead of &quot;profile&quot;) this causes the problem reported by &quot;Nyks&quot;.&lt;/p&gt;</description>
      <pubDate>Mon, 10 Sep 2007 17:41:20 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14721:59800</guid>
      <author>Thufir</author>
      <link>http://userscripts.org/posts/59800</link>
    </item>
    <item>
      <title>Archived Comments, replied by ChronoStriker1</title>
      <description>&lt;p&gt;Scratch that it keeps trying to install new versions of a script I already removed.&lt;/p&gt;</description>
      <pubDate>Thu, 23 Aug 2007 12:20:53 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14721:59801</guid>
      <author>ChronoStriker1</author>
      <link>http://userscripts.org/posts/59801</link>
    </item>
    <item>
      <title>Archived Comments, replied by ChronoStriker1</title>
      <description>&lt;p&gt;I copied my profile to a xp machine to see it worked.  about:cache#scriptupdater did what it was supposed to, there were updates to some of my scripts but it didn't automatically update them.  I copied the profile back to my vista x86 machine and about:cache#scriptupdater still didn't work but it did automatically update a script, so at least I know its partially working.&lt;/p&gt;</description>
      <pubDate>Fri, 17 Aug 2007 13:22:01 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14721:59802</guid>
      <author>ChronoStriker1</author>
      <link>http://userscripts.org/posts/59802</link>
    </item>
    <item>
      <title>Archived Comments, replied by Nyks</title>
      <description>&lt;p&gt;Hello!&lt;/p&gt;

&lt;p&gt;I installed the script (german XP with FF), and I get no errormessages.
&lt;br /&gt;But, the script doesnt seem to do anything. &lt;/p&gt;

&lt;p&gt;When I call &quot;about:cache#scriptupdater&quot;, I get a page with &quot;Memory cache device ... List Cache Entries ... Disk cache device ... List Cache Entries&quot;.&lt;/p&gt;

&lt;p&gt;But I doesnt figure out, how to let the script autoupdate my scripts?!?!&lt;/p&gt;</description>
      <pubDate>Tue, 07 Aug 2007 12:07:25 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14721:59803</guid>
      <author>Nyks</author>
      <link>http://userscripts.org/posts/59803</link>
    </item>
    <item>
      <title>Archived Comments, replied by ChronoStriker1</title>
      <description>&lt;p&gt;I seem to have the same problem as ladiko in both vista 32 and 64&lt;/p&gt;</description>
      <pubDate>Sun, 05 Aug 2007 04:45:41 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14721:59804</guid>
      <author>ChronoStriker1</author>
      <link>http://userscripts.org/posts/59804</link>
    </item>
    <item>
      <title>Archived Comments, replied by Gasoline-</title>
      <description>&lt;p&gt;any idea why it doesn't find Pagerization as a valid script on userscripts.org despite the fact that it is?  other than that, script updater has been working great for me.  what parameters does it use to determine if a script exists on this site?  i know the problem might have something to do with the manner in which the other script is posted.  i hope there's an easy solution.&lt;/p&gt;</description>
      <pubDate>Wed, 01 Aug 2007 00:45:33 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14721:59805</guid>
      <author>Gasoline-</author>
      <link>http://userscripts.org/posts/59805</link>
    </item>
  </channel>
</rss>
