Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Lots of new detection and shiny things#76

Merged
gabrielbull merged 3 commits into
sinergi:7.0.0from
Lokomojo:master
Apr 6, 2017
Merged

Lots of new detection and shiny things#76
gabrielbull merged 3 commits into
sinergi:7.0.0from
Lokomojo:master

Conversation

@Lokomojo

Copy link
Copy Markdown

!! BREAKING CHANGES !!

  • Removed $isRobot, setIsRobot(), getIsRobot(), isRobot(), checkBrowserRobot()

  • Replaced above with detectScriptedAgent()

  • Added a new ScriptedAgent class with detection for bots, spiders, etc

  • Added isWebkit(), getIsWebkit(), setIsWebkit()

    NOTE: TODO: Should add proper browser engine detection (Webkit, Gecko, Trident, etc)

  • Added $isTwitterWebView, setIsTwitterWebView(), getIsTwitterWebView(), isTwitterWebView();

  • Added browser detection for UC Browser

  • Added browser detection for NSPlayer (Windows Media Player)

  • Added OS detection for NSPlayer (Windows Media Player)

  • Added browser detection for Microsoft Office

  • Added browser detection for the Apple News app

  • Added browser detection for the Dalvik (Android) OS

  • Moved wkHTMLtoPDF to scripted agents and removed the test accordingly

  • Moved GoogleBot to scripted agents

  • Moved Slurp to scripted agents

  • Moved W3CValidator to scripted agents

  • Moved MSNBot to scripted agents

  • Renamed "Navigator" to "Android Navigator" for clarity

  • Strip linebreaks in setVersion (fixes a failng test)

  • Added .idea to the gitignore (I use PHPstorm, don't be a hater)

TODO: Tests for new class

* Removed $isRobot, setIsRobot(), getIsRobot(), isRobot(), checkBrowserRobot()
* Replaced above with detectScriptedAgent()
* Added a new ScriptedAgent class with detection for bots, spiders, etc
* Added isWebkit(), getIsWebkit(), setIsWebkit()

  NOTE: TODO: Should add proper browser engine detection (Webkit, Gecko, Trident, etc)

* Added $isTwitterWebView, setIsTwitterWebView(), getIsTwitterWebView(), isTwitterWebView();
* Added browser detection for UC Browser
* Added browser detection for NSPlayer (Windows Media Player)
* Added OS detection for NSPlayer (Windows Media Player)
* Added browser detection for Microsoft Office
* Added browser detection for the Apple News app
* Added browser detection for the Dalvik (Android) OS
* Moved wkHTMLtoPDF to scripted agents and removed the test accordingly
* Moved GoogleBot to scripted agents
* Moved Slurp to scripted agents
* Moved W3CValidator to scripted agents
* Moved MSNBot to scripted agents
* Renamed "Navigator" to "Android Navigator" for clarity
* Strip linebreaks in setVersion (fixes a failng test)
* Added .idea to the gitignore (I use PHPstorm, don't be a hater)

TODO: Tests for new class
@gabrielbull

Copy link
Copy Markdown
Member

Wow! This looks good. Give me a couple days to review everything and it should be good to merge!

Lokomojo added 2 commits April 1, 2017 20:18
Instead of: Match everything except ^ ;\),
Match: a-z, A-Z, 0-9, and . only.

Remove dirty fudge added to remove the stray \n

Now passes tests without said fudge
@gabrielbull gabrielbull added this to the 7.0.0 milestone Apr 6, 2017
@gabrielbull gabrielbull changed the base branch from master to 7.0.0 April 6, 2017 13:23
@gabrielbull gabrielbull merged commit 09eba0c into sinergi:7.0.0 Apr 6, 2017
@gabrielbull gabrielbull mentioned this pull request Apr 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants