Selecting context menu from browser extension - javascript

I am using naver whale browser which is similar to chrome browser. I am creating a extension for the browser. I am using inbuilt english to korean image translator called papago. I am translating below image.
Original URL: image
I am selecting the translate menu as per below image(inbuilt papago translator). How can I select the translate option from the extension. I tried context-menu as per chrome extension but it didn't work.
We have papago api but it has limitation on number of calls. So I am looking for a better option. I am open to suggestions.

Related

Is it possible to trigger Google Chrome browser translate function from Chrome extension?

Small intro to a problem: I'm looking for a way to translate pages in chrome with keyboard shortcut instead of mouse input. As far as I know there's no chrome extension that enables this.
I could make an extension for this task but I need to know beforehand:
Is it possible to call Google Chrome in-browser translate function from inside Chrome extension?
I can't find any API for translator, available keybinding extensions also don't offer this functionality.
By "in-browser translate function" I mean functionality in below screen:
It's just a matter of keybindings, no internal translator modification should be used.
I use this feature very often and use a functional-but-janky workaround which works on Windows.
When a page is loaded, press the 'menu' key on the keyboard (looks like ≣, usually next to right ctrl key, shift+F10 has same functionality), then T, then left/right to switch languages.
Doesn't work if focus is on a contextual object like a text area or image or whatever (as the menu key brings up the menu specific for that object).

Launch chrome as an emulator using javascript

I have a website where editors write articles using a custom built CMS. Once done they generally test these articles on desktop, but not mobile. To fix this I was wondering if there is an easy way to launch chrome using html/javascript such that I can provide it a url and one of the device emulators? (Keep in mind these are non tech people, and would be easily confused if I asked them to emulate themselves). If thats not possible then launch chrome in a new tab with specific width and height (which matches a mobile device)? Also if possible I would prefer these new windows to be incognito so that I do not save cookies in their sessions. Is there any way to do this? Any ideas would be appreciated. Thanks for reading
Chrome Provides Device Emulator as shown in below screenshot. by pressing the f12 ( Developers tool ) you can find the option. by selecting that "Device Emulator" Icon. You can choose the device as shown in below screenshot and change the device Os and device type and resolution and Orientation.

How to remove the extension icon from the extensions bar?

I am working on a chrome extension and I have tried almost everything to get feedly mini toolkit like user interface. Feedly: read more, know more.
This provides an extension feedly mini toolkit, which gets integrated into the browser as shown in image.
I want to do something like that with my extension. I dont want to show it in chrome setting/extension bar but on a particular page like feedly.
The Question is: How to create something like feedly mini toolkit shown in the red box in the image which is there on a browser page and not in the chrome settings bar.
You need to remove the browserAction field from your manifest.json file.

Google Translate menu on website not working on iPad

I'm doing some iPad optimization work on this test URL:
http://www.cherrystoneauctions.com/test
However, I notice that the Google Translate menu at the top-right is not working on my iPad. I can display the list of languages, but if I touch one of them, the menu disappears and the language selection is not made.
I would have thought Google's code would work on iPad. Is there something I am doing wrong (or that I can correct) or is this a limitation of Google Translate?
The Google Translate element requires Flash to work. As iOS devices do not have Flash, this will not work by design.
Source
Additionally, I was able to further verify this functionality by successfully using the element using the Puffin Free web browser, which is a Flash-enabled browser.

Dragging and dropping images from Firefox into Microsoft Powerpoint

I am trying to make a web page which allows users to drag and drop images into Microsoft Office applications, specifically Powerpoint.
By default (as of FF3.5), Firefox will insert the source URL when an image is dropped rather than the image itself. After adding the following Javascript/jQuery code (derived from https://developer.mozilla.org/En/DragDrop/Drag_Operations),
$('img').attr('draggable', true).bind('dragstart', function (event) {
event.originalEvent.dataTransfer.effectAllowed = 'copy';
});
dragging and dropping works from Firefox to Word and Excel, but not to PowerPoint. For an example of what happens, see http://slides.html5rocks.com/#drag-and-drop. I have tested this with FF3.6 and FF9.
How can I make it work with PowerPoint?
Just drag'n'drop outside the boundaries of the ppt slide (to make sure you're not dropping on a predefined textbox) - and release the mouse button -no coding needed!
Firefox drag will drop the image at the center of te ppt slide.
Status quo
Sadly there is nothing you can do from within your browser and the application to enable drop support for PowerPoint.
This is something that needs to supported at source level in PowerPoint (and it seem to be if you don't drop the image on an existing element but right outside the slide frame you want to drop it onto - but probably depending on version).
If it (for some reason still) does not support the image part of the drop but just the link (and if there is no option provided for changing this behavior) there is little to do but to hope Microsoft will update PowerPoint with this support in the future, - or - check the following options for work-arounds if needed:
Add-ins
You can look into writing an add-in (or possibly just use a macro - you might need to lower security to medium [PDF] for macros) for PowerPoint that will take the link that is dropped and replace it with the image the link refers to.
Here is one place to get you started making add-ins if this is a viable option.
Here is a commercial framework that makes creating add-ins very simple.
(disclaimer in this regard: I am here assuming this will be possible due to add-ins such as this which allow you to show a live web page inside PP).
Pipe-line / work process
There is also the option of injecting a third-party applications in the pipe-line to do screen snapshots of the image and have it inserted automatically into PP.
SnagIt is such an application (and there are probably others) and it has free extensions that will allow you to integrate "snags" directly with PowerPoint.
Or (the perhaps too obvious option): simply copy the image in browser and paste it into PowerPoint.
What is your version of Powerpoint?
It's very important because image format support may be lacking.
If that's the case your code needs a minimum version warning addition.
Could also ask to convert image to suitable format.
It may even be the case that it's impossible to the version of Powerpoint you're using to support this in the way you want.
You could try to use html code.
This code might help you:
http://classroomtech.org.uk/2008/08/drag-and-drop-in-powerpoint/
Other possibilities are OLE object with a link to a image.
Could check how other Microsoft applications, that do something similar, handle things.
If that doesn't work you could try to generate an OLE object with a link to the image in it.

Categories