How to simulate Safari 10.0? - macos

I have implemented the google analytics tracking code for a website.
I need to check if its working fine or not in safari 10.0. I cannot buy MAC now to get safari 10.0, instead finding ways to simulate safaro 10.0 with any addons?
I heard about the User agent switcher extension available in chrome/firefox from which we can simulate the browsers and its versions.
I am unable to find safari 10.0 in available user-agent switcher extensions.
Can anyone suggest me how to simulate safari 10.0 with any better extensions please?

If you are looking to change the user-agent string, that can be done using Developer Tools for most modern browsers. Check out this full guide from HowToGeek.com
Excerpt (For Safari)
This option is available in Safari’s normally hidden Develop menu. To enable it, click Safari > Preferences. Select the “Advanced” tab and enable the “Show Develop menu in menu bar” option at the bottom of the window.
Click Develop > User Agent and select the user agent you want to use in the list. If the user agent you want to use isn’t shown here, select “Other” and you can provide a custom user agent. You can find extensive lists of user agents on various websites.
This option only applies to the current tab. Other open tabs and tabs you open in the future will use the “Default” user agent.

Related

Can we disable user interactions with other applications in mac while our app is running?

I am working on a mac based application and need guidance on one of the features, what I am trying to do here is
When my app launches I don't want the user to interact with any other application unless the user hits the close button of the app. No keyboard shortcuts should be enabled for mac like cmd+spacebar etc.
My question is if this is doable? Is there official documentation from apple which says it won't allow doing this due to some technical reason?
macOS has supported "kiosk mode" since 10.6; it allows your application to:
Hide / deactivate the dock, menu bar and Apple menu
Disable switching and hiding of your application
Prevent restarting or shutting down the computer
Broadly,NSApplication exposes a bitmask property, NSApplicationPresentationOptions, that lets you select the combination of settings you want to use.
The best resource to read further is the archived documentation that #KenThomases located here and here.

Firefox Quantom, shift and f2 missing? Where do you type appCache validate?

In the new Firefox Quantum what's the equivilent of shift+f2 to bring up the browser console?
I've seen this:
The functions provided by the Developer Toolbar are available in the
Firefox Developer Tools Console Tab.
But 'appCache validate' doesn't seem to work there?
The Developer Toolbar was removed completely from Firefox, and the functionality that it previously provided is no longer available from a command-line interface. Instead, you are supposed to use the Developer Tools directly to do what you previously did with commands inside the toolbar.
Application specific storage is visible in the “Storage” tab of the Developer Tools, which has support for various storage providers.
The application cache being a deprecated functionality, does not appear to be supported within the Developer Tools anymore. If you need to access its items, you can visit about:cache though in order to look at the application cache items.

A fix/workaround for unsupported Safari Extensions in Safari 12?

The latest Safari update (12.0, Sept 17, 2018) turns off some and and stops supporting other extensions.
E.g., many people use Pocket's Safari Extension to save items to a OS-independent list. But I don't see Pocket on Apple's new list of supported Safari Extensions (https://itunes.apple.com/us/story/id1377753262). That might be why Pocket now recommends that Mac users just use their Mac app: https://help.getpocket.com/article/1042-using-pocket-for-safari
Pocket may update their extension such that Apple starts supporting it again. Until then, there might be a javascript bookmark(let) for saving items to Pocket (https://support.apple.com/en-us/HT4550) or a Pocket email address to which you can send items to your account (https://getpocket.com/add/).
But are there fixes/workarounds that would allow no-longer-supported Safari Extensions to work in Safari 12?
You can manually install extensions through the developer menu. Enable Developer option in Safari (in preferences). Under the Developer menu, choose 'allow unsigned extensions'. Once that's checked off, under the developer menu again open Extension Builder and choose the option to add extension. This will allow you to add new extensions. The one caveat is you have to reload it when you reboot.
You can find a step by step here https://georgegarside.com/blog/macos/install-any-safari-extension-macos-mojave/
Not an answer, but this might still help someone (I landed here looking for the "official" ways to deal with this situation).
Here are the two available options:
Install the app from the App Store, click on the Share button in the Toolbar, if Pocket is not there, click "More…" (last option) and check Pocket: the drawback is that you won't be able to add tags from there (you must do it from the app)
Install the bookmarklet as one of the first 9 items, you will be able to trigger it with a keyboard shortcut (alt+cmd+1…9). This option lets you add tags.
To install the bookmarklet:
visit https://getpocket.com/add?sb=1
open the Bookmarks (click on the "Show sidebar" icon in Safari Toolbar)
drag the button to the Bookmark list (in a top position - 1 to 9)
I did both, but I feel like I'll mostly add items using the bookmarklet.

Joomla mobile template testing

Joomla automagically recognises the mobile template and displays it on the mobile devices. but sometimes it does not display(very rarely) and also sometimes the behaviour is different(like logo disappearing).
Question:
1) Is there a way we can test the mobile template on the desktop computers (like m.mobilesite.com) so that we can debug the issue?
Yes You can,
The http://www.browserstack.com sites Provide a real machine for testing the device and browser compactability.(It a remote machine so the result is 100%).This required signup.
Also you can check iphone and ipad compactabilty with safari Developer option.
From Settings->Preference ->Advanced ->check the Show Develop menu option.
Now you will get a new menu in the browser Developer there you can choose the user agent.
You can also find several sites that provide mobile testing but those are not 100% sure
like iphone4simulator.com, iphonetester.com
Hope this may help you..
I also found that - If you decrease your browser width and height - it will display mobile format. I am not sure if this is a feature of later versions of joomla. Also on Chrome - developer tools, there is an option to choose the mobile device to test the webpage.

Simulate Offline Mode for HTML5 Cache Testing

I have an HTML5 application that requires offline support. For running the application, I use a local Apache server. I am trying to figure out what the best way is to simulate offline mode.
Currently, in Firefox I disable my Air-Port to simulate offline mode, but this is a pain.
Any suggestions? I am open to using other browsers, if a method exists that doesn't require turning off my Internet.
For Firefox
☰ (hamburger menu)->More->Work Offline
Google Chrome doesn't appear to have this feature
Edit:
Also, another alternative is slightly more time-consuming to setup in the beginning but might be worth it. For Firefox/Chrome there should be proxy plugins, set up a fake/bad profile for each so that you proxy to something that doesn't exist... like 127.0.0.20:8080. After that you can switch the proxy setting on and off to emulate a full-stack test.
The other answers are out of date. The only place this appears in Firefox v92 is under
File > Work Offline
The File menu can be accessed in the top left of Firefox by pressing the ALT key.
Be warned that this does not prevent traffic from "localhost" loop-back itself, unless you additionally turn on
network.disable-localhost-when-offline
preference in about:config.
Bugzilla issue: Add option to disallow connections to localhost while in offline mode.
In Chrome you can open developer tools switch to the network tab and set throttling to offline
For Firefox, from the ☰ (hamburger menu), choose Web Developer > Work Offline.
For Chrome, open DevTools and select the Network panel. Throttling is set to Online (Disabled) by default. From the dropdown menu, you can choose presets Fast 3G and Slow 3G, but to simulate Offline Mode, you want to choose Offline.

Resources