Extend shared function which is by Mobile Safari.