| 1 | # Query: navigator.userAgent
|
|---|
| 2 | # Excluding: *jquery*,*mediaelement*,*moxie*,*react*,*thickbox*,*tinymce*,*min.js
|
|---|
| 3 | # ContextLines: 1
|
|---|
| 4 |
|
|---|
| 5 | 37 results - 24 files
|
|---|
| 6 |
|
|---|
| 7 | wp-admin\setup-config.php:
|
|---|
| 8 | 420 (function(){
|
|---|
| 9 | 421: if ( ! /iPad|iPod|iPhone/.test( navigator.userAgent ) ) {
|
|---|
| 10 | 422 var el = document.getElementById('wp-config');
|
|---|
| 11 |
|
|---|
| 12 | wp-admin\js\common.js:
|
|---|
| 13 | 809 currentPage = pageInput.val(),
|
|---|
| 14 | 810: isIOS = /iPhone|iPad|iPod/.test( navigator.userAgent ),
|
|---|
| 15 | 811: isAndroid = navigator.userAgent.indexOf( 'Android' ) !== -1,
|
|---|
| 16 | 812 $adminMenuWrap = $( '#adminmenuwrap' ),
|
|---|
| 17 |
|
|---|
| 18 | 940
|
|---|
| 19 | 941: if ( 'ontouchstart' in window || /IEMobile\/[1-9]/.test(navigator.userAgent) ) { // Touch screen device.
|
|---|
| 20 | 942 // iOS Safari works with touchstart, the rest work with click.
|
|---|
| 21 |
|
|---|
| 22 | 1726 maybeDisableSortables: function() {
|
|---|
| 23 | 1727: var width = navigator.userAgent.indexOf('AppleWebKit/') > -1 ? $window.width() : window.innerWidth;
|
|---|
| 24 | 1728
|
|---|
| 25 |
|
|---|
| 26 | 2069 (function(){
|
|---|
| 27 | 2070: if ( '-ms-user-select' in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/) ) {
|
|---|
| 28 | 2071 var msViewportStyle = document.createElement( 'style' );
|
|---|
| 29 |
|
|---|
| 30 | wp-admin\js\post.js:
|
|---|
| 31 | 403 target = $this.attr('target') || 'wp-preview',
|
|---|
| 32 | 404: ua = navigator.userAgent.toLowerCase();
|
|---|
| 33 | 405
|
|---|
| 34 |
|
|---|
| 35 | wp-content\themes\twentyfifteen\js\skip-link-focus-fix.js:
|
|---|
| 36 | 8 ( function() {
|
|---|
| 37 | 9: var ua = navigator.userAgent.toLowerCase();
|
|---|
| 38 | 10
|
|---|
| 39 |
|
|---|
| 40 | wp-content\themes\twentynineteen\functions.php:
|
|---|
| 41 | 278 <script>
|
|---|
| 42 | 279: /(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())},!1);
|
|---|
| 43 | 280 </script>
|
|---|
| 44 |
|
|---|
| 45 | wp-content\themes\twentynineteen\js\skip-link-focus-fix.js:
|
|---|
| 46 | 10 ( function() {
|
|---|
| 47 | 11: var isIe = /(trident|msie)/i.test( navigator.userAgent );
|
|---|
| 48 | 12
|
|---|
| 49 |
|
|---|
| 50 | wp-content\themes\twentyseventeen\assets\js\global.js:
|
|---|
| 51 | 153 function checkiOS() {
|
|---|
| 52 | 154: return /iPad|iPhone|iPod/.test(navigator.userAgent) && ! window.MSStream;
|
|---|
| 53 | 155 }
|
|---|
| 54 |
|
|---|
| 55 | wp-content\themes\twentyseventeen\assets\js\skip-link-focus-fix.js:
|
|---|
| 56 | 8 (function() {
|
|---|
| 57 | 9: var isIe = /(trident|msie)/i.test( navigator.userAgent );
|
|---|
| 58 | 10
|
|---|
| 59 |
|
|---|
| 60 | wp-content\themes\twentysixteen\js\skip-link-focus-fix.js:
|
|---|
| 61 | 8 ( function() {
|
|---|
| 62 | 9: var isWebkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1,
|
|---|
| 63 | 10: isOpera = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1,
|
|---|
| 64 | 11: isIE = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1;
|
|---|
| 65 | 12
|
|---|
| 66 |
|
|---|
| 67 | wp-content\themes\twentytwenty\functions.php:
|
|---|
| 68 | 233 <script>
|
|---|
| 69 | 234: /(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())},!1);
|
|---|
| 70 | 235 </script>
|
|---|
| 71 |
|
|---|
| 72 | wp-content\themes\twentytwenty\assets\js\skip-link-focus-fix.js:
|
|---|
| 73 | 10 ( function() {
|
|---|
| 74 | 11: var isIe = /(trident|msie)/i.test( navigator.userAgent );
|
|---|
| 75 | 12
|
|---|
| 76 |
|
|---|
| 77 | wp-content\themes\twentytwentyone\functions.php:
|
|---|
| 78 | 501 <script>
|
|---|
| 79 | 502: /(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",(function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())}),!1);
|
|---|
| 80 | 503 </script>
|
|---|
| 81 |
|
|---|
| 82 | 622 <script>
|
|---|
| 83 | 623: if ( -1 !== navigator.userAgent.indexOf( 'MSIE' ) || -1 !== navigator.appVersion.indexOf( 'Trident/' ) ) {
|
|---|
| 84 | 624 document.body.classList.add( 'is-IE' );
|
|---|
| 85 |
|
|---|
| 86 | wp-content\themes\twentytwentyone\assets\js\skip-link-focus-fix.js:
|
|---|
| 87 | 10 ( function() {
|
|---|
| 88 | 11: var isIe = /(trident|msie)/i.test( navigator.userAgent );
|
|---|
| 89 | 12
|
|---|
| 90 |
|
|---|
| 91 | wp-includes\embed.php:
|
|---|
| 92 | 471 /*! This file is auto-generated */
|
|---|
| 93 | 472: ⟪ 832 characters skipped ⟫ssage",c.wp.receiveEmbedMessage,!1),d.addEventListener("DOMContentLoaded",t,!1),c.addEventListener("load",t,!1);function t(){if(!n){n=!0;for(var e,t,r=-1!==navigator.appVersion.indexOf("MSIE 10"),a=!!navigator.userAgent.match(/Trident.*rv:11\./),i=d.querySelectorAll("iframe.wp-embedded-content"),s=0;s<i.length;s++){if(!(e=i[s]).getAttribute("data-secret"))t=Math.random().toString(36).substr(2,10),e.src+="#?secret="+t,e.setAttribute("data-secret",t);if(r||a)(t=e.cloneNode(!0)).removeAttribute("security"),e.parentNode.replaceChild(t,e)}}}}(window,document);
|
|---|
| 94 | 473 JS;
|
|---|
| 95 |
|
|---|
| 96 | wp-includes\js\admin-bar.js:
|
|---|
| 97 | 37 skipLink = adminBar.querySelector( '.screen-reader-shortcut' );
|
|---|
| 98 | 38: mobileEvent = /Mobile\/.+Safari/.test( navigator.userAgent ) ? 'touchstart' : 'click';
|
|---|
| 99 | 39
|
|---|
| 100 |
|
|---|
| 101 | 189 id = event.target.getAttribute( 'href' );
|
|---|
| 102 | 190: userAgent = navigator.userAgent.toLowerCase();
|
|---|
| 103 | 191
|
|---|
| 104 |
|
|---|
| 105 | wp-includes\js\wp-embed.js:
|
|---|
| 106 | 99 var isIE10 = -1 !== navigator.appVersion.indexOf( 'MSIE 10' ),
|
|---|
| 107 | 100: isIE11 = !!navigator.userAgent.match( /Trident.*rv:11\./ ),
|
|---|
| 108 | 101 iframes = document.querySelectorAll( 'iframe.wp-embedded-content' ),
|
|---|
| 109 |
|
|---|
| 110 | wp-includes\js\wp-emoji.js:
|
|---|
| 111 | 31 count = 0,
|
|---|
| 112 | 32: ie11 = window.navigator.userAgent.indexOf( 'Trident/7.0' ) > 0;
|
|---|
| 113 | 33
|
|---|
| 114 |
|
|---|
| 115 | wp-includes\js\crop\cropper.js:
|
|---|
| 116 | 50 this.resizing=false;
|
|---|
| 117 | 51: this.isWebKit=/Konqueror|Safari|KHTML/.test(navigator.userAgent);
|
|---|
| 118 | 52: this.isIE=/MSIE/.test(navigator.userAgent);
|
|---|
| 119 | 53: this.isOpera8=/Opera\s[1-8]/.test(navigator.userAgent);
|
|---|
| 120 | 54 this.ratioX=0;
|
|---|
| 121 |
|
|---|
| 122 | wp-includes\js\dist\block-editor.js:
|
|---|
| 123 | 38272
|
|---|
| 124 | 38273: const isIE = window.navigator.userAgent.indexOf('Trident') !== -1;
|
|---|
| 125 | 38274 const arrowKeyCodes = new Set([external_wp_keycodes_["UP"], external_wp_keycodes_["DOWN"], external_wp_keycodes_["LEFT"], external_wp_keycodes_["RIGHT"]]);
|
|---|
| 126 |
|
|---|
| 127 | wp-includes\js\dist\block-library.js:
|
|---|
| 128 | 15757 // Most mobile devices include "Mobi" in their UA.
|
|---|
| 129 | 15758: if (window.navigator.userAgent.indexOf('Mobi') > -1) {
|
|---|
| 130 | 15759 return false;
|
|---|
| 131 |
|
|---|
| 132 | 15762
|
|---|
| 133 | 15763: if (window.navigator.userAgent.indexOf('Android') > -1) {
|
|---|
| 134 | 15764 return false;
|
|---|
| 135 |
|
|---|
| 136 | 15767
|
|---|
| 137 | 15768: if (window.navigator.userAgent.indexOf('Macintosh') > -1 && window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2) {
|
|---|
| 138 | 15769 return false;
|
|---|
| 139 |
|
|---|
| 140 | 33466 // Opera/9.80 (foo) Presto/2.2.15 Version/10.10
|
|---|
| 141 | 33467: var uas = navigator.userAgent;
|
|---|
| 142 | 33468 var agent = /(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(uas);
|
|---|
| 143 |
|
|---|
| 144 | wp-includes\js\dist\components.js:
|
|---|
| 145 | 57117 if (!_canUseDOM_js__WEBPACK_IMPORTED_MODULE_0__[/* canUseDOM */ "a"]) return false;
|
|---|
| 146 | 57118: return window.navigator.userAgent.indexOf(string) !== -1;
|
|---|
| 147 | 57119 }
|
|---|
| 148 |
|
|---|
| 149 | wp-includes\js\dist\compose.js:
|
|---|
| 150 | 1584
|
|---|
| 151 | 1585: const IS_IE = typeof window !== 'undefined' && window.navigator.userAgent.indexOf('Trident') >= 0;
|
|---|
| 152 | 1586 /**
|
|---|
| 153 |
|
|---|
| 154 | wp-includes\js\dist\edit-post.js:
|
|---|
| 155 | 18334
|
|---|
| 156 | 18335: const isIphone = window.navigator.userAgent.indexOf('iPhone') !== -1;
|
|---|
| 157 | 18336
|
|---|
| 158 |
|
|---|
| 159 | wp-includes\js\dist\vendor\wp-polyfill-object-fit.js:
|
|---|
| 160 | 16 // Workaround for Edge 16-18, which only implemented object-fit for <img> tags
|
|---|
| 161 | 17: var edgeMatch = window.navigator.userAgent.match(/Edge\/(\d{2})\./);
|
|---|
| 162 | 18 var edgeVersion = edgeMatch ? parseInt(edgeMatch[1], 10) : null;
|
|---|