• R/O
  • SSH
  • HTTPS

slashdotext: Commit


Commit MetaInfo

Revision44 (tree)
Time2009-02-23 15:49:43
Authorhylom

Log Message

URLsCopy: exclude admin.pl and search.pl.

Change Summary

Incremental Difference

--- trunk/slashext/chrome/content/slashext/slashextOverlay.js (revision 43)
+++ trunk/slashext/chrome/content/slashext/slashextOverlay.js (revision 44)
@@ -59,6 +59,7 @@
5959 var numberOfTabs = tabBrowser.tabContainer.itemCount;
6060 var urlStrings = "";
6161 var matchRegExp = new RegExp("^http://slashdot.jp" );
62+ var rejectRegExp = new RegExp("(admin|search)" );
6263
6364 // get opened tab's urls
6465 for (var i = 0; i < numberOfTabs; i++) {
@@ -65,7 +66,8 @@
6566 var targetBrowser = tabBrowser.getBrowserAtIndex( i );
6667 var urlString = targetBrowser.currentURI.spec;
6768
68- if( matchRegExp.test(urlString) ) {
69+ if( matchRegExp.test(urlString) &&
70+ ! rejectRegExp.test(urlString) ) {
6971 urlStrings = urlStrings + urlString + "\n";
7072 }
7173 }
Show on old repository browser