browser

What language(s) are programs like ActiveInbox written in?

我的梦境 提交于 2019-12-20 07:07:01
问题 I want to write something similar to ActiveInbox. In addition to original ActiveInbox, I need to add logic that will perform some actions on the emails that come. What language(s) are programs like ActiveInbox written in? Thank you 回答1: Activeinbox is a browser plugin, written in Javascript. It's easy to have a look inside: download the xpi (the Firefox version of the plugin). An xpi file is a zipfile, so open it with your zipfile manager of choice. After that you should head over to Mozilla

Slow down CSS transitions/animations into “slow motion”

只谈情不闲聊 提交于 2019-12-20 06:48:20
问题 On a Mac, if you hold the Shift key and perform an action that involves animation, it will slow down the animation. For example, hold Shift and minimise a window. This effect is described in various places (e.g. YouTube, Apple - StackExchange, The Unofficial Apple Weblog). It would be nice to slow down CSS animations/transitions in a similar way. Is there a way to achieve this (apart from simply tweaking the animation-duration value in the CSS)? 回答1: You could combine some javascript and CSS

Parsing HTML - How to get a number from a tag?

你。 提交于 2019-12-20 06:27:26
问题 I am developing a Windows Forms application which is interacting with a web site. Using a WebBrowser control I am controlling the web site and I can iterate through the tags using: HtmlDocument webDoc1 = this.webBrowser1.Document; HtmlElementCollection aTags = webDoc1.GetElementsByTagName("a"); Now, I want to get a particular text from the tag which is below: <a href="issue?status=-1,1,2,3,4,5,6,7&@sort=-activity&@search_text=&@dispname=Show Assigned&@filter=status,assignedto&@group=priority&

webBrowser.Document.Write() Irregular Performance

感情迁移 提交于 2019-12-20 06:16:57
问题 I am using a webBrowser control as the main output window for my application. The first time I use document.write(), the text is completely replaced. The second time the text that I am writing is appended to the end. I have confirmed that I am not writing twice or adding strings too many times by accident. Why would the control behave this way? 回答1: Call OpenNew before writing the document. HtmlDocument doc = webBrowser1.Document.OpenNew(true); doc.Write("<HTML><BODY>This is a new HTML

javascript on page load check if a span (under <tr>) with a specific class exist, if does not exist remove the entire <tr>

我是研究僧i 提交于 2019-12-20 06:04:29
问题 I am trying to create my own greasemonkey script for my favorite directory listing site :) The thing is not everything it list is beneficial to me, I inspected the website code and as it seems, each entry is under Now, and as it seems, I am only interested with those which have this format: <tr class="project-description"> <td colspan="6"> <div class="project-desc-inner"> <div class="project-synopsis"> <p class="trunk8">This is an entry</p> </div> <div class="project-verification"> <span

How to hide browser when it is about to be shown momentarily - Android

帅比萌擦擦* 提交于 2019-12-20 05:45:27
问题 I am developing a native app that uses OAuth2 for user authentication to a web app. When user asks for authentication, the system browser starts via Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(myLinkHere)) , the login page is displayed, user inserts their username/password and the access_token is returned to the app. My problem is that when the user has saved their credentials in the browser and an authentication request comes about, then the browser starts momentarily and

multi-tab web browsers with UIWebView on iOS

若如初见. 提交于 2019-12-20 05:42:10
问题 I'm creating a simple web browser. I want my users to add tabs and browse many web pages at the same time, like in Safari, Firefox or Chrome. I've done this and it works great but I don't know if there is a simpler way to do this. When the user adds a new tab, my application creates a new UIWebView in the background that is related to the new tab and loads a new URL. When the user selects another tab, the UIWebView that is related with this tab appears and the other disappears. Just it.. 回答1:

Take screenshot Webbrowser in wp7

﹥>﹥吖頭↗ 提交于 2019-12-20 05:28:31
问题 I have a code to take screenshot in wp7. int Width = (int)LayoutRoot.RenderSize.Width; int Height = (int)LayoutRoot.RenderSize.Height; // Write the map control to a WwriteableBitmap WriteableBitmap screenshot = new WriteableBitmap(LayoutRoot, new TranslateTransform()); using (MemoryStream ms = new MemoryStream()) { // Save it to a memory stream screenshot.SaveJpeg(ms, Width, Height, 0, 100); // Take saved memory stream and put it back into an BitmapImage BitmapImage img = new BitmapImage();

Close browser window using java code

橙三吉。 提交于 2019-12-20 05:25:29
问题 How should i close an opened browser window using java code. I have found a way to first find the process then end that process. Is there any better way? I have opened the browser initially using the below code. I am working in CentOS. String url = "http://192.168.40.174/test15.html"; Runtime runtime = Runtime.getRuntime(); runtime.exec("/usr/bin/firefox -new-window " + url); 回答1: You can put it in a Process and kill that. Runtime runtime = Runtime.getRuntime(); Process p = runtime.exec("/usr

window.print not working with opera browser

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-20 05:13:52
问题 I am trying to open a print dialog box in Opera browser using javascript code as <script language=javascript> window.print(); //This is working in IE, Netscape, Firefox, but not working in Opera </script> where as if I am using the following code Opera browser understands and able to open print dialog box <input type="button" value="Print this page" onClick="javascript:window.print();" ID="Button1" NAME="Button1"> My requirement is to open print dialog box in Opera browser using script block.