consttoken=globalRegistry.get('config').api.get('settings/gist-access-token')// TODO replace with the plugin call above https://github.com/ethereum/remix-ide/issues/2288
param+=token?'access_token='+token:''
constregex=path.match(/blob\/([^/]+)\/(.*)/)
if(regex){
// if we have /blob/master/+path we extract the branch name "master" and add it as a parameter to the github api