Recenze doplňku Header Editor
Header Editor od 泷涯, 道滿
Recenze od uživatele SkySkimmer
Hodnocení: 4 z 5
od uživatele SkySkimmer, před 7 letythuerrsch said
>Here I set up a single, simple rule to "Modify the response header", match type "All", execute type "normal", to always set the "Content-Disposition" header type to a value of "inline". That's it, two minutes to set up the whole thing, and it works beautifully!
This is also what I wanted to use this extension for, but this simple solution will remove the filename information which may be passed in that header. Instead I used the following custom function which mostly works. Note that the "tobytes" call is necessary otherwise on unicode strings firefox complains about too-high charcodes.
function tobytes (str) {
let res = "";
for (let i = 0; i < str.length; ++i) {
let code = str.charCodeAt(i);
if (code > 255) {
res += encodeURI(str[i]);
}
else {
res += str[i];
}
}
return res;
}
for (let a in val) {
if (val[a].name.toLowerCase() === 'content-disposition') {
let orig = val[a].val
console.log("orig: " + val[a].value);
let res = val[a].value.replace(/^attachment/iu, "inline");
res = tobytes(res);
console.log("res: " + res);
val[a].value = res;
}
}
>Here I set up a single, simple rule to "Modify the response header", match type "All", execute type "normal", to always set the "Content-Disposition" header type to a value of "inline". That's it, two minutes to set up the whole thing, and it works beautifully!
This is also what I wanted to use this extension for, but this simple solution will remove the filename information which may be passed in that header. Instead I used the following custom function which mostly works. Note that the "tobytes" call is necessary otherwise on unicode strings firefox complains about too-high charcodes.
function tobytes (str) {
let res = "";
for (let i = 0; i < str.length; ++i) {
let code = str.charCodeAt(i);
if (code > 255) {
res += encodeURI(str[i]);
}
else {
res += str[i];
}
}
return res;
}
for (let a in val) {
if (val[a].name.toLowerCase() === 'content-disposition') {
let orig = val[a].val
console.log("orig: " + val[a].value);
let res = val[a].value.replace(/^attachment/iu, "inline");
res = tobytes(res);
console.log("res: " + res);
val[a].value = res;
}
}
181 recenzí
- Hodnocení: 5 z 5od uživatele 肉肉, před 11 dny
- Hodnocení: 4 z 5od uživatele 张武杰, před 13 dny1、此附加组件的效果达到预期
2、插件有用
3、修改cookie使用不方便,别的还可以
4、未找到代替的插件前会使用 - Hodnocení: 5 z 5od uživatele Uživatel Firefoxu - 14492264, před 2 měsíci
- Hodnocení: 5 z 5od uživatele Uživatel Firefoxu - 16874451, před 2 měsíci
- Hodnocení: 5 z 5od uživatele Poligraf Poligrafovich Bouboulov, před 3 měsíci
- Hodnocení: 5 z 5od uživatele Tempdirz, před 6 měsíci
- Hodnocení: 1 z 5od uživatele Naz, před 8 měsíciYou have 1 job - add a header. Why are you substituting my header to lowercase without me wanting to do so?
- Hodnocení: 5 z 5od uživatele 墨水, před 9 měsíci
- Hodnocení: 5 z 5od uživatele mijni, před rokem
- Hodnocení: 5 z 5od uživatele Remains, před rokem
- Hodnocení: 5 z 5od uživatele 38咿, před rokem
- Hodnocení: 5 z 5od uživatele lundbelt, před rokem
- Hodnocení: 5 z 5od uživatele 野锡侧, před rokem
- Hodnocení: 5 z 5od uživatele Uživatel Firefoxu - 17968901, před rokem
- Hodnocení: 5 z 5od uživatele tyt199, před 2 lety
- Hodnocení: 5 z 5od uživatele Jessica45Jim, před 2 lety
- Hodnocení: 5 z 5od uživatele Jesse, před 2 lety
- Hodnocení: 5 z 5od uživatele Footmen, před 2 letyIt's great but please update a new version and enable Android support, it's completely compatible with Android.
- Hodnocení: 5 z 5od uživatele Uživatel Firefoxu - 18084131, před 2 lety
- Hodnocení: 5 z 5od uživatele Uživatel Firefoxu - 18032280, před 2 lety