old_contents: // ==UserScript==
  // @name        Nodesquit Nodeshot
  // @namespace   leone@inventati.org
  // @include     http://map.ninux.org*
  // @version     1
  // @grant       none
  // ==/UserScript==
  
  if(!window.jQuery) {
    
    console.error('ERR: jQuery not loaded.');
    
  } else {
    
    function nodeLatLon(node, json) {
      var r = []
      $.each(json, function(index, value){
        $.each(value, function(index, value){
          if(value.name == node){
            r = [value.lat, value.lng];
            return false;
          }
        });
      });
      return r;
    }
    
    function parse(text) {
      var node1 = text.substring(0, text.search(' - '));
      var node2 = text.substring(text.search(' - ') + 3, text.search(': '));
      
      return [node1, node2];
    }
    
    function appendBtn() {
      $('div.distance-link').each(function(index, element){
        if(!($(element).hasClass('squit'))){
          
          var nodi = parse($(element).text());
          var n = nodi[0];
          var m = nodi[1];
          
          $.get('http://map.ninux.org/nodes.json', function(data){
  
            n = nodeLatLon(n, data);
            m = nodeLatLon(m, data);
  
            var hwt = 'http://www.heywhatsthat.com/profiler.html';
            url = hwt+'?na='+n[0]+'&no='+n[1]+'&ma='+m[0]+'&mo='+m[1];
            
            $(element).addClass('squit');
            
            var btn = '<a class="link-hide" target="blank" href="'+url+'">profilo</a>';
            $(element).append(btn);
  
          }, 'json').fail(function(){
            console.error('Failed to get nodes.json');
          });
          
          
          
        }
      });
      
    }
    
    $(window).load(function(){
      setInterval(appendBtn, 2000);
    });
    
  }
  
new_contents: // ==UserScript==
  // @name        Nodesquit Nodeshot
  // @namespace   leone@inventati.org
  // @include     http://map.ninux.org*
  // @version     1
  // @grant       none
  // ==/UserScript==
  
  if(!window.jQuery) {
    
    console.error('ERR: jQuery not loaded.');
    
  } else {
    
    function nodeLatLon(node, json) {
      var r = []
      $.each(json, function(index, value){
        $.each(value, function(index, value){
          if(value.name == node){
            r = [value.lat, value.lng];
            return false;
          }
        });
      });
      return r;
    }
    
    function parse(text) {
      var node1 = text.substring(0, text.search(' - '));
      var node2 = text.substring(text.search(' - ') + 3, text.search(': '));
      
      return [node1, node2];
    }
    
    function appendBtn() {
      $('div.distance-link').each(function(index, element){
        if(!($(element).hasClass('squit'))){
          
          var nodi = parse($(element).text());
          var n = nodi[0];
          var m = nodi[1];
          
          $.get('http://map.ninux.org/nodes.json', function(data){
  
            n = nodeLatLon(n, data);
            m = nodeLatLon(m, data);
  
            var hwt = 'http://www.heywhatsthat.com/profiler.html';
            url = hwt+'?na='+n[0]+'&no='+n[1]+'&ma='+m[0]+'&mo='+m[1];
            
            $(element).addClass('squit');
            
            var btn = '<a class="link-hide" target="blank" href="'+url+'">profilo</a>';
            $(element).children("span").append(btn);
  
          }, 'json').fail(function(){
            console.error('Failed to get nodes.json');
          });
          
          
          
        }
      });
      
    }
    
    $(window).load(function(){
      setInterval(appendBtn, 2000);
    });
    
  }
  
subject: Make the "profilo" button more visible