Is there a Google Chrome switch (command line) to toggle url-encoding? - google-chrome

I have written a C# code that calls Google Chrome to load a specific url on the computers local hard drive. The C# code already encodes the URL (replaces space characters with %20) and this used to work fine until a couple of weeks ago that this issue started happening!
The quickest band-aid seems to be modifying the C# code to not replace " " with %20. But the Chrome behavior may change in the future or some customers may not have the same version/settings of the chrome installed.
I think the sustainable solution is to Tell Chrome to either Encode or not encode the URL. Now my question is:
Is there a Chrome switch that enforces it to either translate the url or ignore it?
Does it have a setting or option for this?
I have found a couple of lists with Chrome Switches Here and Here. However both of these lists are incomplete and refer to this reference. I have Ctrl+F'ed for "URL" and "URI" but did not come across a relevant answer.
Thanks in advance.
I have already asked this question on Super User, however I think
people in this forum has more expertise on solving these types of
issues. (Also after 24hrs, the question in Super User has not received
any feedback at all!)

There is no Switch for it, however, as HexBolt has stated adding the "file://" tells Chrome that the url is already translated. Please see his extension to the answer for this question.

Related

Academicons and HTML not showing correctly

This question was already asked before, nevertheless the solution that was suggested didn't solved the problem.
I am trying to include the ResearchGate academicon in my website, nevertheless it is displayed as a square in Google Chrome and as square with numbers inside in Firefox, while loading the website from the server.
If I download all the files to my computer (as a zip and then opening directly the html file) it displays correctly.
The previous question that was asked with the exactly same problem (and overall situation, it actually uses the same template for the website as I do) is here with its discussion is here Font-awesome: An emoticon looks different on my computer than on the actual webpage
I already tried doing the suggested modifications in the .htaccess file without success. Does anyone of you have an idea on how to attack this problem?
Many thanks!
Edit 1:
I include here the mime types reported by my CPanel:
Mime Types in CPanel
Edit 2:
Sorry, I don't have enough reputation to post the pictures, but they are identical to the quoted previous Question (linked: Font-awesone: An emoticon looks...).
Is it even in the correct size (maybe it is very small)? When not: Check font-awesome.com .. it has set some classes with allows you to size your icons. Try this class on your html in the <i> tag: fa-x3
I´ve made the same on this page in the footer.
Don't kill me if I am totally wrong for what you are searching.

Link sharing - Google Caja HTML Sanitizer

I'm trying to tackle the classic "user input sanitisation" problem on my new web app and I chose to use Google Caja's HTML Sanitizer server-side for this task.
Although the implementation + testing went fine, I still have some questions :
1) I could only find the HTML4 definitions, does this mean that HTML5 tags wouldn't be safe ?
I did some tests with HTML 5 specific tag / attribute XSS's and although none of them worked I'm not 100% sure that some untested ones wouldn't work.
2) Google Caja doesn't seem too active anymore, would this constitute a security issue ?
3) I want my users to be able to share links, how would I be able to do this in a safe way that passes Google Caja's filters ? (like StackOverflow)
4) How does Caja handle Unicode ?
Thank you in advance !
1) I could only find the HTML4 definitions, does this mean that HTML5 tags wouldn't be safe ?
We have added HTML5 support in the past few months. Please let us know if anything is missing.
2) Google Caja doesn't seem too active anymore, would this constitute a security issue ?
Are you perhaps looking in the wrong place? We're quite busy, as you can see here.
3) I want my users to be able to share links, how would I be able to do this in a safe way that passes Google Caja's filters ? (like StackOverflow)
You can supply a URI policy which permits or rejects outgoing links.
4) How does Caja handle Unicode ?
Correctly, I should hope. If things don't work, please file a bug.

What can I use to capture and upload "Copy and Paste" images?

Just like stack exchange has the ability to accept pasting of images I would like to implement this on my website too. I tried to search for it but I am not sure what the correct terminology is and get really strange results.
I wanted to use plupload to upload images but I am not sure how this works exactly.
What plugin can I use to do this.
It seems what you are looking for is the "Clipboard API and events" http://www.w3.org/TR/clipboard-apis/
A post that seems consistent with the fact that the paste feature does not seem to be avalaible on firefox here on stackexchange :
http://css.dzone.com/articles/paste-wasteland-or-why-onpaste
As far as I know this behavior is not implemented in plupload.
This might be of some help if you want to evolve plupload or develop your own feature :
https://stackoverflow.com/a/7496598/1236044

Google maps - We don't have maps at this zoom level for this region

I had a map working perfectly on a domain, then I moved it to a different domain and now all I'm getting is a gray canvas with this error message.
It happens in all browsers, regardless of which part of the map I zoom into, and it's not just my computer because I had two other people test it and it didn't work for them either.
Can someone help with this? I've seen the question asked around the web but no satisfactory responses anywhere.
Try browsing the location/ w/e directly from "http://maps.google.com/". If it results in the same problem, it's obviously on Googles side which means that you can't do anything about it.
Get a JavaScript debugger, such as FireBug or Chrome (under Developer Tools) to see where exactly it bugs out.
With an error description like this it's only guessing (can have several reasons).
I mean, you didn't even provide an URL, so this question is quite theoretical.

Hiding Chrome bookmark text via extension

I'm trying to get a start in programming by writing a Chrome extension similar to the Smart Bookmarks Bar extension for Firefox. Java seems straightforward enough, and I can probably figure out the specifics of building an extension but I can't find out what commands I need to change the rendering of the bookmarks.
1)Does anyone know where I could find the relevant documentation?
2)Does anyone know of extensions that interact with bookmark rendering I could take a look at the source code of?
Everything you can do with the bookmarks is listed in the API:
http://code.google.com/chrome/extensions/dev/bookmarks.html
(and as someone said here on SO: java is related to javascript as a car is related to a carpet :] )