I would like to redirect a search query to google from a chrome extension but google/chrome does not allow it.
I'm to ask a simple link that will redirect to the following: https://www.google.com/search?q=tesla+news. But since my domain is (for example) www.tesla-news.com I cannot redirect to google.com/search?q=tesla+news but just to redirect to tesla-news.com/search?q=tesla+news. And also allow people to search themselves within google chrome extension and simply redirect them to google.
I was thinking of doing some kind of simple re directing in server side? For example - getting tesla-news.com/search?q=tesla+news in my site and redirecting to https://www.google.com/search?q=tesla+news.
Does anybody have an idea how to solve it?
Thanks!
Related
I'm trying to write a chrome extension that runs on every page of a website (think Reddit, YouTube, etc.)
I can inject my chrome extension into these pages fine but I cannot get the Google Sign In button to work since, obviously, dynamic URLs are not allowed by Google.
Is there a way to have my log in button redirect to a static domain that's known by Google OAuth so that authentication is successful and then somehow send the resulting BasicProfile back to the original application?
Alternatively, is there an easier way to get this information? All I want is the basic information(name, imageURL).
For reference, I am using React in my project and I currently have my sign in button set up with react-google-login.
Thank you so much in advance!
I'm using google calendar in my web, so I need users to authorizate it to access google calendar.
The problem is, when I generate the url which shows you to login into google to let my application to access the calendar, it says "amazonaws.com", not my application name.
I'm pretty sure I've configured everything in google developers console. I've chosen a product name, a main page url, a logo url... But it keeps showing amazonaws (I guess it takes that name because the webhook redirects to a https://-----.amazonaws.com domain)
How can I solve my problem? Thanks in advance.
PS: I'm generating the url with google nodejs's sdk, I don't know if that could be relevant.
You can change this in Credential Page of the developer console.
Once you changed it will reflect. Try testing it on OAuth 2.0 playground
Hope this helps.
I search Google for a phrase which brings up my website.
Google shows a URL similar to
https://www.google.co.uk/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=my%20search
This brings up my website. On the landing page of my website, I have the following javascript
alert(document.referral);
This shows me the value
https://www.google.co.uk/
No querystring!
Research suggests the issue is likely due to my website being HTTP but both Google and my website use HTTPS
Why can I not get the search phrase from the query string?
Edit
Based upon the links I've been provided (thanks) I can see what you are claiming the issue is. Google doesn't allow it! However, I'm not sure I agree with this - there are many web analytical programs which provide this information. The company I have used (which admittedly can only provide keywords for 5% of all visitors) can do this... And I only embed some javascript. I can only assume it's because visitors can home HTTP:://google as opposed to HTTPS::google
have a look at this document: http://blogs.adobe.com/digitalmarketing/analytics/the-impact-of-google-encrypted-search/
It apparently has something to do with google running HTTPS. on my local tomcat server running HTTP, i get
http://servername/tools/errorlog.jsp?env=Prod&logType=EXTAUTHLOG when running
alert(document.referrer) in a console
Duplicate of:
How can I get the correct referer via JavaScript if the referrer uses https? ??
Can I get users's default Search Engine on iOS and Android?
I heard the followings:
window.getSearchEngine();
but, it doesn't work.
Someone,pls help me...........
try this code
I haven't yet been able to make the setSearchEngine() function work because for some reason I don't have permission to do so (i.e., canSetSearchEngine() returns false).
I know the Yahoo code works so it appears that it must be possible to do. I wonder if the js file has to be hosted on a whitelisted domain related to the selected search engine. IOW - perhaps only js code served from a yahoo, google, or bing domain has permission to call the setSearchEngine() function.
window.canSetSearchEngine()
window.getSearchEngine()
window.setSearchEngine(string)
How can I get the url of the current page with javascript in Google Sites?
I need to get the full url of current page with all parameters.
window.location.href return http://nosuchhost.invalid:80.
It happens in Google Sites only, in Google blogs window.location.href works fine.
You can't run javascript in a google site.
It won't work as I don't think Google Sites will ever offer JavaScript.
What you have to remember is that your Google Site is always at a
google.com address and, therefore, many people, firewalls and virus
checkers automatically trust everything at a google.com address:
Javacript can deliver malicious code, so it's never going to happen.
You should be able to add the javascript through a gadget.
and...
As Steegle has noted, we won't be adding JavaScript anytime soon to
the capabilities of Sites.