Gmail 行動網站搜尋頁面上的 Firefox「格式不正確」錯誤

Gmail 行動網站搜尋頁面上的 Firefox「格式不正確」錯誤

我在桌面 Firefox 瀏覽器上透過一組以https://mail.google.com/mail/u/0/x/。最近(大約 4-5 天前),電子郵件搜尋頁面(我已將其加入書籤)https://mail.google.com/mail/u/0/x/18ffn87o67mlt-/?&v=srch)開始給我這個錯誤:

XML Parsing Error: not well-formed
Location: https://mail.google.com/mail/u/0/x/1p6790md7rs8l-/?&v=srch
Line Number 6, Column 38:
for(i=0;i<searchButtonElements.length;i++)searchButtonElements[i].onclick=function(event){var urlParams={"s":"q","q":document.getElementById("sbq").value};urlParams[event.target.getAttribute("name")]=event.target.getAttribute("value");var encodedParams=[];for(var param in urlParams)encodedParams.push(encodeURIComponent(param)+"\x3d"+encodeURIComponent(urlParams[param]));document.getElementById("sbf").setAttribute("action","?"+encodedParams.join("\x26"))};
-------------------------------------^

如果我檢查錯誤頁面的來源,則會顯示 Gmail 搜尋頁面的實際來源。

我沒有對本機 Firefox 安裝/擴充功能/腳本進行任何更改。錯誤是突然出現的。

同一 Gmail 行動網站的其他頁面運作正常。如果我嘗試從任何這些頁面存取搜尋功能,我會收到與上述相同的錯誤頁面。

我的問題是,有沒有辦法配置 Firefox XML 解析器(無需從原始程式碼重建它:))以使其忽略上述錯誤? (該錯誤發生在 JavaScript 片段(由<script>...</script>標籤包圍)內,因此我認為 XML 解析器甚至不應該關心它。)

或者,有沒有辦法攔截瀏覽器的資源載入過程,以便我可以編寫自訂處理程序來修改(修復)頁面的原始內容,然後再由解析器解析?

提前致謝。

相關內容