opera

Is there any way to make onbeforeunload work in Opera?

╄→гoц情女王★ 提交于 2019-11-27 08:49:49
问题 I know, that Opera doesnt support JS onbeforeunload message and will not support it. But is there any way to make it work somehow? Or maybe some jQuery plugins can make it work and let script know if window is going to close? I found only way to make onclick for every a tag, but this is not the complete solution. 回答1: Upgrade to Opera 15. onbeforeunload is now supported in that version because they moved to the WebKit engine. It is still not supported in 12.x because that version and all

Detect left mouse button press

Deadly 提交于 2019-11-27 08:34:28
I hate this mess with the mouse buttons created by W3C an MS! I want to know if the left mouse button is pressed when I get a mousedown event. I use this code // Return true if evt carries left mouse button press function detectLeftButton(evt) { // W3C if (window.event == null) { return (evt.button == 0) } // IE else { return (evt.button == 1); } } However, it does not work in Opera and Chrome, because it so happens that window.event exists there too. So what do I do? I have some browser detection, but we all know it cannot be relied upon with all the masking some browsers do lately. How do I

对某单位的 APT 攻击样本分析

百般思念 提交于 2019-11-27 07:56:55
作者:SungLin@知道创宇404实验室 时间:2019年7月30日 原文链接 一.恶意邮件样本的信息与背景 在六月份的某单位HW行动中,知道创宇HW安全团队通过创宇云图APT威胁感知系统并结合腾讯御点终端安全管理系统成功处置了一起APT攻击事件。 7月份对同一样本的补充截图如下: 在本次APT攻击中,攻击者通过发送鱼叉式钓鱼邮件,配合社会工程学手段诱导用户运行宏代码,进而下载尾部带有恶意payload压缩包的可执行文件。通过层层释放最终运行可窃取受害人员各类机密信息、维持权限、接收远端控制的木马。 文档打开后,会诱导用户需要开启宏才能查看被模糊的图片,一旦用户点击开启宏,恶意样本将会在用户电脑上运行、潜伏、收集相应的信息、等待攻击者的进一步指令。 该APT样本整体运行流程图如下: 二.宏病毒文档的提取与调试 使用OfficeMalScanner解压Office文档并提取文档所带的vba宏代码,打开Office文档启用宏后,采用快捷键Alt+F11开启宏代码的动态调试。该宏代码作为实施攻击的入口,实现了恶意样本的下载和执行。本章也将分析下载和执行的整体流程。 解压该Office文档后,宏代码被封装在xl文件夹下的vbaProject.bin文件中。 使用OfficeMalScanner这个工具的命令info从vbaProject.bin中提取宏代码,提取完后可以知道有6个宏代码

Selenium WebDriver and Opera Driver

喜你入骨 提交于 2019-11-27 06:43:46
问题 I would like to run my Selenium WebDriver tests on Opera, but when I had a look at the Opera driver at Selenium HQ and GitHub page, it says: Opera Driver requires Opera 12.x and older versions Note that OperaDriver is only compatible with Presto-based Operas up until 12.16. Blink-based Operas (15 and onwards) are not supported. Opera is now up to version 22.0, so far beyond the maximum supported version of 12. So, my questions are: - If there is no Opera driver for Selenium, then how does one

Drive Opera with selenium python

℡╲_俬逩灬. 提交于 2019-11-27 06:27:18
问题 I added to my environment variable SELENIUM_SERVER_JAR = C:\selenium_drivers\selenium-server-standalone.jar Which I downloaded here http://selenium-release.storage.googleapis.com/index.html?path=2.46/ Python script: from selenium import webdriver webdriver.Opera() Output: 13:37:37.906 INFO - Launching a standalone Selenium Server 13:37:38.104 INFO - Java: Oracle Corporation 25.45-b02 13:37:38.104 INFO - OS: Windows 8 6.2 x86 13:37:38.132 INFO - v2.46.0, with Core v2.46.0. Built from revision

How to do a Chrome/Opera specific stylesheet?

夙愿已清 提交于 2019-11-27 05:19:44
问题 I need to do chrome/opera hacks because of a font replacement script wanted by the client that breaks things... this is sad but everything is working in IE6-7, FF2-3 and Safari. I have no way of fixing the script itself, I can only hack around it using CSS and HTML. I'm trying to do something in the lines of : <!--[if IE 6]> <link rel="stylesheet" href="ie6.css" type="text/css" media="screen" /> <![endif]--> Is it possible? I saw this way of doing chrome specific fixes like: body:nth-of-type

window.resize is not working in chrome and opera

痴心易碎 提交于 2019-11-27 04:34:29
问题 window.resize is not working in chrome and opera ..how to make it work? 回答1: There is no window.resize() ...however... There are: window.resizeTo(width, height) window.resizeBy(x, y) Important notes: You can't resize a window or tab that wasn’t created by window.open . You can't resize a window or tab when it’s in a window with more than one tab . Also, even if you create window by window.open(...) it is not resizable by default ...see 4. To make window created by window.open() resizable, you

How can I zoom an HTML element in Firefox and Opera?

╄→尐↘猪︶ㄣ 提交于 2019-11-27 03:35:27
How can I zoom an HTML element in Firefox and Opera? The zoom property is working in IE, Google Chrome and Safari, but it’s not working in Firefox and Opera. Is there any method for adding this property to Firefox and Opera? Mubeen Try this code, this’ll work: -moz-transform: scale(2); You can refer to this . Zoom and transform scale are not the same thing. They are applied at different times. Zoom is applied before the rendering happens, transform - after. The result of this is if you take a div with width/height = 100% nested inside of another div, with fixed size, if you apply zoom,

filter: blur(1px); doesn't work in Firefox, Internet Explorer, and Opera

不羁岁月 提交于 2019-11-27 03:13:32
I have a problem with CSS. When I try to do -webkit-filter: blur(1px); -moz-filter: blur(1px); -ms-filter: blur(1px); -o-filter: blur(1px); filter: blur(1px); it looks perfect in Safari and Chrome, but the blur doesn't show up at all in Firefox, Opera, or Internet Explorer. Do those browsers support it? Or is there another method of getting the entire page to blur? Arpad Bajzath Try with SVG filter. img { filter: blur(3px); -webkit-filter: blur(3px); -moz-filter: blur(3px); -o-filter: blur(3px); -ms-filter: blur(3px); filter: url(#blur); filter: progid:DXImageTransform.Microsoft.Blur

Make CSS apply only for Opera 11?

喜夏-厌秋 提交于 2019-11-27 02:50:40
问题 Is there a way to make some CSS rules apply only for Opera (11)? 回答1: I love challenges! It took me some time but I finally found it: body {background:0} /* default */ @media not screen and (1) { body {background:red} /* OP 11 */ } @media not screen and (orientation) { body {background:green} /* for the earlier versions of Opera that pick the first media query's rule + chrome/safari */ } browsers tested: red: Opera 11 green: Opera 10 and 10.5 + WebKit browsers none: Opera 9.26 + Firefox 3.6 +