User:Tim4christ17/vector.js

// Please leave the following line // user:Where/usertabs jQuery(document).ready(function { if (wgTitle.indexOf("/") != -1 || document.title.indexOf("- History -") != -1)  //no subpages or history     return;  if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {     var username = encodeURIComponent( wgTitle );     mw.util.addPortletLink("p-cactions", "http://toolserver.org/~soxred93/count/index.php?name=" + username + "&lang=en&wiki=wikipedia", "Edit count", "ca-editcount", "Edit count");     mw.util.addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Log&type=move&user=" + username, "Page moves", "ca-pagemoves", "Page moves by this user");     mw.util.addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Log&type=block&page=User:" + username, "Blocks received", "ca-blog", "Blocks received by this user");     mw.util.addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Log&type=rights&page=User:" + username, "User rights log", "", "User rights log"); mw.util.addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Prefixindex&from=" + username + "/&namespace=2", "Userspace", "", "List of pages in this user's userspace"); } });

// importScript('User:TheDJ/qui.js');

// importScript('User:Alex Smotrov/wlunwatch.js');

// function embedFeedbackDashboard { var embed_feedback_dashboard_div = document.getElementById( 'fg-test-feedback-dashboard-embed' ); if (embed_feedback_dashboard_div) { var embed_feedback_dashboard_req; if(window.XMLHttpRequest) { embed_feedback_dashboard_req = new XMLHttpRequest; } else { embed_feedback_dashboard_req = new ActiveXObject( 'Microsoft.XMLHTTP' ); }		embed_feedback_dashboard_req.onreadystatechange=function { if((embed_feedback_dashboard_req.readyState == 4) && (embed_feedback_dashboard_req.status == 200)) { var embed_feedback_dashboard_str = embed_feedback_dashboard_req.responseText;

//////////// Not entirely certain about this style of quoting. Should be ok though. ////////////				var embed_feedback_dashboard_pos = embed_feedback_dashboard_str.indexOf( 'id="bodyContent"' )+17;

embed_feedback_dashboard_str = embed_feedback_dashboard_str.substr(embed_feedback_dashboard_pos); embed_feedback_dashboard_pos = embed_feedback_dashboard_str.indexOf( '' ); embed_feedback_dashboard_str = embed_feedback_dashboard_str.substr(0, embed_feedback_dashboard_pos); embed_feedback_dashboard_div.innerHTML = embed_feedback_dashboard_str; }		}		embed_feedback_dashboard_req.open('GET', '/wiki/Special:FeedbackDashboard', true); embed_feedback_dashboard_req.send; } } jQuery(document).ready(embedFeedbackDashboard);