Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add wikipedia links to search results on Nutrimatic
var term = span.innerText;
var url = ''+ term.replace(/\s/g,'+')
span.innerHTML = '<a target="_blank" href="'+ url +'">'+ term +'</a>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.