why android chrome replace refferer? - javascript

i need to redirect the user from chrome to google play to download my android applications. so i run this code in the web page which is opened by chrome :
window.location=https://play.google.com/store/apps/details?id=mypackageName.comf&referrer=utm_source%3DtestSource512%26utm_medium%3DtestMedium512%26anid%3Dadmob
I don't know why the chrome replace the referrer with :com.android.chrome
is it possible to prevent the chrome from replacing the referrer and just use the given referrer.
thanks

Related

How to inject external javascript code in phone browser

I would like to inject an external javascript code into a certain webpage in a mobile phone browser such as chrome or opera mini. On computers, we can do this directly in the console or through extensions such as Scripty. Unfortunately, phone browsers don't show consoles nor do they have extensions. Please how can I achieve this?
You can use eruda. It's a console for mobile browsers. It also has many plugins such as eruda-touches which visualizes all current touches and their positions.
Personally, I made a bookmark using chrome browser on my phone to implement this console directly in any page when i search for its name. Watch this youtube video for more details.
If you are using android, then you can use chrome inspect to access console on phone browser using a computer.
First you should connect your phone to your computer via USB and authorize it.
In Chrome on your computer open the following link chrome://inspect
There you can see opened tabs on your mobile device, and open their console.
You can use the address-bar to run javascript in that page.
(Tested in Chrome)
Like this:
Since all the codes will be in one line, make sure you use semicolons properly.

How to open a webpage only if the user is on Google chrome

i have a website that works perfectly but I would like to open a specific page on it only if the user is on a PC and more specifically with Chrome or Mozilla browser.
I found that this is possible with the user agent but I didn't know how to use it properly.

URL Scheme to open Chrome/Firefox (Android OS) from Facebook post

We've a web page that needs to be open in Chrome/Firefox on Android to fully display the content. But when we post the link on Facebook, it always opens the links with its own web browser.
So we're checking if there is a way to force opening the link in Chrome browser from a Facebook post.
Here are some approaches that we tried:
Use Chrome URL Scheme (googlechrome://navigate?url=example.com)
Use window.location.href, window.open (url,"_system"), etc
And even using the intent to launch chrome from the web browser:
What is the intent to launch any website link in Google Chrome
If you have any idea or confirmation that there is no way to force users from Facebook Browser to Chrome (Android OS), please let us know.
Up until recently the googlechrome://navigate?url=example.com approach worked on both Android/iOS Facebook links when using an href with target="_blank". Recently this stopped working on Android Facebook. The only workaround I have found that works is to use an intent: link that does not specify a package path for Chrome. It will open the link using the default browser, so is not guaranteed to be Chrome. The specific link format that worked was:
window.location = 'intent:https://example.com#Intent;end';
IT appears that the intent is matching a generic URL to use the default selected browser when no package is specified.

Outlook Web Add-In: Change the embedded browser and open browser of your choice

I am just developing an Outlook Web Add-In. I suppose that Microsoft uses Internet Explorer 11 which is embedded in the Outlook 2016 desktop client. Is there a possibility to change this to another browser, for example Chrome.
I also open a new browser in JavaScript (window.open) which is again Internet Explorer 11. In this case I want to change the browser too, e.g. Chrome.
Answer to first question - You cannot change the browser in which the addin is loaded inside Outlook Desktop.
Answer to second question - If you are trying to open a url specified in your appDomains(in the manifest) then it would open in IE to allow communication back to the addin.
If you are trying to open just any random url which does not need to communicate back to the addin and not specified in your app domain then it will open in the default browser (set by the user for the device).
For the scenario where you want communication between the new window and addin we suggest using the displayDialogAsync API instead of window.open. You can find documentation about it here: https://dev.office.com/reference/add-ins/shared/officeui.displaydialogasync?product=outlook&version=v1.5

Screen Recording of Google Chrome Browser

I am developing a chrome extension. I want to record the browser tab of google chrome as video for a specific time as ScreenCastify chrome extension do. How would I do that in my chrome extension.
Thanks in Advance
ScreenCastify uses chrome.desktopCapture API.
Check out this example :
https://github.com/GoogleChrome/chrome-extensions-samples/tree/main/apps/samples/desktop-capture

Categories

Resources