<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>&lt;pre&gt;

// ==UserScript==
// @name           Rapidshare Link Checker
// @namespace      http://userscripts.org/users/33515/scripts
// @description    Checks if rapidshare.com links have are invalid. If so, the links will be marked.
// @include        *
// ==/UserScript==


      var links = document.getElementsByTagName(&quot;a&quot;);
      for (var i=0; i&amp;lt;links.length; i++) {
        if (links[i].href.match(/^http:\/\/(www\.)?rapidshare\.com\/files\/\d+\/.+/gi)) {
          GM_xmlhttpRequest({
            method: &quot;GET&quot;,
            url:    links[i].href,
            onload: function(e) {
              if (e.responseText.indexOf(&quot;File not found&quot;) &amp;gt; -1 || e.responseText.indexOf(&quot;This file has been deleted&quot;) &amp;gt; -1) {
                links[i].style.textDecoration = &quot;line-through&quot;;
                links[i].title = &quot;This link is invalid&quot;;
                //links[i].setAttribute(&quot;style&quot;, &quot;text-decoration:line-through;&quot;);
                //links[i].setAttribute(&quot;title&quot;, &quot;This link is invalid.&quot;);
              }
            }
          });
        }
      }&lt;/pre&gt;

If the link is invalid, the link will look something like this: &lt;img src=&quot;http://domerich.de/share/uploads/bilder/Unbenannt_unj.png&quot; /&gt;

I couldn't test it, since you didn't think so far as to post 2 links that have been deleted/are invalid, but I believe it will work.

And next time, try asking a little friendlier, a simple &quot;please&quot; would be nice ;)</body>
  <body-html>&lt;p&gt;&lt;pre&gt;

// ==UserScript==
// @name           Rapidshare Link Checker
// @namespace      http://userscripts.org/users/33515/scripts
// @description    Checks if rapidshare.com links have are invalid. If so, the links will be marked.
// @include        *
// ==/UserScript==


      var links = document.getElementsByTagName(&quot;a&quot;);
      for (var i=0; i&amp;lt;links.length; i++) {
        if (links[i].href.match(/^http:\/\/(www\.)?rapidshare\.com\/files\/\d+\/.+/gi)) {
          GM_xmlhttpRequest({
            method: &quot;GET&quot;,
            url:    links[i].href,
            onload: function(e) {
              if (e.responseText.indexOf(&quot;File not found&quot;) &amp;gt; -1 || e.responseText.indexOf(&quot;This file has been deleted&quot;) &amp;gt; -1) {
                links[i].style.textDecoration = &quot;line-through&quot;;
                links[i].title = &quot;This link is invalid&quot;;
                //links[i].setAttribute(&quot;style&quot;, &quot;text-decoration:line-through;&quot;);
                //links[i].setAttribute(&quot;title&quot;, &quot;This link is invalid.&quot;);
              }
            }
          });
        }
      }&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;If the link is invalid, the link will look something like this: &lt;img src=&quot;http://domerich.de/share/uploads/bilder/Unbenannt_unj.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;I couldn't test it, since you didn't think so far as to post 2 links that have been deleted/are invalid, but I believe it will work.&lt;/p&gt;

&lt;p&gt;And next time, try asking a little friendlier, a simple &quot;please&quot; would be nice ;)&lt;/p&gt;</body-html>
  <created-at type="datetime">2007-12-29T14:42:55Z</created-at>
  <forumable-id type="integer">2</forumable-id>
  <forumable-type>Forum</forumable-type>
  <id type="integer">5693</id>
  <topic-id type="integer">1501</topic-id>
  <updated-at type="datetime">2007-12-29T21:54:24Z</updated-at>
  <user-agent nil="true"></user-agent>
  <user-id type="integer">33515</user-id>
</post>
