Lets rewrite my problem:
I will not provide any code because it would cost me too much payed worktime to extract the certain code samples from my project. On top of that i think its not code related, but browser/browser-security related.
When Chrome (Or Edge) tries to open an external application (No matter what application), an alert box pops open that asks if Chrome should open the external application.
Regardless if i open it or cancel the alert box, at this very moment all socket.io communication from my backend server isnt received anymore.
Before trying to open the external application or after a page refresh, everything runs fine.
Thats my problem, i apologise if some may not be able to understand the problem without me providing any code samples. I just hope someone comes by who already had that kind of problem and knows how to fix it.
I managed to go around this problem. I open my link to the external application directly in a new tab, which transfers the Alert Box to the newly opened tab.
The alert box seemed to have caused the error. When it opens in another tab, my main tab can still receive the backend emits.
Thanks for everyone who stumbled over this^^
Related
I'm trying to achieve something very simple and I'm blocked by the not so clear explanations in the chrome extension development official website.
I am trying to build a chrome extension with one button that extract the H2 from the specific page it's on, and pass this data into the extension to be shown there in a list (or something else if more easily implemented).
So from what I read I struggle with the logics of all the files and permissions:
So using the message passing I was able to send this data in a way but it's only working when I reload the page when the extension is opened(clicked on), the moment I close the extension it doesn't work anymore.
I saw that there is a way to use scripts injection with chrome.scripting, have no idea how it works though because when I tried the official documentation example it doesn't have the mechanism of listening to when I click the button in the extension, it just fires away.
There is the local storage, tried it but I had hard time accessing the data it collects with clicking the button inside the extension. if it's possible at all.
I saw couple of guys on youtube talking about passing a message through the background.js, which I can get the data from the content.js but how do I pass it to the extension when I click the button inside of it?
I saw one guy on youtube using var to share the info through the "window." but I know that this might have other problems because the use of a var.
The real question is:
Is there a difference between all those ways? are there any limitations? cons/pros? are there other ways?
Where can I really learn about chrome extension development?
Thanks in advance.
My website is refreshing randomly by itself with an additional unknown URL parameter ?mn followed by a Hash. Example:
?mn=l4ehjinilk0ids2leotmtyrmttfuq4oqedu.eebubnay47ddfhvd
I really don't know where it comes from. It happened even in Incognito mode.
Website is on Sitecore.
Any ideas?
If the page is loading correctly from the server but then refreshes with additional parameters in your browser, it must be triggered by JavaScript code. It can be caused by your own JavaScript, scripts injected by a third-party snippet, scripts executed by your browser extensions and so on.
Follow the steps below to find what triggers this refresh:
Open Developer Tools in your browser and navigate to the Network tab
Select the Preserve log checkbox
Reload your web page to replicate the issue
Find the request with parameter ?mn= and select it
Go to the Initiator tab, it will show the request call stack or request initiator chain similar to this:
This can help you understand what in your browser triggered the web page refresh.
Thank you.
I finally found out.
It was due to the Zoom application, a Post-attendee URL was set, as soon as a meeting is done, Zoom triggers the default browser and redirects to a website.
So, I am making a Chrome extension that connects to an external server and allows you to chat with other users of the extension. However, the way my extension is set up right now is with a start page (the initial popup), and then a button that takes you to the chatting page.
I want to figure out a way that allows the extension to stay on the chatting page after the user passed through the start page already. Moreover, I want the chat's messages to be saved as well.
I know I can do this by using Chrome.pageAction.setPopup(). However, I don't if this is the way to go about. As for the messages, I am not sure where to start, do I store them in Chrome localStorage? what are the ways I can go about doing this?
I apologize if this is a trivial question, I am new to all this.
I was wondering if there was a way to prevent a user from saving/downloading a web page? Specifically, I mean not letting them have access to the data displayed through my web application on their own machine?
I've heard that this is not possible since the browser must have access to the source code/data, but at the same time, I've noticed that if I to my gmail account, open an email, save the page, but when I try to open that page on my computer, it doesn't work. Furthermore, if I click "view source", I can see that even the source does not display the entire email message, even though the email is opened in my browser.
How it's possible for gmail to prevent me from seeing that email data?
Thats what called rendering pages using dynamic data without refreshing page (AJAX). The entire page source code is not downloaded in one go and components within the page request data asynchronously to display content. Try googling it and you will find more information.
In View source you can only see the HTML, CSS, JavaScript codes. No one can copy any dynamic code (PHP) from view source.
You can't stop anyone to see your html,css code in browser, as we are having view source option.
Maximum what you can do is disable right click on your page. Thant can be done through JavaScript.
I am doing research on a subject. The sites which are developed in javascript for eg. https://hp.taleo.net/careersection/2/jobsearch.ftl# . If we click on the paging, the URL doesn't change and yet the contents of the page are changed. Whether there are some variables which are getting submitted and if yes then what are these variables. What would one have to do if one wants the actual hard link the next page for this site or the similar sites. Thanks in advance.
There are no hard URLs... The site is loading it dynamically through ajax.
Inspect the website using Firefox or Chrome/Safari Dev Tools. Open the network tab and submit the form.
Network Tab
As you can see, it's posting the data to that page. Do some investigation and see what you come up with.
You can also try turning off javascript and seeing if it falls back to hard urls.