Created
February 17, 2015 19:44
-
-
Save alastaircoote/f3a77d946e7e5df2ebaf to your computer and use it in GitHub Desktop.
Revisions
-
alastaircoote renamed this gist
Feb 17, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
alastaircoote renamed this gist
Feb 17, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
alastaircoote revised this gist
Feb 17, 2015 . 1 changed file with 19 additions and 19 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,22 +1,22 @@ var webviewProvider = (function() { if (/\/FBIOS/i.test(navigator.userAgent) === true) { return 'facebook'; } if (/Twitter for/i.test(navigator.userAgent) === true) { return 'twitter'; } if (/Pinterest\//.test(navigator.userAgent) === true) { return 'pinterest'; } if (/\/\/t.co\//i.test(document.referrer) === true && /Safari\//.test(navigator.userAgent) === false) { return 'twitter'; } if (/tumblr.com\//i.test(document.referrer) === true && /Safari\//.test(navigator.userAgent) === false) { return 'tumblr'; } return null; })(); if (webviewProvider !== null) { document.body.classList.add(webviewProvider); } -
alastaircoote renamed this gist
Feb 17, 2015 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,3 @@ var webviewProvider = (function() { if (/\/FBIOS/i.test(navigator.userAgent) === true) { return 'facebook'; -
alastaircoote created this gist
Feb 17, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ <script> var webviewProvider = (function() { if (/\/FBIOS/i.test(navigator.userAgent) === true) { return 'facebook'; } if (/Twitter for/i.test(navigator.userAgent) === true) { return 'twitter'; } if (/Pinterest\//.test(navigator.userAgent) === true) { return 'pinterest'; } if (/\/\/t.co\//i.test(document.referrer) === true && /Safari\//.test(navigator.userAgent) === false) { return 'twitter'; } if (/tumblr.com\//i.test(document.referrer) === true && /Safari\//.test(navigator.userAgent) === false) { return 'tumblr'; } return null; })(); if (webviewProvider !== null) { document.body.classList.add(webviewProvider); }