<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on OpenBC UserImages MouseOver | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/6173</link>
    <description>Recent comments on userscript: OpenBC UserImages MouseOver</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Updated images ..., replied by guerda</title>
      <description>&lt;p&gt;These changes are perfect! It works very well.
&lt;br /&gt;The only thing I changed was the z-Index, because the Xing header has 10000 as z-index.&lt;/p&gt;

&lt;p&gt;I would appreciate if you insert these changes!&lt;/p&gt;

&lt;p&gt;Greetings, guerda&lt;/p&gt;</description>
      <pubDate>Mon, 06 Jul 2009 17:58:21 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:26404:143164</guid>
      <author>guerda</author>
      <link>http://userscripts.org/posts/143164</link>
    </item>
    <item>
      <title>zindex, replied by IzzySoft</title>
      <description>&lt;p&gt;I'd suggest to increase the zindex (line 53) by just adding another &quot;9&quot;, so the image top cannot be hidden by the new navbar...&lt;/p&gt;</description>
      <pubDate>Wed, 13 May 2009 18:17:21 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:26786:121026</guid>
      <author>IzzySoft</author>
      <link>http://userscripts.org/posts/121026</link>
    </item>
    <item>
      <title>More img urls, replied by IzzySoft</title>
      <description>&lt;p&gt;I just noticed that a lot of imgs do not work. Here is an example:&lt;/p&gt;

&lt;p&gt;small: &lt;a href=&quot;https://www.xing.com/img/users/1/e/4/fb0105000.5861303_s2,4.jpg&quot;&gt;https://www.xing.com/img/users/1/e/4/fb0105000....&lt;/a&gt;
&lt;br /&gt;big: &lt;a href=&quot;https://www.xing.com/img/users/1/e/4/fb0105000.5861303,4.jpg&quot;&gt;https://www.xing.com/img/users/1/e/4/fb0105000....&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;as you can see, there is an additional &quot;,\d&quot; introduced. To make the script finding those, too:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;var s = imgName.search(/\/img\/users\/.+\_s(1|2|3)?(\,\d|)\.(jpg|gif|png)$/);&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;and:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;newImg.src=this.src.replace(/\_s(1|2|3)?/, &quot;&quot;);&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;With these two changes, it seems to work fine here. Though you might want to improve the second change to be more precise (including the possible &quot;,\d&quot; addition as a back-reference - I'm not that good in it). Just to be on the safe side ;)&lt;/p&gt;</description>
      <pubDate>Sat, 09 May 2009 23:14:36 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:26523:119721</guid>
      <author>IzzySoft</author>
      <link>http://userscripts.org/posts/119721</link>
    </item>
    <item>
      <title>Updated images ..., replied by Deniz Burucu</title>
      <description>&lt;p&gt;Because it exists more variants of the ImageURLs like:
&lt;br /&gt;xxxxxxxxxxxxxxxxx_s2,11.jpg&lt;/p&gt;

&lt;p&gt;// ==UserScript==
&lt;br /&gt;// @name          OpenBC UserImages MouseOver
&lt;br /&gt;// @namespace     
&lt;br /&gt;// @description	  Shows big images when hovering over userImages in OpenBC/Xing.
&lt;br /&gt;// @include       *xing.com/*
&lt;br /&gt;// ==/UserScript==
&lt;br /&gt;// OpenBCUserImages.user.js&lt;/p&gt;

&lt;p&gt;/*
&lt;br /&gt;This is a Greasemonkey user script.&lt;/p&gt;

&lt;p&gt;To install, you need Greasemonkey: &lt;a href=&quot;http://greasemonkey.mozdev.org/&quot;&gt;http://greasemonkey.mozdev.org/&lt;/a&gt;
&lt;br /&gt;Then restart Firefox and revisit this script.
&lt;br /&gt;Under Tools, there will be a new menu item to &quot;Install User Script&quot;.
&lt;br /&gt;Accept the default configuration and install.&lt;/p&gt;

&lt;p&gt;To uninstall, go to Tools/Manage User Scripts,
&lt;br /&gt;select &quot;OpenBCImageSize&quot;, and click Uninstall.
&lt;br /&gt;*/&lt;/p&gt;

