$( document ).ready(function() { return false; var pathname = new String(window.location.search); // Don't transform if its not the full list page if(pathname != "" && pathname.indexOf("?mode=full") < 0) { return false; } console.log( "Start transformation..." ); // extract the title of this elog var elog_title = $(".title1").html(); elog_title = elog_title.substring(0, elog_title.lastIndexOf(",")); elog_title = elog_title.replace(/ /g, ''); // extract the main menu items inside tags // main_menu represents the list of these items var main_menu = $(".menu1").html().split("|"); // extract the view menu links, usually items are "full", "summary" and "threaded" var view_menu = $(".menu2a").html().split("|"); // extract the quick filter menu var tmp_filter_menu = $(".menu2b").html().split(""); // extract the entry count (number of entries) var start = last_filter_element[1].indexOf("") + 3; var end = last_filter_element[1].indexOf(""); var entry_cnt = last_filter_element[1].substr(start, end - start); tmp_filter_menu.splice(tmp_filter_menu.length - 1, 1); // remove the last element because it is going to be formated differently tmp_filter_menu.push(last_filter_element[0]); // fix the select tags for the quick filter var filter_menu = []; for(var e in tmp_filter_menu) { item = tmp_filter_menu[e]; if(item.indexOf(" -1) { // this element is a select tag item = "