Pedal-Intelligence / saypi-userscript

An independent voice interface for Inflection AI's conversational assistant, Pi
https://www.saypi.ai/
Other
17 stars 4 forks source link

Userscript not prompting for install #3

Closed rosscado closed 1 year ago

rosscado commented 1 year ago

When clicking the link to the saypi.js userscript from the www.saypi.ai website's index.html page, the browser (Chrome or Edge) displays the contents of the script, but the installed Tampermonkey userscript manager extension doesn't prompt me to install the script. The response headers look like this:

HTTP/1.1 200 OK
Server: Cowboy
Connection: keep-alive
Content-Disposition: inline; filename="saypi.js"
Accept-Ranges: bytes
Etag: "4d4d24f0261e227e2e0beebad17b2459b73e1309"
Content-Type: application/javascript; charset=utf-8
Vary: Accept-Encoding
Content-Encoding: gzip
Date: Tue, 25 Jul 2023 21:15:56 GMT
Transfer-Encoding: chunked
Via: 1.1 vegur

And yet, when I inspect the DOM, the browser seems to be automatically wrapping the JS in a HTML <pre> element.