Skip to content
This repository was archived by the owner on May 3, 2019. It is now read-only.

Add a function to change the user agent in the settings #102

Closed
ZeroDot1 opened this issue Aug 17, 2017 · 15 comments
Closed

Add a function to change the user agent in the settings #102

ZeroDot1 opened this issue Aug 17, 2017 · 15 comments
Assignees
Labels
Milestone

Comments

@ZeroDot1
Copy link
Contributor

ZeroDot1 commented Aug 17, 2017

A simple input field where you can enter and use an individual user agent.
And Proposed Useragents:

  • Chrome
  • Chrome Mobile
  • Opera
  • Firefox
  • iPhone
  • Android
  • Linux/Windows/Mac

MellowPlayer Useragent [as standard]

  • Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36 MellowPlayer/3.1.0

More:

http://www.useragentstring.com/pages/useragentstring.php

@ColinDuquesnoy
Copy link
Owner

That could be useful. I will add it in version 3.1.

@ColinDuquesnoy ColinDuquesnoy added this to the 3.1 milestone Aug 17, 2017
@ColinDuquesnoy ColinDuquesnoy self-assigned this Aug 17, 2017
@ZeroDot1
Copy link
Contributor Author

Thank you very much :)

@ZeroDot1
Copy link
Contributor Author

ZeroDot1 commented Aug 19, 2017

I created a plugin to test the function. The plugin displays the user agent via a page.

Screenshot:
bildschirmfoto_2017-08-19_14-36-03

Below you see the objects contained by the object navigator. These variables can be read out and give information about the browser and computer of your users.

navigator.vendorSub = 
navigator.productSub = 20030107
navigator.vendor = Google Inc.
navigator.maxTouchPoints = 0
navigator.hardwareConcurrency = 2
navigator.cookieEnabled = true
navigator.appCodeName = Mozilla
navigator.appName = Netscape
navigator.appVersion = 5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36
navigator.platform = Linux x86_64
navigator.product = Gecko
navigator.userAgent = Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36
navigator.language = de
navigator.languages = de-DE,de,en-US,en
navigator.onLine = true
navigator.doNotTrack = null
navigator.geolocation = [object Geolocation]
navigator.mediaDevices = [object MediaDevices]
navigator.plugins = [object PluginArray]
navigator.mimeTypes = [object MimeTypeArray]
navigator.webkitTemporaryStorage = [object DeprecatedStorageQuota]
navigator.webkitPersistentStorage = [object DeprecatedStorageQuota]
navigator.serviceWorker = [object ServiceWorkerContainer]
navigator.getBattery = function getBattery() { [native code] }
navigator.sendBeacon = function sendBeacon() { [native code] }
navigator.getGamepads = function getGamepads() { [native code] }
navigator.webkitGetUserMedia = function webkitGetUserMedia() { [native code] }
navigator.javaEnabled = function javaEnabled() { [native code] }
navigator.vibrate = function vibrate() { [native code] }
navigator.requestMIDIAccess = function requestMIDIAccess() { [native code] }
navigator.budget = [object BudgetService]
navigator.permissions = [object Permissions]
navigator.presentation = [object Presentation]
navigator.getUserMedia = function getUserMedia() { [native code] }
navigator.registerProtocolHandler = function registerProtocolHandler() { [native code] }
navigator.unregisterProtocolHandler = function unregisterProtocolHandler() { [native code] }
navigator.credentials = [object CredentialsContainer]
navigator.storage = [object StorageManager]
navigator.requestMediaKeySystemAccess = function () { [native code] }

@ColinDuquesnoy
Copy link
Owner

Thank you. This will be helpful.

@ZeroDot1
Copy link
Contributor Author

I have updated the page, the information is now displayed better.
Screenshot:
bildschirmfoto_2017-08-22_20-40-51

@ColinDuquesnoy
Copy link
Owner

Thank you!

@ZeroDot1
Copy link
Contributor Author

I have re-created the entire plugin. Here is the link: https://goo.gl/Ka7mCb

Download:
UAT by ZeroDot1.zip

Screenshot:
bildschirmfoto_2017-09-11_17-06-05

@ZeroDot1
Copy link
Contributor Author

@ColinDuquesnoy
Copy link
Owner

ColinDuquesnoy commented Sep 11, 2017

I have re-created the entire plugin. Here is the link: https://goo.gl/Ka7mCb

Thank you. There is a lot of valuable information. The colors are a bit weird, may I suggest to use colors from the default style (or from MellowPlayer official website)?

Spotify removes support for Apple browser:

That's unfortunate :-( Maybe we need a way for plugins to list the supported platforms (update: I created issue #115 )

@ZeroDot1
Copy link
Contributor Author

You are welcome to change the style of the page, because I uploaded it to Github so that everyone can contribute to it. https://github.com/ZeroDot1/UAT/
https://github.com/ZeroDot1/UAT/blob/master/css/goldenhour.css

@ZeroDot1
Copy link
Contributor Author

@ColinDuquesnoy
Copy link
Owner

Ok. I'll have a look.

@ZeroDot1
Copy link
Contributor Author

I adjusted the colors.
bildschirmfoto_2017-09-12_16-17-37

@ColinDuquesnoy
Copy link
Owner

I added a user agent setting. This is just a simple text field where you can type in your customised user agent string. I haven't added a combo box of most commonly used user agents because this would be too much maintenance on my side (strings change regularly and even http://www.useragentstring.com/pages/useragentstring.php is not up to date).

useragentsetting

I used your UAT website, it was really helpful:

uat

@ZeroDot1
Copy link
Contributor Author

ZeroDot1 commented Oct 1, 2017

Thank you for adding the feature. The German translation is finished.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants