// ==UserScript== // @name FA Extended // @version 0.2.5.7 // @namespace FA Extended // @homepage https://greasyfork.org/scripts/3418-fa-extended // @include *www.furaffinity.net/* // @description FA Extended tries to improve your FA experience! // @author NeroTheRaichu // @copyright 2013+, NeroTheRaichu // @icon http://www.furaffinity.net/favicon.ico // @require http://code.jquery.com/jquery-2.1.1.min.js // @require http://code.jquery.com/ui/1.11.0/jquery-ui.min.js // @run-at document-end // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle // @downloadURL https://update.greasyfork.icu/scripts/3418/FA%20Extended.user.js // @updateURL https://update.greasyfork.icu/scripts/3418/FA%20Extended.meta.js // ==/UserScript== // // QUICK HELP // // New Blocks syntax: // :block[MyBlockTitle]some content here:: // // If you want the block on the left: // :block[MyBlockTitle][left]some content here:: // // New icons syntax: // :image[image_url]destination_when_user_clicks_the_image:: // // New map syntax: // :map[location]:: // // If you want to see three lines of submissions on the user page scroll a bit down the script to // the function "extend_user_page()" and comment out the line "one_line();" then you can remove // the slashes from the line "three_lines();" // If you leave them both commented you will see two lines as default. // // // Thanks to http://www.furaffinity.net/user/noctisignem/ for the popup watchlist! // // // Number of Submissions Rows in the user page // You can change it to 3, 2, or 1 // var submissions_rows = 3; // // BlackList // // If you want to black list some keywords from the new submissions page just add them to the following array // example: // var keywords__blacklist = new Array("ych","stream"); // // You can automatically remove those submissions or just hide them, for that just change this value: // var remove_blacklisted = true; // they will be removed // var remove_blacklisted = false; // they won't be removed // var keywords__blacklist = new Array(); var remove_blacklisted = false; var left_menu_showing = false; // MAIN CODE // page ready $(document).ready(function() { // executes when HTML-Document is loaded and DOM is ready init(); }); // page loaded $(window).load(function () { // executes when complete page is fully loaded console.log("Loading FA Extended..."); console.log(" Current url: " + location.href ); change_document_title(); fix_top_bar(); add_new_line(); add_icon_topbar(); var _my_username = add_links_topbar(); //console.log("Improved top navbar"); console.log("Current user: " + _my_username ); move_ads_to_bottom(); fix_header(); //scroll_down(); if ( location.href == "http://www.furaffinity.net/" ) { fix_style_fa_home(); } else if ( location.href.indexOf('watch/') > 0 ) { extend_watch_system_message(); } else if ( location.href.indexOf('/browse') > 0 || location.href.indexOf('/gallery') > 0 || location.href.indexOf('/scraps') > 0 || location.href.indexOf('/favorites') > 0 ) { // browsing submission page if ( location.href.indexOf('/controls') > 0 ) { //nothing to do } else if ( location.href.indexOf('/browse') == -1 ) { add_top_navbar('none'); add_gallery_rating_buttons(); fix_first_cat(); var current_user = ""; if ( location.href.indexOf('/gallery') > 0 ) { current_user = location.href.slice(35,-1); } else if ( location.href.indexOf('/scraps') > 0 ) { current_user = location.href.slice(34,-1); } else { current_user = location.href.slice(37,-1); } add_custom_background( current_user ); } else { add_top_navbar('browse'); add_browse_rating_buttons(); fix_first_cat_browse(); } } else if ( location.href.indexOf('/stats/') > 0 ) { fix_first_cat_stats(); var current_user = location.href.slice(33, location.href.indexOf('/submissions') ); add_custom_background( current_user ); } if ( location.href.indexOf('/user') > 0 ) { // user page //console.log("Position - Userpage" ); var current_user = location.href.slice(32,-1); extend_user_page( location.href.indexOf( _my_username ), current_user ); fix_cat_header_style(); // fix anchors var loc = location.href.indexOf('/#') if ( loc > 0 && loc+3 < location.href.length ) { var anchor = location.href.slice(loc + 2); var a = $('a[name="' + anchor + '"]'); if ( a.length > 0 ) { a = a[0]; a.scrollIntoView(); } } } if ( location.href.indexOf('/view/') > 0 || location.href.indexOf('/full/') > 0 ) { // submission page fix_title_comments(); better_icons(); better_comments_avatars(); add_fa_extended_code(); move_nav_buttons_on_top(); fix_submission_style(); change_story_style(); remove_cell_spacing(); } else if ( location.href.indexOf('/journals/') > 0 || location.href.indexOf('/commissions/') > 0 ) { fix_journals_style(); better_icons(); var current_user = ""; if ( location.href.indexOf('/journals/') > 0 ) { current_user = location.href.slice(36,-1); } else { current_user = location.href.slice(39, location.href.indexOf('/manage') ); } add_custom_background( current_user ); } else if ( location.href.indexOf('/journal/') > 0 ) { fix_journals_style(); better_icons(); better_comments_avatars(); remove_cell_spacing(); add_dotted_line_journal(); } if ( location.href.indexOf('/msg/submissions') > 0 ) { // new submissions from watched users var notifications = 0; blacklist_submissions(); update_submissions_values(); notifications += count_new_others(); notifications += count_new_notes(); fix_message_icon(notifications); add_rating_buttons(); fix_msg_submission_others_style() } else if ( location.href.indexOf('/msg/others') > 0 ) { var notifications = 0; notifications += count_new_submissions(); update_others_values(); notifications += count_new_notes(); fix_message_icon(notifications); new_journals_view(); fix_msg_submission_others_style() } else if ( location.href.indexOf('/msg/pms') > 0 ) { var notifications = 0; notifications += count_new_submissions(); notifications += count_new_others(); //update_notes_values(); fix_message_icon(notifications); fix_pms_style() remove_cell_spacing(); } else { var notifications = 0; notifications += count_new_submissions(); notifications += count_new_others(); notifications += count_new_notes(); fix_message_icon(notifications); } if ( location.href.indexOf('/controls/profile') > 0 ) { extend_profile_controls(); } else if ( location.href.indexOf('/sessions/') > 0 ) { fix_session_style(); remove_cell_spacing(); } else if ( location.href.indexOf('/controls/') > 0 ) { fix_controls_style(); remove_cell_spacing(); } else if ( location.href.indexOf('/search') > 0 ) { save_last_search(); fix_search_style(); remove_cell_spacing(); } if ( location.href.indexOf('/newpm') > 0 ) { fix_newpm_style(); remove_cell_spacing(); } else if ( location.href.indexOf('/submit') > 0 ) { fix_submit_style(); } else if ( location.href.indexOf('/viewmessage/') > 0 ) { nested_quotes(); fix_message_style(); remove_cell_spacing(); } else if ( location.href.indexOf('/login/') > 0 ) { fix_login_page(); } if ( location.href.indexOf( _my_username ) > 0 ) { fix_own_user_page(); } narrow_space_before_avatar(); page_width( "88%" ); console.log("FA Extended - fully loaded"); } ); $.expr[':'].textEquals = function (a, i, m) { return $(a).text().match("^" + m[3] + "$"); }; function extend_profile_controls() { var page_blocked = $( "td.cat b:textEquals('System Message')"); if ( page_blocked.length > 0 ) { page_blocked = page_blocked[0] page_blocked = page_blocked.parentNode; page_blocked.className = "cat_header"; page_blocked = page_blocked.parentNode; page_blocked = page_blocked.parentNode; page_blocked = page_blocked.parentNode; page_blocked.className = page_blocked.className + " maintable_newpm"; remove_cell_spacing(); return; } bigger_text_area(); bigger_update_button(); new_append_buttons(); fix_controls_style(); remove_cell_spacing(); } function extend_user_page( my_userpage, current_user ) { //extends user page var page_blocked = $( "td.cat b:textEquals('System Message')"); if ( page_blocked.length > 0 ) { console.warn("Page blocked!"); page_blocked = page_blocked[0] page_blocked = page_blocked.parentNode; page_blocked.className = "cat_header"; page_blocked = page_blocked.parentNode; page_blocked = page_blocked.parentNode; page_blocked = page_blocked.parentNode; page_blocked.className = page_blocked.className + " maintable_newpm"; remove_cell_spacing(); return; } var user_name = $("td.addpad.lead b").get( 0 ); user_name = user_name.innerHTML; user_name = user_name.slice(1); better_icons(); better_avatars(); fix_bottom_ads(); new_layout( user_name, my_userpage, current_user ); if ( submissions_rows >= 3 ) { three_lines(); } else { if ( submissions_rows == 1 ) { one_line(); } } add_popups(); fix_overflow(); remove_cell_spacing(); fix_user_tabs(); add_custom_background( current_user ); } function fix_user_tabs() { var tab_div = $( "div.tab" ).get(0); var parent_tab_div = tab_div.parentNode; parent_tab_div = parent_tab_div.parentNode; parent_tab_div = parent_tab_div.parentNode; parent_tab_div = parent_tab_div.parentNode; parent_tab_div.setAttribute("width",""); parent_tab_div.className = "table_div_tab"; } function extend_watch_system_message() { var page_blocked = $( "td.cat b:textEquals('System Message')"); if ( page_blocked.length > 0 ) { console.warn("Page blocked!"); page_blocked = page_blocked[0] page_blocked = page_blocked.parentNode; page_blocked.className = "cat_header"; page_blocked = page_blocked.parentNode; page_blocked = page_blocked.parentNode; page_blocked = page_blocked.parentNode; page_blocked.className = page_blocked.className + " maintable_newpm"; remove_cell_spacing(); } } function remove_cell_spacing() { var aux = $('table[cellspacing="1"]'); for(var i=0;i div.no_overflow'); if (aux.length > 0) { var parent = aux[0]; parent = parent.parentNode; parent.className = "alt1 tdot"; } } function new_journals_view() { var aux = $('fieldset#messages-journals ul.message-stream li a'); for(var i=0;i  ' + anchor.innerHTML + '' var parent_li = anchor.parentNode; parent_li.className = "new_journal_entry"; var span_element = parent_li.lastChild; var html_parent = parent_li.innerHTML; var a_index = html_parent.indexOf( "' + anchor.outerHTML + "" + " : " + "" + html_journal_title + " " var last_td = parent_li.lastChild.lastChild.lastChild.lastChild; last_td.appendChild( span_element ) } else { anchor.className = "iconusername iconusername_height"; anchor.innerHTML = '
 ' + anchor.innerHTML + ' 
