<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussions on scripts by Ahal89 | Userscripts.org</title>
    <description>Recent posts on all scripts by Ahal89 at userscripts.org</description>
    <link>http://userscripts.org/users/54969/scripts</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>to be able to change link targets, replied by Ahal89</title>
      <description>&lt;p&gt;Just as a note, many improvements have been added to this script since that post (including the changes in the second script).&lt;/p&gt;</description>
      <pubDate>Tue, 16 Jun 2009 01:49:50 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:23140:133777</guid>
      <author>Ahal89</author>
      <link>http://userscripts.org/posts/133777</link>
    </item>
    <item>
      <title>dynamic relinking, replied by Ahal89</title>
      <description>&lt;p&gt;So, you want to just load the next link in the page when this button is clicked?&lt;/p&gt;</description>
      <pubDate>Sat, 06 Jun 2009 18:24:09 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:27449:129587</guid>
      <author>Ahal89</author>
      <link>http://userscripts.org/posts/129587</link>
    </item>
    <item>
      <title>dynamic relinking, replied by Issy</title>
      <description>&lt;p&gt;is there a way to get your script to take the current url (Https://&lt;a href=&quot;http://www.current&quot;&gt;www.current&lt;/a&gt; website.com/item.php?item=[current number])&lt;/p&gt;

&lt;p&gt;and to add a link or button that sits in a upper corner that will once clicked load the next item/url as in 
&lt;br /&gt;(Https://&lt;a href=&quot;http://www.current&quot;&gt;www.current&lt;/a&gt; website.com/item.php?item=[current number + 1])&lt;/p&gt;

&lt;p&gt;thank you for taking the time to read this even if there is no way&lt;/p&gt;</description>
      <pubDate>Sat, 23 May 2009 07:50:04 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:27449:124800</guid>
      <author>Issy</author>
      <link>http://userscripts.org/posts/124800</link>
    </item>
    <item>
      <title>to be able to change link targets, replied by ramaDan</title>
      <description>&lt;p&gt;i have changed your script to be able to do some more stuff&lt;/p&gt;

&lt;p&gt;here it is my version : &lt;a href=&quot;http://userscripts.org/scripts/show/44157&quot;&gt;http://userscripts.org/scripts/show/44157&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;i needed to change this cause i didnt have access for a certain host and i had a mirror which i could replace the links to.&lt;/p&gt;

&lt;p&gt;in my case host is not a public one so better i post here this facebook example.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.facebook.com/detail.php?id=123456&quot;&gt;www.facebook.com/detail.php?id=123456&lt;/a&gt;
&lt;br /&gt;(this is the person's actual address)
&lt;br /&gt;&lt;a href=&quot;http://www.facebook.com/addfriend.php?id=123456&quot;&gt;www.facebook.com/addfriend.php?id=123456&lt;/a&gt;
&lt;br /&gt;(this is the link that can direct add friend on page)&lt;/p&gt;

&lt;p&gt;hopefully you better integrate the change to your script so not needed many versions and there would be someone handle things better i think.&lt;/p&gt;</description>
      <pubDate>Fri, 13 Mar 2009 16:32:15 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:23140:102402</guid>
      <author>ramaDan</author>
      <link>http://userscripts.org/posts/102402</link>
    </item>
    <item>
      <title>Archived Comments, replied by Ahal89</title>
      <description>&lt;p&gt;I don't have those characters on my keyboard so I wouldn't be able to begin testing.  Try finding the link you want in the source, and then match the inner html.&lt;/p&gt;</description>
      <pubDate>Thu, 04 Sep 2008 04:50:55 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16816:72351</guid>
      <author>Ahal89</author>
      <link>http://userscripts.org/posts/72351</link>
    </item>
    <item>
      <title>Archived Comments, replied by SteveJ</title>
      <description>&lt;p&gt;I cant get it to work on foreign language sites like pixiv.net?&lt;/p&gt;</description>
      <pubDate>Sun, 31 Aug 2008 20:00:33 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16816:72352</guid>
      <author>SteveJ</author>
      <link>http://userscripts.org/posts/72352</link>
    </item>
    <item>
      <title>Archived Comments, replied by crazian</title>
      <description>&lt;p&gt;wow, thanks, i'm at work now, but i can't wait to say thanks to you, i'll try it when after work.&lt;/p&gt;</description>
      <pubDate>Sat, 23 Aug 2008 04:15:29 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16816:72353</guid>
      <author>crazian</author>
      <link>http://userscripts.org/posts/72353</link>
    </item>
    <item>
      <title>Archived Comments, replied by Ahal89</title>
      <description>&lt;p&gt;There you go crazian...in case you aren't familiar with regular expressions, something like this should accomplish what you want:&lt;/p&gt;

&lt;p&gt;modifyLink (&quot;Add .* as a Friend&quot;, &quot;Desired Link Text&quot;, &quot;Desired Link Path&quot;, 1);&lt;/p&gt;

&lt;p&gt;If anyone is confused or has any questions, just let me know.
&lt;br /&gt;Cheers&lt;/p&gt;</description>
      <pubDate>Thu, 21 Aug 2008 23:39:16 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16816:72354</guid>
      <author>Ahal89</author>
      <link>http://userscripts.org/posts/72354</link>
    </item>
    <item>
      <title>Archived Comments, replied by crazian</title>
      <description>&lt;p&gt;sweeeeeeet, when will that happen?&lt;/p&gt;</description>
      <pubDate>Wed, 20 Aug 2008 11:33:16 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16816:72355</guid>
      <author>crazian</author>
      <link>http://userscripts.org/posts/72355</link>
    </item>
    <item>
      <title>Archived Comments, replied by Ahal89</title>
      <description>&lt;p&gt;So if I understand you right, you want to be able to change a certain link which may have a different name depending on who's profile your on?  eg. Add [insert name] as a Friend.&lt;/p&gt;

&lt;p&gt;In this version here that is not possible, however it isn't hard to implement.  I'll be implementing regular expressions soon, so you'll be able to do tons of stuff with the name matching.&lt;/p&gt;</description>
      <pubDate>Tue, 19 Aug 2008 12:53:07 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16816:72356</guid>
      <author>Ahal89</author>
      <link>http://userscripts.org/posts/72356</link>
    </item>
    <item>
      <title>Archived Comments, replied by crazian</title>
      <description>&lt;p&gt;i wanna ask if you can make the &quot;Actual Link Text&quot; in var
&lt;br /&gt;for example,
&lt;br /&gt;this is something i wanna do, 
&lt;br /&gt;Alan (Actual Link Text, which is Random)
&lt;br /&gt;&lt;a href=&quot;http://www.facebook.com/detail.php?id=123456&quot;&gt;www.facebook.com/detail.php?id=123456&lt;/a&gt; (this is the person's actual address)
&lt;br /&gt;&lt;a href=&quot;http://www.facebook.com/addfriend.php?id=123456&quot;&gt;www.facebook.com/addfriend.php?id=123456&lt;/a&gt; (this is the link that can direct add friend on page)&lt;/p&gt;

&lt;p&gt;what shall i do with your script to make it work?&lt;/p&gt;</description>
      <pubDate>Tue, 19 Aug 2008 06:56:44 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16816:72357</guid>
      <author>crazian</author>
      <link>http://userscripts.org/posts/72357</link>
    </item>
    <item>
      <title>Archived Comments, replied by JoeSimmons</title>
      <description>&lt;p&gt;How about I add user script commands then? They can simply click &quot;add change&quot;, pick the type, the title, the href, everything.&lt;/p&gt;</description>
      <pubDate>Fri, 15 Aug 2008 07:42:39 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16816:72358</guid>
      <author>JoeSimmons</author>
      <link>http://userscripts.org/posts/72358</link>
    </item>
    <item>
      <title>Archived Comments, replied by Ahal89</title>
      <description>&lt;p&gt;Sounds good.  Keep in mind that since this script requires a fair amount of modification to the source from a users perspective, I want to keep it as simple as possible for users less experienced with javascript.  So I'll make a &quot;mode selection&quot; method with an additional selection parameter that will call the appropriate modification method.&lt;/p&gt;</description>
      <pubDate>Wed, 13 Aug 2008 12:56:49 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16816:72359</guid>
      <author>Ahal89</author>
      <link>http://userscripts.org/posts/72359</link>
    </item>
    <item>
      <title>Archived Comments, replied by JoeSimmons</title>
      <description>&lt;p&gt;Ok I'll make the code I suggested and post the parts you need to change here. I might have separate functions for changing a link through the href, and changing a link through the title.&lt;/p&gt;</description>
      <pubDate>Wed, 13 Aug 2008 12:38:17 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16816:72360</guid>
      <author>JoeSimmons</author>
      <link>http://userscripts.org/posts/72360</link>
    </item>
    <item>
      <title>Archived Comments, replied by Ahal89</title>
      <description>&lt;p&gt;Another good idea, I'm on vacation for the rest of this week, but there are obviously tons of improvements to be made which I will do upon my return.&lt;/p&gt;

&lt;p&gt;For the moment, feel free to modify the script to better suit your needs,&lt;/p&gt;

&lt;p&gt;Cheers&lt;/p&gt;</description>
      <pubDate>Wed, 13 Aug 2008 11:46:30 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16816:72361</guid>
      <author>Ahal89</author>
      <link>http://userscripts.org/posts/72361</link>
    </item>
    <item>
      <title>Archived Comments, replied by JoeSimmons</title>
      <description>&lt;p&gt;Well what if 2 links have the same name?
&lt;br /&gt;oh and you can just change &lt;code&gt;XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE&lt;/code&gt; to &lt;code&gt;6&lt;/code&gt;. Each snapshot type has a number (1-9)&lt;/p&gt;

&lt;p&gt;I know another way to work the script that would interest me more.... if you let us supply a link's href, and supply a new text for it. So it searches for the href and replaces that link's text with our set one.&lt;/p&gt;</description>
      <pubDate>Wed, 13 Aug 2008 08:03:27 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16816:72362</guid>
      <author>JoeSimmons</author>
      <link>http://userscripts.org/posts/72362</link>
    </item>
    <item>
      <title>Archived Comments, replied by Ahal89</title>
      <description>&lt;p&gt;Thanks for the tips, as I guess you could tell I've only just started to dabble in JavaScript recently.&lt;/p&gt;

&lt;p&gt;However I think I'll leave the option of using indexOf to the user.  Consider a site like Facebook where there are many link titles which contain the word &quot;friends&quot; for example.  You may wish to modify the &quot;friends&quot; link, but not the &quot;5 of your friends&quot; link.  So if you would rather match substrings, then make the change that Joe suggested.  Otherwise enter the text in exactly.  What I will do, however, is make the equality case insensitive.&lt;/p&gt;

&lt;p&gt;P.S, What I'll do later on (too busy now) is allow you to search using substrings, and give the option of only replacing the substring instead of the entire text.&lt;/p&gt;</description>
      <pubDate>Wed, 13 Aug 2008 02:19:15 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16816:72363</guid>
      <author>Ahal89</author>
      <link>http://userscripts.org/posts/72363</link>
    </item>
    <item>
      <title>Archived Comments, replied by JoeSimmons</title>
      <description>&lt;p&gt;Use &lt;code&gt;document.evaluate&lt;/code&gt; not &lt;code&gt;document.getElementsByTagName&lt;/code&gt;
&lt;br /&gt;And you should use &lt;code&gt;if(link[i].innerHTML.indexOf(ExpectedName) !== -1){&lt;/code&gt; not &lt;code&gt;if(link[i].innerHTML==(ExpectedName)){&lt;/code&gt; incase they don't put the EXACT text in.&lt;/p&gt;</description>
      <pubDate>Wed, 13 Aug 2008 01:57:36 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16816:72364</guid>
      <author>JoeSimmons</author>
      <link>http://userscripts.org/posts/72364</link>
    </item>
    <item>
      <title>Archived Comments, replied by Ahal89</title>
      <description>&lt;p&gt;I don't have a list of what sites this will work on for sure, though it seems to work well with wikipedia as well.  You'll need to just use trial and error to figure out on what links it will work, and what ones it won't (works on almost all links in Google).&lt;/p&gt;</description>
      <pubDate>Fri, 25 Jul 2008 23:32:55 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16816:72365</guid>
      <author>Ahal89</author>
      <link>http://userscripts.org/posts/72365</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:43 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16816:72350</guid>
      <author>Jesse Andrews</author>
      <link>http://userscripts.org/posts/72350</link>
    </item>
  </channel>
</rss>
