Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

irc reader fixes
Friday, September 5th, 2008 at 11:35:03pm UTC 

  1. Index: irc/reader.css
  2. ===================================================================
  3. --- irc/reader.css      (revision 18112)
  4. +++ irc/reader.css      (working copy)
  5. @@ -2,8 +2,8 @@
  6.     since braindead Javascript can only access them by index! */
  7.  
  8.  /* CSS rule #0 */
  9. +/* Keep empty. Otherwise the usersettings get "overwritten". */
  10.  .seconds {
  11. -  display: none;
  12.  }
  13.  
  14.  /* CSS rule #1 */
  15. @@ -22,8 +22,8 @@
  16.  }
  17.  
  18.  /* CSS rule #3 */
  19. +/* Keep empty. Otherwise the usersettings get "overwritten". */
  20.  .join {
  21. -  display: none;
  22.  }
  23.  
  24.  .misc {
  25. @@ -66,6 +66,7 @@
  26.  .regular {
  27.    text-align: right;
  28.    background: transparent url(/rockbox16.png) no-repeat;
  29. +  padding-left: 20px;
  30.  }
  31.  
  32.  a[target="_blank"] {
  33. Index: irc/reader.pl
  34. ===================================================================
  35. --- irc/reader.pl       (revision 18112)
  36. +++ irc/reader.pl       (working copy)
  37. @@ -306,8 +306,8 @@
  38.              $message =~ s!FS *\#(\d+)!<a target="_blank" href=\"http://www.rockbox.org/tracker/task/$1\">FS \#$1</a>!g;
  39.  
  40.  
  41. -            # tag svn revisions
  42. -            $message =~ s!(\b)r(\d+)(\b)!$1<a target="_blank" href=\"http://svn.rockbox.org/viewvc.cgi?view=rev&revision=$2\">r$2</a>$3!g;
  43. +            # tag svn revisions (they normally start with a blank. avoids bricking urls with r[0-9] in them)
  44. +            $message =~ s!(\b)\sr(\d+)(\b)!$1 <a target="_blank" href=\"http://svn.rockbox.org/viewvc.cgi?view=rev&revision=$2\">r$2</a>$3!g;
  45.  
  46.              # break long lines. max 60 chars
  47.              if (0 and $message =~ /([^ ]{60,})/) {
  48. @@ -331,7 +331,19 @@
  49.                      $message =~ s|\b\Q$nick\E\b|<span class=nick_$nick>$nick</span>|g;
  50.                  }
  51.              }
  52. +           
  53. +            # get rid of nick-highlightning in hrefs
  54. +            if ($message =~ /href=\"([^\"]+)/) {
  55. +                my $url = $1;
  56. +                my $broken_url = $url;
  57.  
  58. +                if ($url =~ /<span class=nick_([^>]+)/) {
  59. +                    my $nick = $1;
  60. +                    $url =~ s|<span class=nick_$nick>$nick</span>|$nick|g;
  61. +                }
  62. +                $message =~ s|$broken_url|$url|g;
  63. +            }
  64. +
  65.              my $class = "nick";
  66.              my $realnick = $nick;
  67.              if (defined $regular{lc $nick}) {

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right