Recenzie doplnku Header Editor
Header Editor Autor: 泷涯, 道滿
Recenzia od používateľa SkySkimmer
Hodnotenie: 4 z 5
autor: SkySkimmer, pred 8 rokmithuerrsch 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;
}
}
183 recenzií
- Hodnotenie: 5 z 5autor: Roman Ilin, pred mesiacomIt just works.
They even took performance into account and disabled the "Modify response body" feature by default, although they made it easy to enable.
The UI is user-friendly and pleasant.
No nonsense.
Absolutely love it.
Give it a star on GitHub! - Hodnotenie: 5 z 5autor: 肉肉, pred 10 mesiacmi
- Hodnotenie: 4 z 5autor: 张武杰, pred 10 mesiacmi1、此附加组件的效果达到预期
2、插件有用
3、修改cookie使用不方便,别的还可以
4、未找到代替的插件前会使用 - Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 14492264, pred rokom
- Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 16874451, pred rokom
- Hodnotenie: 5 z 5autor: Poligraf Poligrafovich Bouboulov, pred rokom
- Hodnotenie: 5 z 5autor: Tempdirz, pred rokom
- Hodnotenie: 5 z 5autor: 墨水, pred 2 rokmi
- Hodnotenie: 5 z 5autor: mijni, pred 2 rokmi
- Hodnotenie: 5 z 5autor: Remains, pred 2 rokmi
- Hodnotenie: 5 z 5autor: 38咿, pred 2 rokmi
- Hodnotenie: 5 z 5autor: lundbelt, pred 2 rokmi
- Hodnotenie: 5 z 5autor: 野锡侧, pred 2 rokmi
- Hodnotenie: 5 z 5autor: Používateľ Firefoxu - 17968901, pred 2 rokmi
- Hodnotenie: 5 z 5autor: tyt199, pred 2 rokmi
- Hodnotenie: 5 z 5autor: Jessica45Jim, pred 2 rokmi
- Hodnotenie: 5 z 5autor: Jesse, pred 2 rokmi
- Hodnotenie: 5 z 5autor: Footmen, pred 2 rokmiIt's great but please update a new version and enable Android support, it's completely compatible with Android.