RedAlan. Los Blogs

Monday, January 11, 2021

Bookmarklet Search Here

What is a Bookmarklet? A "Bookmark" for your browser, which instead of a url address contains a javascript code to use in the page you are visiting. This way you can get certain utilities without having to install addons and they work in most browsers. To ADD IT you only have to drag the link containing the Bookmarklet to your favourites bar.

 "Search Here" is a Bookmarklet that allows you to search with Google for something in the current domain you are visiting. Drag the link to your bookmarks bar and it will be available to you.

Source code:

javascript:
busqueda = prompt('Redalan.net - search with google on '+document.domain,'');
if (busqueda > '') {
open('http://www.google.es/search?hl=es&q='+busqueda + ' site:' + document.domain);
} else {
null;
};

No comments:

Post a Comment