(forgot the ref to the code snippet)

master
Fabien Benetou 14 years ago committed by utopiah
parent 6e1d484b40
commit b2f4a2c394
  1. 1
      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(){ String.prototype.ColorHash = function(){
// from http://werxltd.com/wp/2010/05/13/javascript-implementation-of-javas-string-hashcode-method/
var hash = 0; var hash = 0;
if (this.length == 0) return hash; if (this.length == 0) return hash;
for (i = 0; i < this.length; i++) { for (i = 0; i < this.length; i++) {

Loading…
Cancel
Save