Is it possible to change the userAgent for a specific window in a bookmarklet? Essentially, I'm trying to create search bookmarklets for personal use that pop up a webpage in a small window for quick reference. Naturally, a mobile (Android, iOS) optimised wbepage works best here. For websites that still redirect to an m.foo.bar.com subdomain after checking the user agent once, this is easy as pie, but for sites that check the user agent per request, I can't seem to do a thing.
No, you can't manipulate useragent that way. However, you can always change the useragent for specific site from the console (hit F12) of the browser. Hope that helps. :)
Is it possible to change the userAgent for a specific window in a bookmarklet? Essentially, I'm trying to create search bookmarklets for personal use that pop up a webpage in a small window for quick reference. Naturally, a mobile (Android, iOS) optimised wbepage works best here. For websites that still redirect to an m.foo.bar.com subdomain after checking the user agent once, this is easy as pie, but for sites that check the user agent per request, I can't seem to do a thing.
ReplyDeleteCheers!
No, you can't manipulate useragent that way. However, you can always change the useragent for specific site from the console (hit F12) of the browser. Hope that helps. :)
Delete