&lt;p&gt;(function() {
&lt;br /&gt;	function cumulativeOffset(element) {
&lt;br /&gt;		var valueT = 0, valueL = 0;
&lt;br /&gt;		do {
&lt;br /&gt;			valueT += element.offsetTop || 0;
&lt;br /&gt;			valueL += element.offsetLeft || 0;
&lt;br /&gt;			element = element.offsetParent;
&lt;br /&gt;		} while (element);
&lt;br /&gt;		return [valueL, valueT];
&lt;br /&gt;	}&lt;/p&gt;

&lt;p&gt;   window.addEventListener(&quot;load&quot;, function(e) {
&lt;br /&gt;    	var imgList = document.getElementsByTagName(&quot;img&quot;);
&lt;br /&gt;	for( i=0; i &amp;lt; imgList.length; i++) {
&lt;br /&gt;		var imgName = imgList[i].src;
&lt;br /&gt;		var s = imgName.search(/\/img\/users\/.+\_s(1|2|3)?(,(.)*)?\.(jpg|gif|png)$/);
&lt;br /&gt;		if( s != -1) {
&lt;br /&gt;			bigimage=imgName.replace(/\_s(1|2|3)?(,(.)*)?\./, &quot;.&quot;);
&lt;br /&gt;			newImg = document.createElement(&quot;img&quot;);&lt;/p&gt;

&lt;p&gt;			ow=imgList[i].width;
&lt;br /&gt;			imgList[i].addEventListener(&quot;mouseover&quot;,
&lt;br /&gt;				function(e){
&lt;br /&gt;					newX=cumulativeOffset(this)[0]
&lt;br /&gt;					newY=cumulativeOffset(this)[1]
&lt;br /&gt;					newImg.src=this.src.replace(/\_s(1|2|3)?(,(.)*)?\./, &quot;.&quot;);
&lt;br /&gt;					//newImg.style.width=&quot;140px&quot;;
&lt;br /&gt;					//newImg.style.height = &quot;185px&quot;;
&lt;br /&gt;					newImg.style.position=&quot;absolute&quot;;
&lt;br /&gt;					newImg.style.border='1px solid #000';
&lt;br /&gt;					newImg.style.zIndex='999';
&lt;br /&gt;					newImg.style.top=(newY-185/2).toString() + 'px';
&lt;br /&gt;					newImg.style.left=(newX+ow).toString() + 'px';
&lt;br /&gt;					document.body.appendChild(newImg);
&lt;br /&gt;				},false);
&lt;br /&gt;			imgList[i].addEventListener(&quot;mouseout&quot;,
&lt;br /&gt;				function(e){
&lt;br /&gt;					document.body.removeChild(newImg);
&lt;br /&gt;				},false);&lt;/p&gt;

&lt;p&gt;		}
&lt;br /&gt;	}
&lt;br /&gt;	return;
&lt;br /&gt;  }, false);
&lt;br /&gt;})();&lt;/p&gt;</description>
      <pubDate>Fri, 08 May 2009 07:37:58 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:26404:119067</guid>
      <author>Deniz Burucu</author>
      <link>http://userscripts.org/posts/119067</link>
    </item>
    <item>
      <title>Archived Comments, replied by bdrain</title>
      <description>&lt;p&gt;thanks. that works fine, ingooooooo!&lt;/p&gt;</description>
      <pubDate>Sun, 20 Apr 2008 16:17:33 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14856:60591</guid>
      <author>bdrain</author>
      <link>http://userscripts.org/posts/60591</link>
    </item>
    <item>
      <title>Archived Comments, replied by ingooooooo</title>
      <description>&lt;p&gt;To make it work with the new image urls, replace line 37:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;
var s = imgName.search(/\/img\/users\/.+\_s(1|2|3)?\.(jpg|gif|png)$/);
&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;by &lt;/p&gt;

&lt;p&gt;&lt;pre&gt;
var s = imgName.search(/\/img\/users\/.+\_s(1|2|3)?(,(\d+))?\.(jpg|gif|png)$/);
&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;and line 47:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;				newImg.src=this.src.replace(/\_s(1|2|3)?\./, &quot;.&quot;);&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;by&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;				newImg.src=this.src.replace(/\_s(1|2|3)?/, &quot;&quot;);
&lt;/pre&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 08 Apr 2008 12:33:32 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14856:60592</guid>
      <author>ingooooooo</author>
      <link>http://userscripts.org/posts/60592</link>
    </item>
    <item>
      <title>Archived Comments, replied by bdrain</title>
      <description>&lt;p&gt;xing changed some user image links. unfortunately these links dont work with this script...&lt;/p&gt;</description>
      <pubDate>Sun, 06 Apr 2008 22:39:58 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14856:60593</guid>
      <author>bdrain</author>
      <link>http://userscripts.org/posts/60593</link>
    </item>
    <item>
      <title>Archived Comments, replied by louis</title>
      <description>&lt;p&gt;Updated the script with Nobbys suggestions.&lt;/p&gt;</description>
      <pubDate>Wed, 06 Jun 2007 21:30:11 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14856:60594</guid>
      <author>louis</author>
      <link>http://userscripts.org/posts/60594</link>
    </item>
    <item>
      <title>Archived Comments, replied by Nobby</title>
      <description>&lt;p&gt;If you want to make the script work with every type of thumb on XING, replace &quot;s2?&quot; with &quot;s(1|2|3)?&quot; everywhere in the script. Perhaps Louis can update his script here.&lt;/p&gt;

&lt;p&gt;Regards, Norbert&lt;/p&gt;</description>
      <pubDate>Sun, 18 Feb 2007 09:51:56 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14856:60595</guid>
      <author>Nobby</author>
      <link>http://userscripts.org/posts/60595</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jesse Andrews</title>
      <description>&lt;p&gt;The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)&lt;/p&gt;</description>
      <pubDate>Wed, 17 Nov 2004 01:05:24 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:14856:60590</guid>
      <author>Jesse Andrews</author>
      <link>http://userscripts.org/posts/60590</link>
    </item>
  </channel>
</rss>
