browser-plugin

Javascript Detect if Adobe Reader is installed

吃可爱长大的小学妹 提交于 2019-12-05 11:43:24
We have some PDF forms that don't display correctly in non-Adobe PDF readers (i.e. WebKit's built-in PDF reader does not properly display some proprietary Adobe things). We want to detect when users don't have Adobe's PDF Reader installed and give them a little warning, but I'm having a hard time figuring out how to do it in 2014. It seems this script worked in 2011. Basically it loops through navigator.plugins and looks for plugins with the name Adobe Acrobat or Chrome PDF Viewer . for(key in navigator.plugins) { var plugin = navigator.plugins[key]; if(plugin.name == "Adobe Acrobat") return

Write once run anywhere browser plugin tool/framework/language?

时间秒杀一切 提交于 2019-12-04 12:43:16
I'm looking to create a browser plugin which would run in all of the major browsers, the only problem is that it seems I have to re-create the plugin in every browser. Is there some tool or framework or language I can write a plugin with where it will automatically work on all major browsers? All I need the button to do is scrape webpage content off the active page and from a few of the linked pages, then send it to a program with sockets or named pipes. jarkam Maybe these "frameworks" can help you: FireBreath Juce 来源: https://stackoverflow.com/questions/3823635/write-once-run-anywhere-browser

What is The difference between Firefox extension and plugin?

柔情痞子 提交于 2019-12-04 08:56:15
问题 In Firefox there are plugins and extensions. Could you please explain to me why these addons have different name and tabs ? Does they differ so much so they need different names? I think it's a little unnatural to differ these things, extensions have so much and more functionality, what they lack for comparing to plugins? 回答1: The difference is both historical and real: plugins are compiled, loadable modules, originally descended from NPAPI; they can live outside of the browser's process

NPAPI Plugin not loaded on chrome

柔情痞子 提交于 2019-12-04 02:03:37
问题 I have a npapi plugin composed of a dll and manifest.json file. This npapi dll is detected as plugin on chrome ie it is listed on about:plugins page. However, when I invoke this plugin in sample html page using tag, it says 'Plugin failed to load'. Any ideas why this plugin fails to load in chrome. Thanks 回答1: With the information you have provided it is impossible to say for sure, but I would guess it is one of two things: Your plugin may have an external dependency that isn't being found.

What is The difference between Firefox extension and plugin?

别说谁变了你拦得住时间么 提交于 2019-12-03 01:24:10
In Firefox there are plugins and extensions. Could you please explain to me why these addons have different name and tabs ? Does they differ so much so they need different names? I think it's a little unnatural to differ these things, extensions have so much and more functionality, what they lack for comparing to plugins? The difference is both historical and real: plugins are compiled, loadable modules, originally descended from NPAPI ; they can live outside of the browser's process space (which leads to all kinds of fun interoperability issues and vulerabilities). The most common examples of

How to embed Delphi VCL form into HTML page using NPAPI?

戏子无情 提交于 2019-12-02 23:24:06
问题 There are known ways of writing ActiveX plugins with Delphi, but the ActiveX itself poses a lot of limitations in browsers other than IE. So I was thinking - how to compile a plugin in NPAPI format, natively compatible with Chrome/Firefox? Intent of the plugin is to allow to embed a VCL form into the HTML page and be able to bi-directionaly communicate with this form using JavaScript. E.g. clicking a button on a form would call JavaScript function on the page, and JavaScript functions on the

Unable to pass integer from javascript to npapi plugin

雨燕双飞 提交于 2019-12-02 12:31:10
问题 I am writing a simple napapi plugin where I have to print the value passed from javascript function in html page. But I am facing problem while doing it. It works properly on firefox. But I want to do it on qt fancybrowser example. The value printed is always 0 no matter whatever value I pass in javascript code. The javascript code is as follows : <html> ..... <script> function process_data() { PluginObject = document.getElementById("Object"); var i =100; if(PluginObject){ ret = PluginObject

How to embed Delphi VCL form into HTML page using NPAPI?

∥☆過路亽.° 提交于 2019-12-02 11:18:14
There are known ways of writing ActiveX plugins with Delphi, but the ActiveX itself poses a lot of limitations in browsers other than IE. So I was thinking - how to compile a plugin in NPAPI format, natively compatible with Chrome/Firefox? Intent of the plugin is to allow to embed a VCL form into the HTML page and be able to bi-directionaly communicate with this form using JavaScript. E.g. clicking a button on a form would call JavaScript function on the page, and JavaScript functions on the page could send events to a VCL form. How this can be achieved? There's a list of existing NPAPI

Unable to pass integer from javascript to npapi plugin

纵然是瞬间 提交于 2019-12-02 03:58:15
I am writing a simple napapi plugin where I have to print the value passed from javascript function in html page. But I am facing problem while doing it. It works properly on firefox. But I want to do it on qt fancybrowser example. The value printed is always 0 no matter whatever value I pass in javascript code. The javascript code is as follows : <html> ..... <script> function process_data() { PluginObject = document.getElementById("Object"); var i =100; if(PluginObject){ ret = PluginObject.process_Data(i); } } </script> .... </html> The plugin code is as follows : ..... bool ScriptableObject

How to create plugins/addons for firefox, IE and chrome

◇◆丶佛笑我妖孽 提交于 2019-12-01 14:18:22
I need to create plug-ins/add-ons for IE, firefox and chrome browsers for the following requirement: If the url requested is in a particular format/ matching a particular regex pattern, the plugin has to block the request and pop up and alert box. I have searched a lot but did not find anything helpful. For IE, I think we can create BHO for this purpose. But is there a way to achieve this using javascript? Thanks in advance. Regards, Maggi Unfortunately, IE's addon development is still very arcane compared to Firefox and Chrome for the behavior you're trying to accomplish. You'll have to