function searchSelectedWith(se, onlyThisSite, interactive, alias) {
        clipboard.read(function(response) {
            var query = window.getSelection().toString() || response.data;
            if (onlyThisSite) {
                query = "site:" + window.location.hostname + " " + query;
            }
            if (interactive) {
                front.openOmnibar({type: "SearchEngine", extra: alias, pref: query});
            } else {
                tabOpenLink(constructSearchURL(se, encodeURIComponent(query)));
            }
        });
    }
Search selected with.

@param {string} se a search engine's search URL
@param {boolean} [onlyThisSite=false] whether to search only within current site, need support from the provided search engine.
@param {boolean} [interactive=false] whether to search in interactive mode, in case that you need some small modification on the selected content.
@param {string} [alias=""] only used with interactive mode, in such case the url from `se` is ignored, SurfingKeys will construct search URL from the alias registered by `addSearchAlias`.

@example
searchSelectedWith('https://translate.google.com/?hl=en#auto/en/');