httpswitchboard icon indicating copy to clipboard operation
httpswitchboard copied to clipboard

User Agent Spoofing and XML files causes script text to appear on page

Open petergeneric opened this issue 10 years ago • 2 comments

Using version 0.9.4.1, when viewing an XML file (e.g. http://www.w3schools.com/xml/note.xml ), the contents of the httpsb-ua-spoofer script element appears as text at the bottom of the page.

petergeneric avatar May 19 '14 09:05 petergeneric

i tried document.head.appendChild(script); and it keeps the script from showing in the body of the of the page when its a file.

my-password-is-password avatar May 19 '14 12:05 my-password-is-password

If I remember correctly, when I used document.head.appendChild(script); (or body) originally, the spoofing from client scripts point of view wasn't working.

gorhill avatar May 19 '14 12:05 gorhill