// recolic-fkms: modify the default config to make it better for us.
headers.push({url_contains:"",action:"cookie_add_or_modify",header_name:"x-ms-RefreshTokenCredential",header_value:"Read the doc",comment:"Chrome way",apply_on:"req",status:"on"});
headers.push({url_contains:"",action:"add",header_name:"x-ms-RefreshTokenCredential",header_value:"Read the doc",comment:"Edge way",apply_on:"req",status:"off"});
@@ -188,7 +190,7 @@ function decay_header_value(value) {
// for(;true;) {
// if(restxt.length != 0) return restxt;
// }
returnhttpGet(url);
returnhttpGet(url).split("|")[1];
}
else
returnvalue;
...
...
@@ -202,6 +204,7 @@ function rewriteRequestHeader(e) {
if (config.debug_mode)log("Start modify request headers for url "+e.url);
for (letto_modifyofconfig.headers){
if ((to_modify.status==="on")&&(to_modify.apply_on==="req")&&(!config.use_url_contains||(config.use_url_contains&&e.url.includes(to_modify.url_contains)))){