/*
* @title PDimg
* @description search PD image from wikimedia.org
* @include http://*
* @license MIT License http://nrm.mit-license.org/2012
* @require
*/
(function () {
var words;
if (!(words = prompt('words?'))) return;
var conf = {
engine: 'https://encrypted.google.com/search?tbm=isch&q=',
site: 'site:wikimedia.org'
};
var query = [
conf.site,
'public domain',
words
].join(' ');
location.href = conf.engine + encodeURI(query);
//console.info(conf.engine + encodeURI(query));
})();