User:Dipankan001/Source checker.js

addOnloadHook(start_sourcecheck); //Initiates the script on page load

function start_sourcecheck{ //Begins the script mw.util.addPortletLink('p-tb', 'javascript:freesearch_form', 'Search Reliable Sources', 'tb-sourcesearch', 'Find reliable sources'); //Add link in toolbox }

function freesearch_form{ var floatbox = new Floatbox("Reliable Source finder version 1.1");

var mainform = floatbox.create_form; mainform.setAttribute("action", "javascript:freesearch_eval;");

var searchterm = floatbox.form_input("text", "searchterm"); searchterm.value = ;

floatbox.form_append("label", "Search term(s)");

floatbox.form_append("br");

var submitbutton = floatbox.form_input("submit", "submit"); submitbutton.value = "Find reliable sources"; }

function freesearch_eval{ var w = window.open("https://www.google.co.in/search?hl=en&tbm=nws&q="+wgPageName); ); }