Change browser from Edge to IE with Javascript - javascript

I'm working on a website where (due to security settings in the users Windows desktops), the users cannot use the Edge browser.
Is there a work-around where I can 'redirect' the website to use Internet Explorer? In other words, ask it to perform the equivalent of run Internet explorer as an app and go to the same URL?
We will fix the issues on the website, but I don't want to get into the issues here, thanks.
-----edit-----
In this case the users have pre-packaged Windows 10 with non-standard security settings for Edge. Sadly I don't have control over the windows build and in a large company there are a number of hurdles before the corrected settings can be applied.
It's all well and good to let users choose their own browsers in normal situations, but in this specific case a solution is required.
I am happy to create a temporary "please use Internet Explorer page" but I was hoping a mime application type or other solution could suggest to the windows pc to run IE along with the same url the user is first accessing to make this more seamless.

Sites can't control whether to use IE11 or Edge, however Microsoft does allow specific sites to be white listed to only use IE11 using Group Policy. Here is Microsoft's page talking about it: https://technet.microsoft.com/en-us/itpro/microsoft-edge/emie-to-improve-compatibility

Related

URl object is not created in IE when address bar is escaped

I've came across a weird issue...
with internet explorer, version 11 in my case, browsing to:
http://bus.gov.il/WebForms/wfrmLuz.aspx?SugTransfer=0&company=1&language=he&RovaDest=2109&DateTokef=09/07/2017&title=09/07/2017%20-%20%u05D9%u05D5%u05DD%20%u05D0&RovaSrc=3195&DayOrder=1&FromYeshuv=%u05E8%u05E2%u05E0%u05E0%u05D4&FromRova=%u05E8%u05E2%u05E0%u05E0%u05D4%20%u05DE%u05E1%u05D5%u05E3%20%u05D0%u05D5%u05D8%u05D5%u05D1%u05D5%u05E1%u05D9%u05DD&ToYeshuv=%u05EA%u05DC%20%u05D0%u05D1%u05D9%u05D1%20%u05D9%u05E4%u05D5&ToRova=%u05EA%u05DC-%u05D0%u05D1%u05D9%u05D1%20%u05EA%u05D7%u05E0%u05D4%20%u05DE%u05E8%u05DB%u05D6%u05D9%u05EA%20%u05D7%u05D3%u05E9%u05D4&hour=&width=1024
and then in the dev-tools console, running this command:
window.URL.createObjectURL(new Blob(["string"]))
results with an error.
This doesn't happen for other sites...
Does anyone have an idea what's going on? is this yet an issue with IE?
Thanks alot!
Works for me!
Tools>Internet Options>Security tab,
1. Click "Reset all zones to default"
2. Select the Trusted Sites icon, "Sites" button, remove the domain bus.gov.il from your list.... (the Trusted sites zone actually has a lower security profile than the Internet zone... IE has a security zone setting preventing navigation into a zone of lower integrity... https (the secure protocol) works just as well in any IE security zone.... The IE trusted sites list is mostly used by Enterprise users to allow navigation to business partner portals... there should be no need for home users to add sites to the IE Trusted sites list. Remove any other hosts from your IE Trusted sites lists. Ensure that Tools>Smart screen filter is turned on to prevent phishing attacks. https works in any IE security zone(your data is encrypted)
That site uses Flash. Ensure that IE's ActiveX filtering is turned off before you visit the site (Tools>ActiveX filtering).

how to enable screen/desktop capture in chrome?

I am able to achive it in firefox by folowing below steps:
make my server https
append my domain to the user preference media.getusermedia.screensharing.allowed_domains in about:config to whitelist it for screen sharing.
use constraint like {video: {mediaSource: "screen"}},
but in chrome, I am getting totally lost.
most places keep telling: You'll need to first enable the flag called Enable screen capture support in getUserMedia() in chrome://flags. ( but I am unable to find this flag anywhere)
I have checked Muaz Khan's screen share plugin, it works great, but afraid that it is coupled with other WebRTC experiment projects, and I am not sure how to customize the plugin to my project.
At this junction, I have come to an understanding that, without plug-in or flags, cannot capture the desktop mediastream.
so what I would like to know is, what is the flag I must enable/ what must be part of a plug-in written from scratch to make chrome support capturing desktop the same way it allows us to capture camera.
In Chrome/Chromium you cannot use "standard" Javascript to capture users screen anymore.
It was replaced by the chrome.desktopCapture API, which is exclusive for Chrome extensions.
The example you're providing rely in this API and an extensions. It's plugin free but not extension free.
The enable-usermedia-screen-capture flag was removed from chrome://flags/ in Chrome M36 (Chromium Issue 347641).
For testing or experimenting, the feature can still be enabled when starting Chrome with chrome --enable-usermedia-screen-capturing (tested in Chrome 68).
Screenshot:
The Chrome Platform Status also highlights a MediaStream.getDisplayMedia() implementation, which will allow developers to record or share the screen from the browser without any plugin. The specification for this can be found in the Screen Capture Editor's Draft.

Launch a Windows File Explorer window from a webpage

I work in phone support for a company that released a new program that stores some data in the users appdata folder.
Our knowledge base has been updated with steps for users to turn on show hidden/system files and then steps users through opening the folders.
As a lot of our software users are not IT 'savvy', it takes a long time walking them through.
With HTML, Javascript or some kind of plug in, is it possible to make a link on a page that will launch a Windows File Explorer window navigated to %localappdata% ?
This way the user will always end up in the right place without all the steps they find difficult.
No, it isn't possible to launch an external program from within a web page.
If you could do it, it would be considered a massive security risk, and would quickly be blocked by the browser makers.
Years ago, there used to be ways to achieve this sort of thing via ActiveX controls, but that is no longer an option, largely due to the security issues it caused.
The only browser that ever supported ActiveX was IE; it doesn't work at all in any of the other browsers, and even IE defaults to block unknown ActiveX controls these days.
In short, you aren't going to be able to do this. Sorry.
I don't believe this is possible with just HTML / javascript because of permission / security
One possibility is to create a ActiveX control to launch Windows Explorer.
Building ActiveX Controls for Internet Explorer
Wikipedia - ActiveX
You could have users download and run a batch file with something like this in it:
%windir%\explorer.exe %LOCALAPPDATA%
You could even configure the batch file to copy files to a more convenient place, like the desktop.

Detect when Firefox plug-in is blocked

Is there a way through JavaScript or a web service to see if a plug-in installed in Firefox is being blocked by Mozilla? In particular, on my web site, I want to be able to tell if Mozilla is blocking an outdated version of Adobe Flash and adjust our UI accordingly.
The address that Firefox uses to download the blocklist is defined as extensions.blocklist.url preference:
https://addons.mozilla.org/blocklist/3/%APP_ID%/%APP_VERSION%/%PRODUCT%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/%PING_COUNT%/%TOTAL_PING_COUNT%/%DAYS_SINCE_LAST_PING%/
Fortunately, not all of these parameters are required, this address will work to download the current blocklist:
https://addons.mozilla.org/blocklist/3/%7Bec8030f7-c20a-464f-9b0e-13a3a9e97384%7D/21.0/
This is the ID of Firefox and the version number of the current release, so the blocklist could be different for other Mozilla applications and other Firefox versions. Looking through https://addons.mozilla.org/blocked/, there are some items listed as "for Firefox version n.n.n and higher", some are listed as "for Firefox and SeaMonkey" and others again as "for all Mozilla applications". Still, it seems that the blocklist for the current Firefox version should be the most complete one.
You can download and process this file in a web service, then adjust the behavior of your web application accordingly.

Any Javascript functions to get homepage ,search provider ,favourites etc from browsers like Firefox and google chrome

my application is setting browserhome page ,search provider ,favourites etc to all supported browsers like googlechrome,firefox,internet explorer.My purpose is to automate my application using selenium .In case of IE these informationa are stored in registry . so it is easy for me to validate the above details .But for firefox and google chrome its bit problem .So i just want know whether there is any functions available in javascript to check browser homepage ,search provider,favourites etc in firefox and google chrome ?
The simple answer is no. It would be a security and privacy issue if client side js code could access that information. Instead you would need to use a browser extension, or in your case you can just use an external program with administrative rights. I am pretty sure that selenium does not have this functionality built in, however it is all available if you know where the browser stores it. IE uses the registry, but chrome and Firefox use proprietary files in their profile directories. There may be an library that does this, otherwise it is possible

Categories

Resources