Post
Topic
Board Pools (Altcoins)
Re: [ANN] profit switching auto-exchanging pool - middlecoin.com
by
KamiN
on 06/12/2013, 12:01:35 UTC
If possible, could you edit the template that prints:
Code:
address
to print:
Code:
address
so I can go to http://middlecoin.com/#address
?

Done.

In addition, could you also set the table head in ? It is currently listed in the .

Ok, I added thead and tbody tags. I'm not sure what that did though. It looks the same in chrome.

Hi,

I wanted a way to search addresses. This snippet will give the realtime search functionality. That's why I wanted thead separated, otherwise when filtering the header disappears as well Smiley
It'll work with Tampermonkey - added as a gist here as well.

I might add other functions later.
Code:
// ==UserScript==
// @name Middlecoin utilities
// @namespace http://middlecoin.com/
// @version 0.1
// @description Some extras for middlecoin, i.e. table search filter
// @match http://middlecoin.com/
// @copyright 2012+, KamiNuvini
// @run-at document-end
// @require http://code.jquery.com/jquery-2.0.3.min.js
// ==/UserScript==
 
// Realtime address search
$('table').before('');
 
// Search snippet, thanks to dfsq at StackOverflow - http://stackoverflow.com/questions/9127498/how-to-perform-a-real-time-search-and-filter-on-a-html-table
var $rows = $('table tbody tr');
 
$('#search').keyup(function() {
    var val = $.trim($(this).val()).replace(/ +/g, ' ').toLowerCase();
 
    $rows.show().filter(function() {
        var text = $(this).text().replace(/\s+/g, ' ').toLowerCase();
        return !~text.indexOf(val);
    }).hide();
});
// End of realtime address search