User:Titodutta/scripts/SearchHelper.js: Difference between revisions

Content deleted Content added
fmt
Add
Line 17:
}
var newNode = " <a href='http://www.google.com/search?q=" + encodeURIComponent(subjectName.replace(/_/g, " ")).replace(/'/g,"%27") + "+-wikipedia.org' target='_blank'><span style='font-size:x-small;'>Google search</span></a>"
$("#firstHeading").append(newNode);
var newNode = " <a href='https://news.google.com/search?q=" + encodeURIComponent(subjectName.replace(/_/g, " ")).replace(/'/g,"%27") + "+-wikipedia.org' target='_blank'><span style='font-size:x-small;'>Google News</span></a>"
$("#firstHeading").append(newNode);
var newNode = " <a href='https://www.google.com/search?tbm=bks&q=" + encodeURIComponent(subjectName.replace(/_/g, " ")).replace(/'/g,"%27") + "+-wikipedia.org' target='_blank'><span style='font-size:x-small;'>Google Books</span></a>"
$("#firstHeading").append(newNode);
var newNode = " <a href='https://www.google.com/search?tbm=isch&q=" + encodeURIComponent(subjectName.replace(/_/g, " ")).replace(/'/g,"%27") + "' target='_blank'><span style='font-size:x-small;'>Google images</span></a>"