' } } //var aux = $('fieldset#messages-journals ul.message-stream li.section-controls'); //if (aux.length > 0 ) { // var control_li = aux[0]; // var new_control_li = control_li.cloneNode(true); // // var parent = control_li.parentNode; // // parent.insertBefore( new_control_li ,parent.childNodes[0]); //} } function nested_quotes() { var current_quote_list = $('div.bbcode_quote'); if (current_quote_list.length > 0 ) { var current_quote = current_quote_list[0]; var parent_quote = current_quote.parentNode; var quote = new RegExp("\\[QUOTE\\]", "g"); var unquote = new RegExp("\\[/QUOTE\\]", "g"); parent_quote.innerHTML = parent_quote.innerHTML.replace( quote , '
' ); parent_quote.innerHTML = parent_quote.innerHTML.replace( unquote, '
' ); } } function move_ads_to_bottom() { var aux = $('.block-banners .ads'); var aux2 = $('.footer .ads'); if (aux.length > 0 && aux2.length > 0) { var ads_top = aux[0]; var ads_bottom = aux2[0]; var container_bottom = ads_bottom.parentNode; container_bottom.insertBefore( ads_top, ads_bottom ); container_bottom.insertBefore( new_br() , ads_bottom ); } } function fix_login_page() { var aux = $('form table.maintable td.cat'); if (aux.length > 0) { var parent = aux[0]; parent.className = "cat_header"; parent = parent.parentNode; parent.className = "alt1"; parent = parent.parentNode; parent = parent.parentNode; parent.setAttribute("cellspacing","0"); parent.setAttribute("cellpadding","5"); parent.className = "maintable_newpm table_top_spacing"; } } function fix_submit_style() { var aux = $('form table.maintable td.cat'); if (aux.length > 0) { var parent = aux[0]; parent = parent.parentNode; parent.className = "alt1"; parent = parent.parentNode; parent = parent.parentNode; parent.setAttribute("cellspacing","0"); parent.setAttribute("cellpadding","5"); parent.className = "maintable_newpm table_top_spacing"; } } function change_story_style() { var aux = $('table.maintable.table_submission table.maintable td.alt1_ext[align="left"]'); if (aux.length > 0) { var parent = aux[0]; var text = parent.innerHTML; if ( text.indexOf("File type: Text File") >= 0 ) { parent = parent.parentNode; parent = parent.parentNode; parent = parent.parentNode; parent.className = "maintable story_submission"; } } } function fix_own_user_page() { var tab = $( "font:textEquals('.Watch')" ); if ( tab.length > 0 ) { tab = tab[0]; tab = tab.parentNode; tab = tab.parentNode; tab.setAttribute("style","display:none;"); } var tab = $( "a:textEquals('Send Note')" ); if ( tab.length > 0 ) { tab = tab[0]; tab = tab.parentNode; tab.setAttribute("style","display:none;"); } } function page_width( width ) { var aux = $('table.content.maintable tr.innertable table'); if (aux.length > 0) { var parent = aux[0]; parent.className = parent.className + " maintable_content_inside"; parent.setAttribute("width", width ); } //console.log("New page width set!"); } function fix_msg_submission_others_style() { var aux = $('div#messagecenter-submissions'); if (aux.length > 0) { var parent = aux[0]; parent = parent.parentNode; parent.className = "alt1"; parent = parent.parentNode; parent = parent.parentNode; parent = parent.parentNode; parent.className = "maintable_newpm table_top_spacing"; } else { var aux = $('div#messagecenter-other'); if (aux.length > 0) { var parent = aux[0]; parent = parent.parentNode; parent.className = "alt1"; parent = parent.parentNode; parent = parent.parentNode; parent = parent.parentNode; parent.className = "maintable_newpm table_top_spacing"; } } } function narrow_space_before_avatar() { var aux = $('td[width="20"]'); for(var i=0;i 0) { var parent = aux[0]; parent.className = "alt1"; parent = parent.parentNode; parent = parent.parentNode; parent.setAttribute("cellspacing","0"); parent.setAttribute("cellpadding","5"); parent.className = "maintable table_top_spacing"; } } function fix_first_cat_stats() { var aux = $('table.maintable td.cat table.maintable tr'); if (aux.length > 0) { var parent = aux[0]; //parent.className = "alt1"; parent = parent.parentNode; parent = parent.parentNode; parent.setAttribute("cellspacing","0"); parent.setAttribute("cellpadding","5"); parent.className = "maintable alt1 table_top_spacing"; } } function fix_first_cat() { var aux = $('table.maintable td.cat table.maintable tr'); if (aux.length > 0) { var parent = aux[0]; parent.className = "alt1"; parent = parent.parentNode; parent = parent.parentNode; parent.setAttribute("cellspacing","0"); parent.setAttribute("cellpadding","5"); parent.className = "maintable table_top_spacing"; } } function fix_cat_header_style() { var aux = $('td.cat[align="center"]'); for(var i=0;i 0) { var parent = aux[1]; parent.className = "alt1"; parent = parent.parentNode; parent = parent.parentNode; parent = parent.parentNode; parent.className = "maintable user_card" } aux = $('table.content table[cellpadding="0"][width="100%"]'); if (aux.length > 0) { var parent = aux[0]; parent.className = "maintable_user_content"; } aux = $('table.maintable td.cat[colspan="2"] div.no_overflow'); if (aux.length > 0) { var parent = aux[0]; parent = parent.parentNode; parent.className = "cat_header"; } } function fix_style_fa_home() { var aux = $('table.content.maintable tr.innertable > td > table'); if (aux.length > 0) { var parent = aux[0]; parent.className = parent.className += " maintable_newpm table_top_more_spacing"; parent.setAttribute("cellpadding","0"); } } function fix_message_style() { var aux = $('td.cat[align="center"] > b'); if (aux.length > 0) { var parent = aux[0]; parent = parent.parentNode; parent.className = "cat_header"; parent = parent.parentNode; parent = parent.parentNode; parent = parent.parentNode; parent.className = "maintable maintable_newpm" } var aux = $('font[color="#999999"]'); if (aux.length > 0) { var parent = aux[0]; parent.removeAttribute("color"); parent.className = "greyed_font"; } var aux = $('form.viewmessage > table.maintable td.cat'); if (aux.length > 0) { var parent = aux[0]; parent.className = "alt1"; parent = parent.parentNode; parent = parent.parentNode; parent = parent.parentNode; parent.className = "maintable maintable_newpm" parent.setAttribute("cellpadding","10"); parent.setAttribute("cellspacing","0"); } var aux = $('td.alt1[rowspan="2"]'); if (aux.length > 0) { var parent = aux[0]; parent.className = ""; } } function fix_search_style() { var aux = $( "b:textEquals('Search')" ); if ( aux.length > 0 ) { var parent = aux[0]; parent = parent.parentNode; parent.className = "cat_header"; parent = parent.parentNode; parent = parent.parentNode; parent = parent.parentNode; parent.className = "maintable maintable_newpm" } } function fix_pms_style() { var aux = $('td.cat.links > b'); for(var i=0;i 0) { var parent = aux[0]; parent.className = ""; } } function fix_session_style() { var aux = $('td.cat.links > b'); if (aux.length > 0) { var parent = aux[0]; parent = parent.parentNode; parent.className = "cat_header"; parent = parent.parentNode; parent = parent.parentNode; parent = parent.parentNode; parent.className = "maintable maintable_newpm" } var aux = $('.maintable.container'); if (aux.length > 0) { var parent = aux[0]; parent.className = "maintable container maintable_session" } } function fix_controls_style() { var aux = $('td.cat.links > b'); if (aux.length > 0) { var parent = aux[0]; parent = parent.parentNode; parent.className = "cat_header"; parent = parent.parentNode; parent = parent.parentNode; parent = parent.parentNode; parent.className = "maintable maintable_newpm" } var aux = $('td.cat[align="center"] > b'); if (aux.length > 0) { var parent = aux[0]; parent = parent.parentNode; parent.className = "cat_header"; parent = parent.parentNode; parent = parent.parentNode; parent = parent.parentNode; parent.className = "maintable maintable_newpm" } if ( location.href.indexOf('/controls/site-settings') > 0 ) { aux = $('td.cat.links strong'); for(var i=0;i 0) { var parent = aux[0]; parent = parent.parentNode; parent.className = "cat_header"; parent = parent.parentNode; parent = parent.parentNode; parent = parent.parentNode; parent.className = "maintable maintable_newpm" } } function fix_journals_style() { var aux = $("table.maintable td.alt1 table.maintable"); for(var i=0;i 0) { var parent = aux[0]; parent = parent.parentNode; parent = parent.parentNode; parent = parent.parentNode; parent.className = "alt1"; parent = parent.parentNode; parent = parent.parentNode; parent = parent.parentNode; parent.setAttribute("cellspacing","0"); parent.setAttribute("cellpadding","5"); parent.setAttribute("width","99%"); parent.className = "maintable table_top_more_spacing"; } var aux = $('td.cat[align="center"]'); for(var i=0;i 0) { var parent = aux[0]; parent = parent.parentNode; parent = parent.parentNode; parent = parent.parentNode; parent.className = "alt1"; parent = parent.parentNode; parent = parent.parentNode; parent = parent.parentNode; parent.setAttribute("cellspacing","0"); parent.setAttribute("cellpadding","5"); parent.className = "maintable table_top_more_spacing"; } aux = $('div#submission table.maintable[cellpadding="2"][cellspacing="1"] td.cat'); if (aux.length > 0) { var parent = aux[0]; parent.className = "cat_header"; parent = parent.parentNode; parent = parent.parentNode; parent = parent.parentNode; parent.className = "maintable table_submission"; } var aux = $('td.cat[align="center"]'); for(var i=0;i tbody > tr > td.alt2 > table.maintable > tbody > tr > td.alt1_ext'); if (aux.length > 0) { var parent = aux[0]; console.log( "here!"); parent.innerHTML = "" + parent.innerHTML + ""; } } function move_nav_buttons_on_top() { var prev = $('a.prev.button'); if ( prev.length > 0 ) { prev = prev[0]; } else { prev = false; } var next = $('a.next.button'); if ( next.length > 0 ) { next = next[0]; } else { next = false; } var parent_node = false; if ( prev ) { parent_node = prev.parentNode; parent_node = parent_node.parentNode; } else if ( next ) { parent_node = next.parentNode; parent_node = parent_node.parentNode; } if ( parent_node ) { var new_div = document.createElement("div"); new_div.className = 'alt1 actions'; new_div.appendChild( new_br() ); if ( prev ) { prev = prev.cloneNode(true); new_div.appendChild( prev ); } if ( next ) { next = next.cloneNode(true); new_div.appendChild( next ); } new_div.appendChild( new_br() ); $( parent_node ).prepend( new_div ); } } function add_browse_rating_buttons() { var action_div = $('form[name="replyform"]').get( 0 ); //action_div.appendChild( new_br() ); var new_span = document.createElement("span"); new_span.setAttribute('style','float:right;'); new_span.innerHTML = "Toggle Submissions by Rating: "; var button_all = document.createElement("button"); var button_general = document.createElement("button"); var button_mature = document.createElement("button"); var button_adult = document.createElement("button"); button_all.setAttribute("type","button"); button_general.setAttribute("type","button"); button_mature.setAttribute("type","button"); button_adult.setAttribute("type","button"); button_general.setAttribute("id","b_general"); button_mature.setAttribute("id","b_mature"); button_adult.setAttribute("id","b_adult"); button_all.className = 'blue'; button_general.className = 'red'; button_mature.className = 'red'; button_adult.className = 'red'; button_all.innerHTML = "Show All Ratings"; button_general.innerHTML = "Hide General"; button_mature.innerHTML = "Hide Mature"; button_adult.innerHTML = "Hide Adult"; button_all.onclick=show_all_ratings; button_general.onclick=toggle_general_rating; button_mature.onclick=toggle_mature_rating; button_adult.onclick=toggle_adult_rating; new_span.appendChild( button_all ) new_span.appendChild( button_general ) new_span.appendChild( button_mature ) new_span.appendChild( button_adult ) action_div.appendChild( new_span ); check_saved_toggle(); } function add_gallery_rating_buttons() { var action_div = $('td[align="center"][width="70%"]').get( 0 ); action_div.appendChild( new_br() ); var new_span = document.createElement("span"); new_span.innerHTML = "Toggle Submissions by Rating:
"; var button_all = document.createElement("button"); var button_general = document.createElement("button"); var button_mature = document.createElement("button"); var button_adult = document.createElement("button"); button_all.setAttribute("type","button"); button_general.setAttribute("type","button"); button_mature.setAttribute("type","button"); button_adult.setAttribute("type","button"); button_general.setAttribute("id","b_general"); button_mature.setAttribute("id","b_mature"); button_adult.setAttribute("id","b_adult"); button_all.className = 'blue'; button_general.className = 'red'; button_mature.className = 'red'; button_adult.className = 'red'; button_all.innerHTML = "Show All Ratings"; button_general.innerHTML = "Hide General"; button_mature.innerHTML = "Hide Mature"; button_adult.innerHTML = "Hide Adult"; button_all.onclick=show_all_ratings; button_general.onclick=toggle_general_rating; button_mature.onclick=toggle_mature_rating; button_adult.onclick=toggle_adult_rating; new_span.appendChild( button_all ) new_span.appendChild( button_general ) new_span.appendChild( button_mature ) new_span.appendChild( button_adult ) action_div.appendChild( new_span ); check_saved_toggle(); } function add_rating_buttons() { var action_div = $('div.actions').get( 0 ); action_div.appendChild( new_br() ); action_div.appendChild( new_br() ); var new_span = document.createElement("span"); new_span.innerHTML = "Toggle Submissions by Rating: "; var button_all = document.createElement("button"); var button_general = document.createElement("button"); var button_mature = document.createElement("button"); var button_adult = document.createElement("button"); button_all.setAttribute("type","button"); button_general.setAttribute("type","button"); button_mature.setAttribute("type","button"); button_adult.setAttribute("type","button"); button_general.setAttribute("id","b_general"); button_mature.setAttribute("id","b_mature"); button_adult.setAttribute("id","b_adult"); button_all.className = 'blue'; button_general.className = 'red'; button_mature.className = 'red'; button_adult.className = 'red'; button_all.innerHTML = "Show All Ratings"; button_general.innerHTML = "Hide General"; button_mature.innerHTML = "Hide Mature"; button_adult.innerHTML = "Hide Adult"; button_all.onclick=show_all_ratings; button_general.onclick=toggle_general_rating; button_mature.onclick=toggle_mature_rating; button_adult.onclick=toggle_adult_rating; new_span.appendChild( button_all ) new_span.appendChild( button_general ) new_span.appendChild( button_mature ) new_span.appendChild( button_adult ) action_div.appendChild( new_span ); check_saved_toggle(); } function check_saved_toggle() { if ( !GM_getValue( "FAex_toggle_general", true ) ){ toggle_general_rating(); } if ( !GM_getValue( "FAex_toggle_mature", true ) ){ toggle_mature_rating(); } if ( !GM_getValue( "FAex_toggle_adult", true ) ){ toggle_adult_rating(); } } function show_all_ratings() { //var subs = $("b.t-image"); //for(var i=0;i 0 ) { submission_id = submission_id.slice(0,j); } for(i=0; i 0 ) { j = page_text.indexOf('"//'); page_text = page_text.slice(j+3); j = page_text.indexOf('";'); page_text = page_text.slice(0,j); break; } } if ( j < 0 ) { script_list = $("object"); for(i=0; i 0 ) { page_text = page_text.slice(j+5); j = page_text.indexOf('.'); page_text = page_text.slice(0,j); j = page_text.indexOf('/'); page_text = page_text.slice(j+1); } } page_text = 't.facdn.net/' + submission_id + '@100-' + page_text + '.jpg'; } page_text = page_text.replace(/@400/,"@100"); page_text = 'http://' + page_text; console.log( 'thumbnail image address: ' + page_text ); var icon_code = ':image[' + page_text + ']' + page_url + '::'; var container = $( "b:textEquals('Image Specifications:')" ); if ( container.length > 0 && j > 0 ) { container = container[0]; container = container.parentNode; container.appendChild( new_br() ); var new_p = document.createElement("p"); new_p.innerHTML = 'FA Extended icon code: '; container.appendChild( new_p ); } } function change_document_title() { var text = document.title; var i = text.indexOf(" --"); if ( i >= 0 ) { text = text.slice(0,i); } text = text.replace(/Artwork Gallery/,"Gallery"); text = text.replace(/Scraps Gallery/,"Scraps"); text = text.replace(/Favorites Gallery/,"Favorites"); text = text + ' [FA Extended]'; document.title = text; } function update_submissions_values() { var a_subs = $( 'a[title="Submissions"]' ); if (a_subs) { a_subs = a_subs[0]; var subs_num = a_subs.innerHTML; subs_num = parseInt( subs_num ); GM_setValue( "FAex_s", subs_num ); } } function update_others_values() { var a_mess = $( 'a[title="Comments, Journals, Favorites, and Watches"]' ); var i; if (a_mess) { a_mess = a_mess[0]; var a_mess_num = a_mess.innerHTML; var array_num = a_mess_num.split(","); GM_setValue( "FAex_c", 0 ); GM_setValue( "FAex_j", 0 ); GM_setValue( "FAex_f", 0 ); GM_setValue( "FAex_w", 0 ); for( i=0; i 0 ) { a_subs = a_subs[0]; var subs_num = a_subs.innerHTML; if ( subs_num == "" ) { return 0; } subs_num = parseInt( subs_num ); var old_num = GM_getValue( "FAex_s", 0 ); var difference = subs_num - old_num; if ( difference > 0 ) { //a_subs.innerHTML = '+' + difference + ' / ' + subs_num + 'S'; a_subs.innerHTML = '+' + difference + 'S'; return difference; } } return 0; } function count_new_others() { var a_mess = $( 'a[title="Comments, Journals, Favorites, and Watches"]' ); var i; var total_difference = 0; if ( a_mess.length > 0 ) { a_mess = a_mess[0]; var a_mess_num = a_mess.innerHTML; if ( a_mess_num == "" ) { return 0; } var array_num = a_mess_num.split(","); var result_string = ''; for( i=0; i 0 ) { total_difference += difference; //result_string += '+' + difference + ' / ' + element_num + element_last; result_string += '+' + difference + element_last + ''; } else { result_string += element_num + element_last; } if ( i < (array_num.length - 1) ) { result_string += ', '; } } a_mess.innerHTML = result_string; return total_difference; } return 0; } function count_new_notes() { var a_notes = $( 'a[title="Notes"]' ); if ( a_notes.length > 0 ) { a_notes = a_notes[0]; var notes_num = a_notes.innerHTML; if ( notes_num == "" ) { return 0; } notes_num = parseInt( notes_num ); //var old_num = GM_getValue( "FAex_n", 0 ); //a_notes.innerHTML = '+' + difference + ' / ' + notes_num + 'N'; a_notes.innerHTML = '+' + notes_num + 'N'; //var difference = notes_num - old_num; //if ( difference > 0 ) { //} return notes_num; } return 0; } function fix_title_comments() { // fixes the position of the title before the comments var title = $( "b:textEquals('User comments')" ); if ( title.length > 0 ) { title = title[0]; title = title.parentNode; title = title.parentNode; title = title.parentNode; title = title.parentNode; var newbr = new_br(); title.parentNode.insertBefore(newbr, title); newbr = new_br(); title.parentNode.insertBefore(newbr, title); } } function better_comments_avatars() { var av_a; //var ignore_user = '#'; av_a = $("td.alt1[width='70%'] a"); if ( av_a.length > 0 ) { av_a = av_a[0]; av_a.className = "newAvatar"; //ignore_user = av_a.href; var newdiv = document.createElement("div"); newdiv.setAttribute("width","100px"); newdiv.setAttribute("style","display:inline-block;"); var av_td = av_a.parentNode; //av_td.setAttribute("width","100%"); av_td.insertBefore( newdiv, av_td.childNodes[0] ); //av_td.prepend( newdiv ); av_td.setAttribute("valign","baseline"); newdiv.appendChild( av_a ); //av_td = $("td.cat[width='70%']").get( 0 ); //av_td.setAttribute("colspan","2"); add_popup_to_avatar( av_a ); } var list = $("td.icon"); if( list.length > 0 ) { var i; for(i=0;i 1 ) { av_a = childs[1]; } else { av_a = childs[0]; } av_a.className = "newAvatar"; //if ( av_a.href != ignore_user ) { add_popup_to_avatar( av_a ); //} } } list = $("b.replyto-name"); if( list.length > 0 ) { var i; for(i=0;i 0 ) { for ( index=0; index= 0 ) { return true; } } return false; } function fix_top_bar() { //fixed top bar GM_addStyle( ".fixedInPlace{position:fixed; z-index:1000}" ); var top_bar = $("table.block-menu-top"); top_bar.addClass("fixedInPlace"); } function add_new_line() { //adds new line at the end of the page var body = $("body").get( 0 ); var brTag = document.createElement("br"); body.appendChild(brTag); } function fix_header() { //bump down fur affinity header and ads var top_bar = $("table.block-menu-top"); var div = $("div.block-banners").get( 0 ); var new_div = document.createElement("div"); new_div.className = "bumpDown"; // new_div.setAttribute("style","padding-top:" + top_bar.height() +"px;"); // new_div.addEventListener ("resize", bump_down_page_content, true); div.parentNode.insertBefore(new_div, div); // } //function bump_down_page_content() { // var top_bar = $("table.block-menu-top"); // var div = $("div.bumpDown").get( 0 ); // div.setAttribute("style","padding-top:" + top_bar.height() +"px;"); //} //var resizeTimer; //$(window).resize(function() { // clearTimeout(resizeTimer); // resizeTimer = setTimeout( bump_down_page_content, 100); //}); function add_icon_topbar() { // base64 image var icon = ''; var second_icon = ''; var top_td = $("td.header_bkg").get( 0 ); var new_td = document.createElement("td"); var new_a = document.createElement("a"); var new_a_2 = document.createElement("a"); new_a_2.className = "link_to_browse"; new_a.href = "http://www.furaffinity.net/"; new_a_2.href = "http://www.furaffinity.net/browse/"; new_a.innerHTML = icon; new_a_2.innerHTML = second_icon; new_td.appendChild(new_a); if ( $(window).width() >= $(document).width() ) { new_td.appendChild(new_a_2); new_td.className = "header_bkg"; } else { new_td.className = "header_bkg header_compact"; } new_td.setAttribute("style","padding-left:6px;"); top_td.parentNode.insertBefore(new_td, top_td); } function clear_last_searches() { GM_setValue( "searches", null ); //window.location.reload(); history.go(0) return false } function toggle_side_menu() { if ( left_menu_showing ) { left_menu_showing = false; $( 'div.side_menu' ).hide('slide', {direction: 'right'}, 1000); return false; } else { left_menu_showing = true; $( 'div.side_menu' ).show('slide', {direction: 'right'}, 1000); return false; } } function fix_message_icon(num) { if(num > 0) { var alert_message_icon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qI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g=="; var icon = $("#message_icon_img").get( 0 ); icon.setAttribute("src",alert_message_icon); } } function add_links_topbar() { var left_menu = $("td.header_bkg ul.dropdown.dropdown-horizontal").get( 0 ); var left_td = left_menu.parentNode; var parent_tr = left_td.parentNode; var outer_ul = document.createElement("ul"); outer_ul.className = "dropdown dropdown_left main_dropdown_menu"; outer_ul.setAttribute("style","float:left;"); left_td.setAttribute("style","width:27px;"); var inner_li = document.createElement("li"); var menu_icon = ''; var home_icon = ''; var message_icon = ''; var side_menu_link = document.createElement("a"); side_menu_link.innerHTML = menu_icon; side_menu_link.className = 'dir'; side_menu_link.href = '#' side_menu_link.id = "left-menu"; side_menu_link.onclick=toggle_side_menu; inner_li.appendChild( side_menu_link ) //inner_li.innerHTML = '
' + menu_icon + ''; var page_body = $( "body > div" ).get(0); var side_menu_div = document.createElement("div"); side_menu_div.className = 'side_menu'; page_body.appendChild( side_menu_div ); left_menu.className = "dropdown dropdown_left"; parent_tr.appendChild( left_td ); left_td.appendChild( outer_ul ); outer_ul.appendChild( inner_li ); //inner_li.appendChild( left_menu ); side_menu_div.appendChild( left_menu ); var left_childs = left_menu.childNodes; var i; for(i=0; i 0 ) { a_user_name = a_user_name[0]; a_user_name.className = "dir"; var li_container = a_user_name.parentNode; var user_name = a_user_name.href; a_user_name.className = ""; _my_username = a_user_name.innerHTML.replace(/~/,""); a_user_name.innerHTML = a_user_name.innerHTML.replace(/~/,"â–¼ "); var gallery_link = user_name.replace(/user/,"gallery"); var scraps_link = user_name.replace(/user/,"scraps"); var favorites_link = user_name.replace(/user/,"favorites"); var journals_link = user_name.replace(/user/,"journals"); var outer_ul = li_container.parentNode; outer_ul.className = "dropdown dropdown-horizontal"; outer_ul.setAttribute("style","float:right;"); var new_ul = document.createElement("ul"); new_ul.innerHTML = '
  • User Page
  • Gallery
  • Scraps
  • '; new_ul.innerHTML += '
  • Favorites
  • Journals
  • '; li_container.appendChild( new_ul ); var ul_my_fa_notes = $( "ul.dropdown a:textEquals('Notes')").get( 0 ); var ul_my_fa = ul_my_fa_notes.parentNode; ul_my_fa = ul_my_fa.parentNode; ul_my_fa_notes.parentNode.removeChild( ul_my_fa_notes ); ul_my_fa.innerHTML = ul_my_fa.innerHTML.replace(/Journals/,"Edit Journals"); //console.log("Add Last Searched if there are some"); var new_li_searched = false; var list_searches = GM_getValue( "searches", null ); if ( list_searches ) { new_li_searched = document.createElement("li"); var li_string = 'â–¼ Last Searched'; new_li_searched.innerHTML = li_string; } var parent_ul_my_fa = ul_my_fa.parentNode; var ul_a = parent_ul_my_fa.childNodes[0]; ul_a.className = "my_fa"; var new_li_hr = document.createElement("li"); new_li_hr.innerHTML = '
    '; var new_li_hr_2 = document.createElement("li"); new_li_hr_2.innerHTML = '
    '; var new_li_hr_3 = document.createElement("li"); new_li_hr_3.innerHTML = '
    '; var new_li_message = document.createElement("li"); new_li_message.innerHTML = 'Message Center'; var new_li_notes = document.createElement("li"); new_li_notes.innerHTML = 'Notes'; var left_menu = $("div.side_menu ul").get( 0 ); //var left_menu = $("ul.main_dropdown_menu > li > ul").get( 0 ); left_menu.appendChild( new_li_hr ); left_menu.appendChild( li_container ); left_menu.appendChild( parent_ul_my_fa ); left_menu.appendChild( new_li_hr_2 ); left_menu.appendChild( new_li_message ); left_menu.appendChild( new_li_notes ); left_menu.appendChild( new_li_hr_3 ); if( new_li_searched ) { //left_menu.appendChild( new_li_searched ); //var clear_button = $( "a.clear_search_gm" ).get(0); //clear_button.onclick = clear_last_searches //var new_li_hr_3 = document.createElement("li"); //new_li_hr_3.innerHTML = '
    '; //left_menu.appendChild( new_li_hr_3 ); } var right_menu = $("ul.dropdown.dropdown-horizontal > li.noblock"); if ( right_menu.length > 0 ) { var log_out = right_menu[right_menu.length-1]; var swf_toggle = right_menu[right_menu.length-2]; swf_toggle.className = swf_toggle.className.replace(/noblock/,""); log_out.className = ''; left_menu.appendChild( swf_toggle ); left_menu.appendChild( log_out ); } var messages_link = $('ul.dropdown-horizontal li.noblock a[href="/controls/messages/"]').get(0); var message_parent = messages_link.parentNode; message_parent.innerHTML = message_parent.innerHTML.slice(2,-2); message_parent.className = "li_to_remove"; var new_li = document.createElement("li"); new_li.innerHTML = '' + home_icon + ''; message_parent.parentNode.insertBefore( new_li, message_parent ); var new_li_2 = document.createElement("li"); message_parent.parentNode.insertBefore( new_li_2, message_parent ); new_li_2.innerHTML = '' + message_icon + ''; new_ul = document.createElement("ul"); new_ul.className = "dropdown-messages"; new_li_2.appendChild( new_ul ); new_ul.appendChild( message_parent ); new_ul.appendChild( messages_link ); var new_li = document.createElement("li"); new_li.innerHTML = '
    '; new_ul.appendChild( new_li ); var message_as = $('ul.dropdown-messages li a'); for ( i=0; i < message_as.length; i++ ) { var mess_a = message_as[i]; if ( mess_a.innerHTML != "" ) { var new_li = document.createElement("li"); new_ul.appendChild( new_li ); new_li.appendChild( mess_a ); } } var new_li = $('li.li_to_remove').get(0); new_ul.removeChild( new_li ); } else { } //console.log("Navbar Search"); right_menu = $("ul.dropdown.dropdown-horizontal").get( 0 ); var new_li = document.createElement("li"); var search_image = 'src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAcCAYAAAEIFJ9FAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88S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7bjbe8dEPtnffcXV4qG+y7/t/lBXA9X2f9bVVAPL5fH9Df9Uol8tRKBT+yb1TVsvmJcoojOK/ee9cX5kJFCdNSmpXQRl9YSNkRlRQ0DYJo0XbFm2K/Bgxyz4stW37oIg0dJFFWGRBuxZFKETbIHQIp3H8uPe+d1p5e8d0kvL+Ac8553nOOdx/cvmamHylF+azlFt4T0t3tmqgRXNprVFKYYzBWks+n3dDI5EIQgiklEgpEUIUpK8oUBhgfn4erTWjY++5d+cGWmtqampYX1lFemqSdDpNIpHgwsVL1O2tRQhBaWkpUkoHWFSR1prZ2Vm+fU9zrrmJumQ9Q8PDCM8jGo3ieZ4jY0xAW3uKVMtHnjwdotxaYrHY71QUU2SMIQgCrna00nD4CB1tLS7IUsoCQrlcjt67PVxpaaUz1U5/fx/GGKfqrzcKggCtNRuqNxIEASUlJS4DkUiEfD6P53kIIVBKUVlVzdcvE38GaTlnLapRSmGtpenseXpvdbF123YO1e9HKeUArbUopQB4PjrG2zevSHXddOVYEPPw4RcWFtBao7Xm4eNBXjwbZmZmhuMnTjHw6AH9Pd3s2r2Hg41HSVRUMDk1xbvXLxkf/8yBZJKBwUHisZgzg1NkrcUYw9zcHFprPnyaoLPtMtlsFt/32bGzlvvXulkX8wvWNZnOMP0zy5bNmzh5rNEp8H2/wG0FQFprfkxnaT5zmkwmQzwe5/rtPhqS+5xVw7cJgoCysjKXpcUbhXO1bG9JKalMlDMyMuLuFI1G3e9rKbvVFOKKQOF9rlQv/911azWs2Ps1AN1IVAlcDpRJAAAAAElFTkSuQmCC"'; new_li.className = "noblock"; var new_li_form = '
    '; new_li_form += ''; new_li_form += ''; new_li_form += ''; new_li_form += ''; new_li_form += '
    '; new_li.innerHTML = new_li_form; right_menu.appendChild( new_li ); return _my_username.toLowerCase(); } function save_last_search() { var results = $('center.flow'); if (results.length > 0) { var input_text = $('input.textbox[name="q"]').get( 0 ); var input_page = $('input.textbox[name="page"]').get( 0 ); if ( input_page.value == "1" ) { var searched_text = input_text.value; var list_searches = GM_getValue( "searches", null ); if ( list_searches ) { var array_search = list_searches.split('\n'); if (array_search.indexOf( searched_text ) == -1) { array_search.unshift( searched_text ) if ( array_search.length > 5 ) { array_search.pop() } list_searches = array_search.join("\n"); GM_setValue( "searches", list_searches ); } } else { GM_setValue( "searches", searched_text ); } } } } function scroll_down() { //scrolls down after the banner window.scrollBy(0,140); } function getButtonByValue(v) { var inputs = $('button'); var i; for ( i=0; i < inputs.length; i++ ) { if (inputs[i].value == v) { return inputs[i]; } } return false; } function add_top_navbar( gallery_page ) { var nav = null; var gallery = null; var prev = getButtonByValue("Back"); nav = prev.parentNode; nav = nav.parentNode; nav = nav.parentNode; gallery = nav.parentNode; if ( gallery_page == "none" ) { nav.childNodes[1].setAttribute('colspan','2'); nav = nav.parentNode; nav = nav.parentNode; nav = nav.parentNode; nav = nav.parentNode; gallery = gallery.parentNode; gallery = gallery.parentNode; gallery = gallery.parentNode; gallery = gallery.parentNode; gallery = gallery.childNodes[1]; } else { gallery = gallery.childNodes[1]; } nav.className = "alt1"; nav = nav.cloneNode(true); if ( gallery_page == "none" ) { var tr = document.createElement("tr"); tr.className = "alt1"; tr.innerHTML = '
    ' gallery.parentNode.insertBefore(tr, gallery); } gallery.parentNode.insertBefore(nav, gallery); } function new_block(title, content, class_name) { var cell_padding = ""; if(!class_name) { class_name = ""; cell_padding = "3"; } else { cell_padding = "10"; } return '\n\n\n\n\n\n\n
    \n' + title + '\n
    '; } function new_block_wide(title, content) { return '\n\n\n\n\n\n\n
    \n' + title + '\n
    '; } function new_icon(image, link) { return '
    '; } function new_map(location) { location = encodeURIComponent( location ); return '
    ' + location + '
    ' ; } function new_title_block( title ) { return '\n\n\n\n
    ' + title +'
    \n
    '; } function new_br() { return document.createElement("br"); } function new_element( html ) { var span = document.createElement("span"); span.innerHTML = html; return span; } function new_anchor( name ) { var a = document.createElement("a"); a.setAttribute("name",name); return a } function add_popup_class( element ) { var child_list = element.childNodes[1]; child_list = child_list.childNodes; child_list = child_list[child_list.length - 2]; child_list = child_list.childNodes[1]; var last_child = child_list.childNodes[0]; last_child.className = "popupLink"; } function add_popups( element ) { var popups = $(".popupLink"); for(var i=0;i div{\ background-color: rgba(106,114,131,0.0);}\ div.bumpDown{\ height:65px;}\ TABLE, TR, TD, TH {\ font-family: Verdana, sans-serif;\ font-size: 7.5pt;}\ b {\ font-size: 8pt;\ font-weight: bold;}\ div.tab b {\ font-size: 7.5pt;\ font-weight: bold;}\ font > b {\ font-size: 10.5pt;}\ div.block-banners.clearfix{\ display:none;}\ td.alt1.user-info td.alt1.user-info > span{\ font-weight: bold;}\ .maintable, .submissions, td.preview, td.desc, td.info{\ background-color: rgba(106,114,131,0.0);}\ .innertable{\ background-color: rgba(46,59,65,0.0); }\ .block-menu-top.fixedInPlace{\ opacity: 1.0;\ box-shadow:2px 2px 2px #2e2e2e;\ -moz-box-shadow:2px 2px 2px #2a2a2a;\ -webkit-box-shadow:2px 2px 2px #2a2a2a;}\ .block-menu-top.fixedInPlace:hover{\ opacity: 1.0 !important;}\ td.cat .maintable{\ background-color: rgba(106,114,131,0.0); }\ .cat{\ background-color: rgba(106,114,131,0.0);\ border:0px; }\ #sessions-form .container, #activity-periods-list .container, .personal-messages .container,\ .personal-messages table.maintable_newpm td.alt1 form table.container tr:not(.hover) td.alt1, table#admin_notice_do_not_adblock {\ background-color: rgba(106,114,131,0.0);}\ .cat_header, td.alt1_ext table.maintable td.cat:first-child, .maintable_session td.cat{\ border:2px;}\ .cat_header, td.alt1_ext table.maintable td.cat:first-child,\ .maintable_session td.cat, .tab a, #frontpage .cat{\ border-style:solid;\ border-width: 2px;\ border-color: rgba(35, 45, 49, 0.8);\ background-color: ' + colour_1 + ';\ color: ' + text_colour + ';}\ .cat_header{\ font-size:8pt;\ padding: 4px;}\ .header{\ color: white;}\ .block-menu-top td{\ background-color: ' + colour_navbar + ';}\ div#news{\ margin-top:16px;}\ div.alt1, .personal-messages .container, .journal_block td.alt1, .about_block td.alt1, .shouts_block td.alt2{\ background-color: rgba(106,114,131,0.0);\ color: ' + text_colour + ';}\ td.alt1, tr.alt1, td.cat table.maintable.alt1 > tbody > tr > td, table.container-comment, \ div#stats-submission td.cat > table.maintable[cellspacing="1"] > tbody > tr >td, form.viewmessage > table, \ td.alt2, div#news, .lead, .tab u, div#controls-journal table.maintable_newpm > tbody > tr > td.alt1_ext, table#admin_notice_do_not_adblock td, \ table.maintable_newpm > tbody > tr > td.cat {\ background-color: ' + colour_2 + ';\ color: ' + text_colour + ';}\ .alt1, .cat{\ color: ' + text_colour + ';}\ div#description_popup {\ padding:2px;\ background-color: rgba(46, 59, 65, 0.95);\ border-radius:6px;\ color: ' + text_colour + ';}\ center.flow.with-titles{\ vertical-align:middle;}\ td.shouts_block table.shoutBlock{\ border-collapse: separate;\ border-width: 2px;\ border-style:solid;\ border-color: '+ colour_1 +';\ border-radius:1px;}\ table.container-comment, .maintable_newpm, .table_submission, .table_top_spacing, .table_top_more_spacing, \ table.maintable_user_content > tbody > tr > td > table.maintable, table.maintable_user_content > tbody > tr > td > div > table.maintable,\ table.maintable_user_content > tbody > tr > td > span > table.maintable, .maintable_session, div#news, \ .table_submission > tbody > tr > td > table.maintable, td.alt1_ext > table.maintable, form.viewmessage > table,\ div#stats-submission td.cat > table.maintable[cellspacing="1"], table#admin_notice_do_not_adblock{\ border-collapse: separate;\ border-width: 5px;\ border-style:solid;\ border-color: '+ colour_1 +';\ -moz-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.6);\ -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.6);\ box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.6);\ border-radius:1px;}\ a#fa_header p img{\ border-radius:5px;\ -moz-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.6);\ -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.6);\ box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.6);}\ td.journal_block > table.maintable, td.about_block > table.maintable, td.about_block > span > table.maintable,{\ border-width: 0px;\ border-radius:0px;}\ td.journal_block > table.maintable td.cat_header,\ td.about_block > table.maintable td.cat_header, td.about_block > span > table.maintable td.cat_header{\ border-width: 0px;\ text-align: left !important;\ border-radius:3px;}\ div#stats-submission td.cat > table.maintable[cellspacing="1"]{\ margin-top:10px;}\ .container-comment td.cat, .container-comment th, .container-comment .lead, td.alt1.addpad td.alt1.addpad{\ background-color: rgba(106,114,131,0.0);}\ .container-comment div.menu b, td.lead.addpad b{\ font-size:10pt;}\ div.tab u, div.tab b a{\ border-radius:3px;}\ td.alt1.ldot{\ background-color: rgba(106,114,131,0.0);\ color: ' + text_colour + ';}\ td.alt2 .lead, td.alt2 .alt1, table.bpix.tpix.rpix.lpix[width="1%"] td.alt1{\ background-color: rgba(106,114,131,0.0);}\ .lead{\ border-top: 0px;\ border-bottom:0px;}\ form.viewmessage > table{\ margin-top:5px;\ margin-bottom:6px;}\ .maintable_user_content{\ margin-top:4px}\ .table_top_spacing{\ margin-top:4px;}\ .table_top_more_spacing{\ margin-top:8px;}\ div#browse table.maintable.table_top_spacing td.cat > form > font{\ line-height:200%;\ margin-top:2px;}\ div.tab{\ width:100%;\ margin-bottom:4px;\ margin-left:15px;}\ table.table_div_tab{\ width:100%;}\ .tab u{\ font-weight: bold;\ border-bottom:1px solid #6A7283;\ padding:5px 6px 4px 6px;}\ .tab a{\ padding:5px 6px 4px 6px;}\ ul.dropdown li.noblock {\ padding-right: 5px;\ padding-left: 5px;}\ ul.dropdown.main_dropdown_menu li.noblock{\ padding-right: 0px;\ padding-left: 0px;}\ ul.dropdown li.noblock a:first-child{\ padding-left: 0px;}\ ul.dropdown.dropdown_left ul ul{\ left: -99%;}\ ul.dropdown.dropdown_left ul{\ left: -130px;}\ ul.main_dropdown_menu > li > ul{\ top:5px;}\ div.side_menu > ul{\ background-color: rgba(32, 34, 36, 0.9);}\ div.side_menu > ul > li a:hover{\ background-color:#2e2e2e;}\ ul.dropdown ul{\ opacity:1.0;\ background-color: rgba(51, 51, 51, 0.95);\ border: 1px dashed rgba(207, 207, 207, 0.2);}\ div.side_menu{\ z-index:1001;\ display: none;\ position:fixed;\ top:45px;\ right:0;\ width:160px;\ height:100%;}\ div.side_menu > ul{\ height:100%;\ position:absolute;}\ div.side_menu > ul > li{\ width:160px;}\ div.side_menu ul.dropdown.dropdown_left ul{\ top:8px;\ left:-190px;}\ ul.dropdown ul li.active a:hover{\ background-color:rgba(32, 34, 36, 0.5);}\ ul.dropdown.main_dropdown_menu li.noblock a, ul.dropdown ul a{\ padding: 4px 5px 4px 14px;\ width:171px;}\ ul.dropdown li.noblock a, ul.dropdown li.noblock form{\ display:inline-block;\ padding:7px 0;}\ ul.dropdown li.noblock input[type="text"]{\ width:160px;}\ ul.dropdown li.noblock form input{\ vertical-align:bottom;\ padding:0px;\ display:inline-block;\ margin:0px;\ font-size:14pt;\ border:0px;\ height:28px;}\ ul.dropdown-horizontal li.noblock a {\ padding-top:14px;}\ td.header_bkg form.search_navbar input[type="image"] {\ vertical-align:bottom;\ display:inline-block;\ margin:0px;\ margin-left:-2px;}\ td.header_bkg img{\ margin:1px;}\ .personal-messages tr.hover td, div#messagecenter-other ul.message-stream li.hover,\ div#messagecenter-other ul.message-stream table:hover, #sessions-form table.container tr.hover td, #activity-periods-list table.container tr.hover td,\ .personal-messages tr.hover td{\ cursor:default;\ background-color:rgba(49, 64, 68, 0.7);}\ .personal-messages tr.checked td, div#messagecenter-other ul.message-stream li.checked,\ div#messagecenter-other ul.message-stream table.checked, center.flow.messagecenter b.checked,\ #sessions-form table.container tr.checked td, #activity-periods-list table.container tr.checked td, .personal-messages tr.checked td{\ background-color:rgba(65, 80, 84, 0.7) !important;}\ div#messagecenter-other ul.message-stream table.new_journal_entry:hover{\ background-color:rgba(56, 50, 50, 0.0);}\ div#submission .prev, div#submission .next{\ padding:3px;}\ .button, button, input[type="button"], input[type="submit"], input[type="reset"], a.oldest, a.newest, a.more {\ cursor:pointer;\ margin:1px;\ padding:3px;\ padding-left:8px;\ padding-right:8px;\ font-size:8pt;\ border:1px solid #cccacb;\ background-color: rgba(255, 255, 255, 0.8);\ color: rgb(39, 41, 44);\ -moz-border-radius: 5px;\ border-radius: 5px;}\ div#messagecenter-submissions div.navigation a, div#messagecenter-submissions div.navigation .newest,\ div#messagecenter-submissions div.navigation .oldest, div#messagecenter-submissions div.actions input{\ margin:1px;\ padding:3px;\ background-color: rgba(255, 255, 255, 0.8);\ color: rgb(39, 41, 44);}\ div#messagecenter-other ul.message-stream li.section-controls:first-child{\ border-bottom: 0px;}\ a#fa_header{\ cursor:default;\ width:100%;\ height:100%;\ background:none;}\ .block-banners{\ border-bottom:0px solid #6A7283;\ height:150px;\ width:100%;\ margin-bottom: 25px;}\ .block-banners p{\ margin: 47px;}\ table.story_submission td{\ font-size: 9pt;\ line-height: 150%;\ padding:15px;\ padding-right:30px;\ padding-left:30px;}\ table.new_journal_entry{\ display:inline-table;}\ table.new_journal_entry > tbody > tr > td:first-child {\ width:auto;\ min-width:140px;}\ li.new_journal_entry{\ border: 0px;\ border-bottom: 1px;\ border-style: dotted;}\ div#messagecenter-other ul.message-stream li.new_journal_entry input{\ bottom:19px;}\ div#messagecenter-other ul.message-stream li.new_journal_entry {\ padding:4px 0 4px 20px;\ margin-top:2px;\ margin-bottom:2px;}\ div.bigger_text_size{\ font-size: 9pt;}\ table.story_submission tbody{\ background-color: rgba(98, 118, 128, 0.2);\ color: ' + text_colour + ';\ font-size: 9pt;}\ div.bbcode_quote{\ border:1px dashed ' + colour_1 + ';}\ A:VISITED, .alt1 A:VISITED, .alt2 A:VISITED, div#messagecenter-other a:visited{\ color:rgb(173, 173, 255);}\ A:LINK, .alt1 A:LINK, .alt2 A:LINK, div#messagecenter-other a:link{\ color:rgb(173, 173, 255); }\ ul.dropdown li A:LINK, ul.dropdown li A:VISITED{\ color:#cfcfcf; }\ .tab a{\ color: ' + text_colour + ';\ border-top: 1px solid ' + colour_1 + ';\ border-left: 1px solid ' + colour_1 + ';\ border-right: 1px solid ' + colour_1 + ';}\ .cat_header a:LINK, a.iconusername:LINK div.newIconDiv, td.alt1_ext table.maintable td.cat:first-child a:LINK,\ .tab a:LINK {\ color:rgb(255, 255, 255);}\ .cat_header a:VISITED, a.iconusername:VISITED div.newIconDiv, td.alt1_ext table.maintable td.cat:first-child a:VISITED,\ .tab a:VISITED {\ color: rgb(255, 255, 255);}\ .tab a:HOVER, a:HOVER{ \ text-decoration: none !important;\ color: #FFFFFF !important;\ text-shadow: 2px 2px 7px #000000;}\ .action-link{\ color: ' + text_colour + '; }\ #controls-journal #journals-list div span a.delete{\ font-weight: bold;\ color: rgb(255, 175, 175); }\ #controls-journal #journals-list div span a.edit{\ font-weight: bold;\ color: rgb(173, 173, 255); }\ div#keywords a, div#keywords a:link, div#keywords a:hover, div#keywords a:visited{\ font-weight: bold;}\ .popup_date, div#messagecenter-other #messages-watches ul.message-stream div.info small span,\ center.flow.userpage-first-submission span.popup_date, center.flow.userpage-first-favorite span.popup_date{\ font-style: italic;\ font-weight: bold;\ color: ' + colour_grey + '; }\ .footer .ads{\ margin-left:0px;}\ div.ads div.in{\ width:auto;}\ div.ads div.ad{\ margin:0 10px;}\ .ldot{\ border-left:1px dotted rgb(175, 175, 175);}\ .bdot{\ border-bottom:1px dotted rgb(175, 175, 175);}\ .tdot{\ border-top:1px dotted rgb(175, 175, 175);}\ form table.maintable_newpm td.alt1.addpad > table.maintable > tbody > tr > td.alt2{\ border-top:1px dotted rgb(175, 175, 175);}\ form > table table.maintable_newpm > tbody > tr > td.alt1.addpad > table.maintable{\ border-bottom:1px dotted rgb(175, 175, 175);}\ font.greyed_font, td.alt1.ldot{\ color:' + colour_grey + ';}\ td.user-contacts div.websites, td.user-contacts div.artsites, td.user-contacts div.instant-messanging, td.user-contacts div.gaming{\ float: left;\ width: 99%;\ min-width:300px;\ margin: 2px 5px 2px 0;}\ td.user-contacts div.instant-messanging td, td.user-contacts div.artsites td, td.user-contacts div.websites td, td.user-contacts div.gaming td,\ td.user-contacts div.instant-messanging th, td.user-contacts div.artsites th, td.user-contacts div.websites th, td.user-contacts div.gaming th{\ padding:2px;\ vertical-align:middle;\ display:table-cell;}\ td.user-contacts div th img, td.user-contacts div th strong {\ vertical-align:middle;}\ td.user-contacts div.instant-messanging th, td.user-contacts div.artsites th, td.user-contacts div.websites th, td.user-contacts div.gaming th {\ width:95px;}\ div#news{\ width:85%;}\ table#admin_notice_do_not_adblock{\ width:70%;}\ a.link_to_userpage {\ margin-top:2px;}\ a.link_to_browse {\ margin-left:5px;}\ td.header_bkg:first-child{\ width:280px;\ padding:3px;}\ td.header_bkg{\ width:auto;}\ td.header_bkg.header_compact{\ width:60px !important;}\ table.table_submission td.alt1_ext object{\ visibility: visible;\ position: relative;\ z-index: 5;}'; //style += 'tbody > tr:first-child > td.cat_header > b{text-shadow: 0 0 10px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 0, 0, 0.3),0 0 10px rgba(0, 0, 0, 0.3),0 0 10px rgba(0, 0, 0, 0.3),0 0 10px rgba(0, 0, 0, 0.3);}'; // icons and other stuff style += ".newBlock{\ max-width:500px;\ overflow:auto;}\ .newBlockHidden{\ max-width:500px;\ overflow:hidden;}\ td.alt1.user-info a.iconusername div.newIconDiv{\ margin-top:6px;\ margin-bottom:6px;}\ a.iconusername_height div{\ padding:10px;}\ .newIconDiv{\ text-align:start;\ margin:2px;\ padding:2px;\ vertical-align:middle;\ display:inline-block;\ background-color: #383838;\ box-shadow:2px 2px 2px #2e2e2e;\ -moz-box-shadow:2px 2px 2px #2a2a2a;\ -webkit-box-shadow:2px 2px 2px #2a2a2a;}\ div.newIconDiv div{\ display:inline-block;\ vertical-align:middle;}\ div.newIconDiv img{\ border-radius:3px;\ vertical-align:middle;\ max-width:50px;\ max-height:50px;}\ .newIcon{\ border:1px solid #333;\ display:inline-block;\ background-color: #383838;\ box-shadow:2px 2px 2px #2e2e2e;\ -moz-box-shadow:2px 2px 2px #2a2a2a;\ -webkit-box-shadow:2px 2px 2px #2a2a2a;}\ .newIcon img{\ max-width: 110px;\ max-height: 110px;\ border-radius:3px;}\ .newMap{\ border:1px solid #333;\ display:inline-block;\ background-color: #383838;\ box-shadow:2px 2px 2px #2e2e2e;\ -moz-box-shadow:2px 2px 2px #2a2a2a;\ -webkit-box-shadow:2px 2px 2px #2a2a2a;}\ .newMap img{\ border-radius:5px;}\ .newAvatar{\ border-radius:7px;\ border:1px solid #333;\ display:inline-block;\ max-width: 150px;\ max-height: 150px;\ background-color: #2E3B41;\ box-shadow:2px 2px 2px #2a2a2a;\ -moz-box-shadow:2px 2px 2px #2a2a2a;\ -webkit-box-shadow:2px 2px 2px #2a2a2a;}\ .newAvatar img{\ border-radius:7px;}\ ul.avatarUl{\ width:100px;}\ ul.avatarUl li{\ width:100px;\ text-align:left;}\ ul.avatarUl li a{\ width:100px;}\ ul.dropdown ul.avatarUl a, ul.dropdown ul li {\ width: auto;}\ ul.dropdown ul.avatarUl a:hover {\ width: auto;}\ table.shoutBlock {\ min-height:140px;}"; GM_addStyle( style ); } function better_icons() { // new look for the icons var list = $( "a.iconusername" ); var i; if( list ) { for (i=0;i'; } } } function better_avatars() { var list = $("td.alt1.bpix.tpix.lpix.rpix.addpad"); var i; var av_td; var av_a; if( list ) { for(i=0;iUser Page'; new_ul.innerHTML += '
  • Gallery
  • '; new_ul.innerHTML += '
  • Journals
  • '; new_ul.innerHTML += '

  • '; new_ul.innerHTML += '
  • Send Note
  • '; } function fix_overflow() { var div = $( "div.no_overflow.alt1" ); if (div) { div.addClass("newBlockHidden"); } } function three_lines() { // threelines var list = $( "center.twolines" ); for ( var i=0; i 0 ) { nsfw = $("li.noblock.sfw-toggle.active"); if ( nsfw.length > 0 ) { nsfw = false; } else { nsfw = true; } } else { nsfw = false; } console.warn( "NSFW status = " + nsfw ); var featured = $( "#featured-submission" ); var featured_exist = true; var watched_by; var is_watching; if ( featured && featured.length > 0 ) { watched_by = $( "table.content.maintable table.maintable" ).get( 6 ); is_watching = $( "table.content.maintable table.maintable" ).get( 7 ); //console.warn("I got the watched/watching"); } else { featured_exist = false; watched_by = $( "table.content.maintable table.maintable" ).get( 5 ); is_watching = $( "table.content.maintable table.maintable" ).get( 6 ); //console.warn("I got the watched/watching"); } var watch_div = document.createElement("div"); add_popup_class( is_watching ); add_popup_class( watched_by ); watch_div.appendChild(is_watching); watch_div.innerHTML+="
    "; watch_div.appendChild(watched_by); var table_journal; if ( featured_exist ) { table_journal = $( "table.content.maintable table.maintable" ).get( 6 ); } else { table_journal = $( "table.content.maintable table.maintable" ).get( 5 ); } //console.warn("I got the journal"); var journal_entry = false; if ( table_journal.innerHTML.indexOf("Posted") > 0 ) { journal_entry = true; table_journal.setAttribute("width","100%"); } var about_user_title = new_block( "About " + user_name, "", "about_block" ); var journal_title = new_block( "Journal", "", "journal_block" ); var shouts_title_block = new_block( "Shouts", "", "shouts_block" ); var user_profile_data = $( "table.content.maintable td.ldot" ).get( 0 ); //console.warn("I got the user profile data"); var data_start = user_profile_data.innerHTML.indexOf("Artist Profile:"); var user_profile = user_profile_data.innerHTML.slice(data_start); user_profile_data.innerHTML = user_profile_data.innerHTML.slice(0,data_start); data_start = user_profile.indexOf(""); user_profile = user_profile.slice( data_start+4 ); user_profile = user_profile.replace(/[<]br[^>]*[>]/,""); //custom background var start_map = user_profile.indexOf(":background"); if ( start_map >= 0 ) { var user_profile_before = user_profile.slice(0,start_map); var user_profile_after = user_profile.slice(start_map+1); var end_block = user_profile_after.indexOf("::"); var end_anchor = user_profile_after.indexOf(""); var background_location = user_profile_after.slice(19,end_block); console.log( "Custom background at: " + background_location ); save_custom_background( background_location, current_user ); user_profile = user_profile_before + user_profile_after.slice(end_anchor+4); } //custom maps var start_map = user_profile.indexOf(":map["); while ( start_map >= 0 ) { var user_profile_before = user_profile.slice(0,start_map); var user_profile_after = user_profile.slice(start_map+1); var end_block = user_profile_after.indexOf("]::"); var map_location = user_profile_after.slice(4,end_block); user_profile = user_profile_before + new_map(map_location) + user_profile_after.slice(end_block+3); start_map = user_profile.indexOf(":map["); } //custom icons var start_icon = user_profile.indexOf(":image["); while ( start_icon >= 0 ) { var user_profile_before = user_profile.slice(0,start_icon); var user_profile_after = user_profile.slice(start_icon+1); var end_block = user_profile_after.indexOf("::"); var end_block_title = user_profile_after.indexOf("]"); // ] var icon_image = user_profile_after.slice(6,end_block_title); //6 var aux_end; aux_end = icon_image.indexOf(""); if ( aux_end > end_block ) { end_block = aux_end; } user_profile = user_profile_before + new_icon(icon_image,icon_link) + user_profile_after.slice(end_block+4); start_icon = user_profile.indexOf(":icon["); } //custom blocks var block_array = []; var sfw_block = true; var start_block = user_profile.indexOf(":block["); if ( start_block < 0 ) { sfw_block = false; start_block = user_profile.indexOf(":nsfw_block["); } while ( start_block >= 0 ) { var user_profile_before = user_profile.slice(0,start_block); var user_profile_after = user_profile.slice(start_block+1); var end_block = user_profile_after.indexOf("::"); // : user_profile = user_profile_before + user_profile_after.slice(end_block+2); user_profile_after = user_profile_after.slice(0,end_block); var end_block_title = user_profile_after.indexOf("]["); var position_block = "right"; var user_profile_title; if ( end_block_title > 0 ) { start_block = end_block_title; if ( sfw_block ) { user_profile_title = user_profile_after.slice(6,end_block_title); } else { user_profile_title = user_profile_after.slice(11,end_block_title); } user_profile_after = user_profile_after.slice(end_block_title+1); end_block_title = user_profile_after.indexOf("]"); position_block = user_profile_after.slice(1,end_block_title); if ( position_block != "left" && position_block != "right" ) { position_block = "right"; } } else { end_block_title = user_profile_after.indexOf("]"); if ( sfw_block ) { user_profile_title = user_profile_after.slice(6,end_block_title); } else { user_profile_title = user_profile_after.slice(11,end_block_title); } } var user_profile_block = user_profile_after.slice(end_block_title+1); user_profile_block = user_profile_block.replace(/[<]br[^>]*[>]/,""); console.log("Adding block: " + user_profile_title + " at position: " + position_block ); block_array[array_index] = [ user_profile_title, user_profile_block, position_block, sfw_block ]; array_index += 1; start_block = user_profile.indexOf(":block["); sfw_block = true; if ( start_block < 0 ) { sfw_block = false; start_block = user_profile.indexOf(":nsfw_block["); } } user_profile = new_block( "User Profile", user_profile ); var statistics_outside = $( "table.content.maintable td.bdot" ).get( 0 ); statistics_outside = statistics_outside.parentNode; statistics_outside = statistics_outside.parentNode; //console.warn("I got the statistics"); var stat_start = statistics_outside.innerHTML.indexOf(""); var statistics = statistics_outside.innerHTML.slice(stat_start); var stat_start = statistics.indexOf(""); var stat_end = statistics.indexOf(""); statistics = statistics.slice(stat_start,stat_end); statistics = statistics.replace(//g,""); statistics = new_block_wide( "Statistics", statistics ); statistics_outside = statistics_outside.parentNode; statistics_outside = statistics_outside.parentNode; statistics_outside.parentNode.removeChild(statistics_outside); var profile_id = $( "#profilepic-submission" ); if ( profile_id && profile_id.length > 0 ) { profile_id = profile_id[0]; profile_id = profile_id.parentNode; profile_id = profile_id.parentNode; profile_id = profile_id.parentNode; var profile_html = '' + profile_id.innerHTML + '
    '; profile_id.parentNode.removeChild(profile_id); profile_id = profile_html; } else { //nothing } var art_block = $( "table.content.maintable center.userpage-first-submission"); if (art_block && art_block.length > 0 ) { art_block = art_block.get( 0 ); } else { art_block = $( "table.content.maintable center.userpage-favorites").get( 0 ); } //console.warn("I got the submissions and favorites"); art_block = art_block.parentNode; art_block = art_block.parentNode; art_block = art_block.parentNode; art_block = art_block.parentNode; art_block = art_block.parentNode; var user_info = $("table.content.maintable td.user-info").get(0); user_info = user_info.parentNode; user_info = user_info.parentNode; user_info = user_info.parentNode; var user_info_empty = false; var user_info_string = user_info.childNodes[1].childNodes[2].childNodes[1].innerHTML; if ( user_info_string.indexOf("a") < 0 && user_info_string.indexOf("e") < 0 ) { user_info_empty = true; } var table_right = user_info.parentNode; var user_contact = $("table.content.maintable td.user-contacts"); if ( user_contact.length > 0 ) { user_contact = user_contact[0]; user_contact = user_contact.parentNode; user_contact = user_contact.parentNode; user_contact = user_contact.parentNode; } else { user_contact = false; } var shouts_title = $("table.content.maintable td.cat b:textEquals('Shouts')"); if ( shouts_title.length > 0 ) { shouts_title = shouts_title[0]; shouts_title = shouts_title.parentNode; shouts_title.className = "cat_header"; shouts_title = shouts_title.parentNode; shouts_title = shouts_title.parentNode; shouts_title = shouts_title.parentNode; } else { shouts_title = false; } if ( shouts_title ) { $( shouts_title ).nextAll( "table.maintable" ).addClass( "shoutBlock" ); } if ( my_userpage > 0 ) { var shouts = $(".shoutBlock table.maintable td.lead.addpad b a" ); for ( array_index=0; array_index reply
    '; } } table_old.setAttribute("width","99%"); var new_td; if ( compact_mode ) { new_td = table_old_container; } else { new_td = document.createElement("td"); td_element.parentNode.appendChild(new_td); new_td.setAttribute("width","50%"); new_td.setAttribute("valign","top"); new_td.setAttribute("align","right"); table_old_container.setAttribute("width","50%"); } //adds user profile to the right new_td.appendChild( new_element( user_profile ) ); new_td.appendChild( new_br() ); //adds custom blocks for( array_index=0; array_index