From b2f4a2c39412818aa3f435fa008dcf174feb4712 Mon Sep 17 00:00:00 2001 From: Fabien Benetou Date: Tue, 21 Jun 2011 12:15:43 +0200 Subject: [PATCH] (forgot the ref to the code snippet) --- pub/code/reverted_pim_links.user.js | 1 + 1 file changed, 1 insertion(+) diff --git a/pub/code/reverted_pim_links.user.js b/pub/code/reverted_pim_links.user.js index 9fbc204..acb2e61 100644 --- a/pub/code/reverted_pim_links.user.js +++ b/pub/code/reverted_pim_links.user.js @@ -34,6 +34,7 @@ for SCANNETWORK in $(ls ~/irclogs/); do echo -n -e "$SCANNETWORK\t" && grep http */ String.prototype.ColorHash = function(){ + // from http://werxltd.com/wp/2010/05/13/javascript-implementation-of-javas-string-hashcode-method/ var hash = 0; if (this.length == 0) return hash; for (i = 0; i < this.length; i++) {