Bewertungen für Header Editor
Header Editor von 泷涯, 道滿
Bewertungen von SkySkimmer
Bewertet mit 4 von 5 Sternen
von SkySkimmer, vor 8 Jahrenthuerrsch 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 Bewertungen
- Bewertet mit 5 von 5 Sternenvon Roman Ilin, vor einem TagIt 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! - Bewertet mit 5 von 5 Sternenvon 肉肉, vor 9 Monaten
- Bewertet mit 4 von 5 Sternenvon 张武杰, vor 9 Monaten1、此附加组件的效果达到预期
2、插件有用
3、修改cookie使用不方便,别的还可以
4、未找到代替的插件前会使用 - Bewertet mit 5 von 5 Sternenvon Firefox-Benutzer 14492264, vor 10 Monaten
- Bewertet mit 5 von 5 Sternenvon Firefox-Benutzer 16874451, vor 10 Monaten
- Bewertet mit 5 von 5 Sternenvon Poligraf Poligrafovich Bouboulov, vor einem Jahr
- Bewertet mit 5 von 5 Sternenvon Tempdirz, vor einem Jahr
- Bewertet mit 5 von 5 Sternenvon 墨水, vor einem Jahr
- Bewertet mit 5 von 5 Sternenvon mijni, vor 2 Jahren
- Bewertet mit 5 von 5 Sternenvon Remains, vor 2 Jahren
- Bewertet mit 5 von 5 Sternenvon 38咿, vor 2 Jahren
- Bewertet mit 5 von 5 Sternenvon lundbelt, vor 2 Jahren
- Bewertet mit 5 von 5 Sternenvon 野锡侧, vor 2 Jahren
- Bewertet mit 5 von 5 Sternenvon Firefox-Benutzer 17968901, vor 2 Jahren
- Bewertet mit 5 von 5 Sternenvon tyt199, vor 2 Jahren
- Bewertet mit 5 von 5 Sternenvon Jessica45Jim, vor 2 Jahren
- Bewertet mit 5 von 5 Sternenvon Jesse, vor 2 Jahren
- Bewertet mit 5 von 5 Sternenvon Footmen, vor 2 JahrenIt's great but please update a new version and enable Android support, it's completely compatible with Android.