WorkFindy Code

Version 1.8

javascript:(function(){
    var sel=window.getSelection().toString();
    if(sel){
        var find=sel;
    }
    else{
        var find=prompt('Search WorkFlowy:','');
    }
    if(find===null){
        return;
    }
    else{
        var search='https://workflowy.com/#/?q='+encodeURIComponent(find).replace(/%20/g,'%2B');
        if(find==""){
            var search='https://workflowy.com/#';
        }
        if (location.href.indexOf('workflowy.com/#') === -1){
            window.open(search);
        }
        else{
            location.href=search;
        }
    }
})()
Advertisements