<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussions on scripts by tkirby | Userscripts.org</title>
    <description>Recent posts on all scripts by tkirby at userscripts.org</description>
    <link>http://userscripts.org/users/51887/scripts</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>How do you hide [updater running] box, replied by sorryranga94</title>
      <description>&lt;p&gt;Is it possible to hide the green box on the lower right?&lt;/p&gt;

&lt;p&gt;I'm guessing you could do this somehow by editing the script, Anyone care to help?&lt;/p&gt;</description>
      <pubDate>Wed, 12 Aug 2009 13:16:11 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:32675:157243</guid>
      <author>sorryranga94</author>
      <link>http://userscripts.org/posts/157243</link>
    </item>
    <item>
      <title>Here's some improvements, replied by thisisanon</title>
      <description>&lt;p&gt;Here's some things for the end-user to change to add a bit of functionality to the script.&lt;/p&gt;

&lt;p&gt;This highlights new posts, with different colors according to what time they were posted.
&lt;br /&gt;Change &lt;code&gt;function random_color&lt;/code&gt; to this, and &lt;code&gt;const HIGHLIGHT_NEW_POSTS&lt;/code&gt; to true&lt;/p&gt;

&lt;p&gt;&lt;code&gt;function random_color() {
&lt;br /&gt;    d = new Date();
&lt;br /&gt;    h = d.getHours();
&lt;br /&gt;    m = d.getMinutes();
&lt;br /&gt;    s = d.getSeconds();
&lt;br /&gt;    if (h&amp;lt;10) { h = '0' + h ;}
&lt;br /&gt;    if (m&amp;lt;10) { m = '0' + m ;}
&lt;br /&gt;    if (s&amp;lt;10) { s = '0' + s ;}
&lt;br /&gt;    return '#' + h + m + s
&lt;br /&gt;}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This part changes the title of the page to the number of new replies, so you can see if there are new posts from another tab.
&lt;br /&gt;add
&lt;br /&gt;&lt;code&gt;var i = 0;&lt;/code&gt;
&lt;br /&gt;when it's setting all the other vars, and add
&lt;br /&gt;&lt;code&gt;i++;
&lt;br /&gt;document.title = i&lt;/code&gt;
&lt;br /&gt;under
&lt;br /&gt;&lt;code&gt;if (HIGHLIGHT_NEW_POSTS) {&lt;/code&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 31 Jul 2009 18:00:14 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:31893:152936</guid>
      <author>thisisanon</author>
      <link>http://userscripts.org/posts/152936</link>
    </item>
    <item>
      <title>Fork, replied by tkirby</title>
      <description>&lt;p&gt;Cool. Looks pretty good. I doubt I'll be updating the originals anymore so I'll add a pointer to yours in the description.&lt;/p&gt;</description>
      <pubDate>Tue, 17 Mar 2009 17:18:33 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:23271:103319</guid>
      <author>tkirby</author>
      <link>http://userscripts.org/posts/103319</link>
    </item>
    <item>
      <title>Fork, replied by aeosynth</title>
      <description>&lt;p&gt;I forked the script over here - &lt;a href=&quot;http://userscripts.org/scripts/show/44327&quot;&gt;http://userscripts.org/scripts/show/44327&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 16 Mar 2009 06:05:49 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:23271:102977</guid>
      <author>aeosynth</author>
      <link>http://userscripts.org/posts/102977</link>
    </item>
    <item>
      <title>Flip instead of squish, replied by aeosynth</title>
      <description>&lt;p&gt;This should work. I rewrote the code so we don't have to worry about scroll distance.
&lt;br /&gt;&lt;pre&gt;
tip.setAttribute('style', 'display: none; position:fixed; border:1px solid #AAA; background-color:#FFF');
&lt;/pre&gt;&lt;pre&gt;
        const TIP_X_OFFSET = 45, TIP_Y_OFFSET = 120, FLIPPER = 400;
        const tip = document.getElementById('bw-tooltip');
        const tip_height = tip.offsetHeight;
	const tip_width = tip.offsetWidth;
        const mouseY = event.clientY;
	const mouseX = event.clientX;
        const tip_abs_bottom = mouseY - TIP_Y_OFFSET + tip_height;
        const screen_height = document.body.clientHeight;
	const screen_width = document.body.clientWidth;

        tip.style.top = mouseY &amp;lt; TIP_Y_OFFSET || tip_height &gt; screen_height ? 0 :
        tip_abs_bottom &gt; screen_height ? screen_height - tip_height : mouseY - TIP_Y_OFFSET + 'px';

	tip.style.right = '';
	if(mouseX &gt; screen_width - FLIPPER){
		tip.style.left = '';
		tip.style.right = screen_width + TIP_X_OFFSET - mouseX + 'px';}
	else{
	        tip.style.left = mouseX + TIP_X_OFFSET + 'px';}
&lt;/pre&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 02 Mar 2009 02:15:44 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:21519:99389</guid>
      <author>aeosynth</author>
      <link>http://userscripts.org/posts/99389</link>
    </item>
    <item>
      <title>Flip instead of squish, replied by aeosynth</title>
      <description>&lt;p&gt;This is what I have so far. I think it's stable, but I'd have to try it for a while to be sure. The 200 is also kind of arbitrary.&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;
        const right = document.body.clientWidth - event.pageX;

	tip.style.right = '';
	if(right &amp;lt; 200)
		tip.style.right = right + TIP_X_OFFSET + 'px';
	else{
	        tip.style.left = event.pageX + TIP_X_OFFSET + 'px';}
&lt;/pre&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 01 Mar 2009 21:49:58 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:21519:99343</guid>
      <author>aeosynth</author>
      <link>http://userscripts.org/posts/99343</link>
    </item>
    <item>
      <title>broken?, replied by ouvb</title>
      <description>&lt;p&gt;Still broken...&lt;/p&gt;</description>
      <pubDate>Mon, 23 Feb 2009 15:44:42 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:21457:97980</guid>
      <author>ouvb</author>
      <link>http://userscripts.org/posts/97980</link>
    </item>
    <item>
      <title>broken?, replied by ouvb</title>
      <description>&lt;p&gt;Script is broken again, after the update today.&lt;/p&gt;</description>
      <pubDate>Mon, 23 Feb 2009 07:33:33 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:21457:97912</guid>
      <author>ouvb</author>
      <link>http://userscripts.org/posts/97912</link>
    </item>
    <item>
      <title>style.display vs style.visibility, replied by tkirby</title>
      <description>&lt;p&gt;Good idea. Fixed.&lt;/p&gt;</description>
      <pubDate>Mon, 23 Feb 2009 05:38:43 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:22112:97899</guid>
      <author>tkirby</author>
      <link>http://userscripts.org/posts/97899</link>
    </item>
    <item>
      <title>style.display vs style.visibility, replied by aeosynth</title>
      <description>&lt;p&gt;er, yeah, style.display = 'none', style.display = 'block'.&lt;/p&gt;</description>
      <pubDate>Sun, 22 Feb 2009 21:06:11 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:22112:97807</guid>
      <author>aeosynth</author>
      <link>http://userscripts.org/posts/97807</link>
    </item>
    <item>
      <title>style.display vs style.visibility, replied by tkirby</title>
      <description>&lt;p&gt;Do you mean display block/none?&lt;/p&gt;</description>
      <pubDate>Sun, 22 Feb 2009 06:16:19 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:22112:97685</guid>
      <author>tkirby</author>
      <link>http://userscripts.org/posts/97685</link>
    </item>
    <item>
      <title>Flip instead of squish, replied by aeosynth</title>
      <description>&lt;p&gt;I imagine you'd do something like &lt;code&gt;if ((eventX - document.body.clientWidth) &amp;lt; 100px) &amp;lt;flip&gt; &lt;/code&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 22 Feb 2009 02:14:18 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:21519:97658</guid>
      <author>aeosynth</author>
      <link>http://userscripts.org/posts/97658</link>
    </item>
    <item>
      <title>style.display vs style.visibility, replied by aeosynth</title>
      <description>&lt;p&gt;I switched to style.hidden because if /b/ackwash picked up a post with a large expanded image (I always expand images), I'd get extra blank space at the bottom of the screen. That's the difference between style.visibility and style.hidden - they both make things invisible, but the first collapses the object as well.&lt;/p&gt;</description>
      <pubDate>Sun, 22 Feb 2009 02:12:04 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:22112:97657</guid>
      <author>aeosynth</author>
      <link>http://userscripts.org/posts/97657</link>
    </item>
    <item>
      <title>Doesn't seem to work at all now, replied by tkirby</title>
      <description>&lt;p&gt;aren't there other scripts that do that? I'd rather just get 'Run Scripts' working again and let other scripts handle those kind of things.&lt;/p&gt;</description>
      <pubDate>Wed, 11 Feb 2009 17:27:18 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:21330:95594</guid>
      <author>tkirby</author>
      <link>http://userscripts.org/posts/95594</link>
    </item>
    <item>
      <title>Doesn't seem to work at all now, replied by drdeath</title>
      <description>&lt;p&gt;Would it be possible for you to add an option to automatically maximize the new images in the thread when the page is updated ?&lt;/p&gt;</description>
      <pubDate>Wed, 11 Feb 2009 16:26:43 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:21330:95582</guid>
      <author>drdeath</author>
      <link>http://userscripts.org/posts/95582</link>
    </item>
    <item>
      <title>Flip instead of squish, replied by tkirby</title>
      <description>&lt;p&gt;I'll take a look. It's been a long time since I screwed with that viewport code so I don't even really remember how it works.&lt;/p&gt;</description>
      <pubDate>Tue, 10 Feb 2009 21:36:52 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:21519:95371</guid>
      <author>tkirby</author>
      <link>http://userscripts.org/posts/95371</link>
    </item>
    <item>
      <title>Opera port, replied by tkirby</title>
      <description>&lt;p&gt;Cool. Wonder if there's anything worth backporting from it.&lt;/p&gt;</description>
      <pubDate>Tue, 10 Feb 2009 21:20:55 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:21566:95364</guid>
      <author>tkirby</author>
      <link>http://userscripts.org/posts/95364</link>
    </item>
    <item>
      <title>Quick mod for 4chanarchive, replied by tkirby</title>
      <description>&lt;p&gt;that line just removes the delete checkbox so it doesn't show in the tooltip. You can get by without it or put that line in a try/catch block so it will still do its thing on other boards.&lt;/p&gt;</description>
      <pubDate>Tue, 10 Feb 2009 21:19:04 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:18912:95363</guid>
      <author>tkirby</author>
      <link>http://userscripts.org/posts/95363</link>
    </item>
    <item>
      <title>Quick mod for 4chanarchive, replied by qwertgb1</title>
      <description>&lt;p&gt;Thanks VIPPER. I edited that line away and it didn't seem to break anything. Now Easymodo works. Perfect. Thanks for the script tkirby!&lt;/p&gt;</description>
      <pubDate>Tue, 10 Feb 2009 14:43:16 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:18912:95274</guid>
      <author>qwertgb1</author>
      <link>http://userscripts.org/posts/95274</link>
    </item>
    <item>
      <title>Opera port, replied by aeosynth</title>
      <description>&lt;p&gt;Hey brah, someone ported your script to Opera - &lt;a href=&quot;http://sector-5.net/archives/4chan-backwash-for-opera/&quot;&gt;http://sector-5.net/archives/4chan-backwash-for...&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 10 Feb 2009 08:12:57 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:21566:95220</guid>
      <author>aeosynth</author>
      <link>http://userscripts.org/posts/95220</link>
    </item>
    <item>
      <title>Quick mod for 4chanarchive, replied by VIPPER</title>
      <description>&lt;p&gt;Don't bother me about it&lt;/p&gt;

&lt;p&gt;The problem is in this line, don't ask me why
&lt;br /&gt;&lt;pre&gt;td.removeChild(td.getElementsByTagName('input')[0]);&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;I never noticed because I didn't update, I use my own version&lt;/p&gt;</description>
      <pubDate>Tue, 10 Feb 2009 05:14:29 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:18912:95192</guid>
      <author>VIPPER</author>
      <link>http://userscripts.org/posts/95192</link>
    </item>
    <item>
      <title>Flip instead of squish, replied by aeosynth</title>
      <description>&lt;p&gt;When I've got a quote at the right edge of the screen, instead of squishing it down into nothing, could you make it open to the left?&lt;/p&gt;</description>
      <pubDate>Mon, 09 Feb 2009 04:27:51 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:21519:94987</guid>
      <author>aeosynth</author>
      <link>http://userscripts.org/posts/94987</link>
    </item>
    <item>
      <title>Doesn't seem to work at all now, replied by tkirby</title>
      <description>&lt;p&gt;backwash won't work with 4shadow again until I fix the run scripts option&lt;/p&gt;</description>
      <pubDate>Mon, 09 Feb 2009 02:49:35 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:21330:94978</guid>
      <author>tkirby</author>
      <link>http://userscripts.org/posts/94978</link>
    </item>
    <item>
      <title>Quick mod for 4chanarchive, replied by aeosynth</title>
      <description>&lt;p&gt;yeah qwertgb, it never worked for me either. bug VIPPER to fix it. Better yet, bug the guy who runs easymodo to use suptg's archiver.&lt;/p&gt;</description>
      <pubDate>Sun, 08 Feb 2009 21:14:22 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:18912:94878</guid>
      <author>aeosynth</author>
      <link>http://userscripts.org/posts/94878</link>
    </item>
    <item>
      <title>Doesn't seem to work at all now, replied by drdeath</title>
      <description>&lt;p&gt;Yeah works with the 4chan extension now.&lt;/p&gt;

&lt;p&gt;But backwash script and loading images in the same thread are still an issue.&lt;/p&gt;</description>
      <pubDate>Sun, 08 Feb 2009 21:06:34 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:21330:94875</guid>
      <author>drdeath</author>
      <link>http://userscripts.org/posts/94875</link>
    </item>
  </channel>
</rss>
