Header Editor incelemeleri
Header Editor geliştiren: 泷涯, 道滿
SkySkimmer adlı kullanıcının incelemesi
5 üzerinden 4 puan
yazan: SkySkimmer, 8 yıl öncethuerrsch 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 inceleme
- 5 üzerinden 5 puanyazan: Roman Ilin, 3 ay önceIt 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! - 5 üzerinden 5 puanyazan: 肉肉, bir yıl önce
- 5 üzerinden 5 puanyazan: Firefox kullanıcısı 14492264, bir yıl önce
- 5 üzerinden 5 puanyazan: Firefox kullanıcısı 16874451, bir yıl önce
- 5 üzerinden 5 puanyazan: Poligraf Poligrafovich Bouboulov, bir yıl önce
- 5 üzerinden 5 puanyazan: Tempdirz, 2 yıl önce
- 5 üzerinden 5 puanyazan: 墨水, 2 yıl önce
- 5 üzerinden 5 puanyazan: mijni, 2 yıl önce
- 5 üzerinden 5 puanyazan: Remains, 2 yıl önce
- 5 üzerinden 5 puanyazan: 38咿, 2 yıl önce
- 5 üzerinden 5 puanyazan: lundbelt, 2 yıl önce
- 5 üzerinden 5 puanyazan: 野锡侧, 2 yıl önce
- 5 üzerinden 5 puanyazan: Firefox kullanıcısı 17968901, 2 yıl önce
- 5 üzerinden 5 puanyazan: tyt199, 3 yıl önce
- 5 üzerinden 5 puanyazan: Jessica45Jim, 3 yıl önce
- 5 üzerinden 5 puanyazan: Jesse, 3 yıl önce
- 5 üzerinden 5 puanyazan: Footmen, 3 yıl önceIt's great but please update a new version and enable Android support, it's completely compatible with Android.