Skip to Content

showSuggestedGCSEPage()

Show the suggested Google Custom Search Engine page when applicable.

JavaScript July 2, 2019

Usage

JavaScript
nebula.showSuggestedGCSEPage(title, url)

Parameters

title
(Required) (String) The title of the search result
Default: None

url
(Required) (String) The URL of the search result
Default: None

Request or provide clarification »

Source File

Located in /assets/js/nebula.js on line 2390.

JavaScript
nebula.showSuggestedGCSEPage = function(title, url){
    var hostname = new RegExp(location.host);
    if ( hostname.test(url) ){
        jQuery('.gcse-suggestion').attr('href', url).text(title);
        jQuery('#nebula-drawer.suggestedpage').slideDown();
        nebula.prefetch(url);
    }
};

Override

To override or disable this JavaScript function, simply redeclare it with the exact same function name.

JavaScript
nebula.showSuggestedGCSEPage = function(title, url){
    //Write your own code here, leave it blank, or return false.
}