1105 self.tr("Copy Link to Clipboard"), self.__copyLink) |
1105 self.tr("Copy Link to Clipboard"), self.__copyLink) |
1106 menu.addAction( |
1106 menu.addAction( |
1107 UI.PixmapCache.getIcon("mailSend.png"), |
1107 UI.PixmapCache.getIcon("mailSend.png"), |
1108 self.tr("Send Link"), |
1108 self.tr("Send Link"), |
1109 self.__sendLink).setData(hit.linkUrl()) |
1109 self.__sendLink).setData(hit.linkUrl()) |
1110 if Preferences.getHelp("VirusTotalEnabled") and \ |
1110 ## if Preferences.getHelp("VirusTotalEnabled") and \ |
1111 Preferences.getHelp("VirusTotalServiceKey") != "": |
1111 ## Preferences.getHelp("VirusTotalServiceKey") != "": |
1112 menu.addAction( |
1112 ## menu.addAction( |
1113 UI.PixmapCache.getIcon("virustotal.png"), |
1113 ## UI.PixmapCache.getIcon("virustotal.png"), |
1114 self.tr("Scan Link with VirusTotal"), |
1114 ## self.tr("Scan Link with VirusTotal"), |
1115 self.__virusTotal).setData(hit.linkUrl()) |
1115 ## self.__virusTotal).setData(hit.linkUrl()) |
1116 |
1116 |
1117 if not hit.imageUrl().isEmpty(): |
1117 if not hit.imageUrl().isEmpty(): |
1118 if not menu.isEmpty(): |
1118 if not menu.isEmpty(): |
1119 menu.addSeparator() |
1119 menu.addSeparator() |
1120 menu.addAction( |
1120 menu.addAction( |
1138 menu.addSeparator() |
1138 menu.addSeparator() |
1139 menu.addAction( |
1139 menu.addAction( |
1140 UI.PixmapCache.getIcon("adBlockPlus.png"), |
1140 UI.PixmapCache.getIcon("adBlockPlus.png"), |
1141 self.tr("Block Image"), self.__blockImage)\ |
1141 self.tr("Block Image"), self.__blockImage)\ |
1142 .setData(hit.imageUrl().toString()) |
1142 .setData(hit.imageUrl().toString()) |
1143 if Preferences.getHelp("VirusTotalEnabled") and \ |
1143 ## if Preferences.getHelp("VirusTotalEnabled") and \ |
1144 Preferences.getHelp("VirusTotalServiceKey") != "": |
1144 ## Preferences.getHelp("VirusTotalServiceKey") != "": |
1145 menu.addAction( |
1145 ## menu.addAction( |
1146 UI.PixmapCache.getIcon("virustotal.png"), |
1146 ## UI.PixmapCache.getIcon("virustotal.png"), |
1147 self.tr("Scan Image with VirusTotal"), |
1147 ## self.tr("Scan Image with VirusTotal"), |
1148 self.__virusTotal).setData(hit.imageUrl()) |
1148 ## self.__virusTotal).setData(hit.imageUrl()) |
1149 |
1149 |
1150 element = hit.element() |
1150 element = hit.element() |
1151 if not element.isNull(): |
1151 if not element.isNull(): |
1152 if self.__isMediaElement(element): |
1152 if self.__isMediaElement(element): |
1153 if not menu.isEmpty(): |
1153 if not menu.isEmpty(): |
1475 if muted: |
1475 if muted: |
1476 self.__clickedMediaElement.evaluateJavaScript("this.muted = false") |
1476 self.__clickedMediaElement.evaluateJavaScript("this.muted = false") |
1477 else: |
1477 else: |
1478 self.__clickedMediaElement.evaluateJavaScript("this.muted = true") |
1478 self.__clickedMediaElement.evaluateJavaScript("this.muted = true") |
1479 |
1479 |
1480 def __virusTotal(self): |
1480 ## def __virusTotal(self): |
1481 """ |
1481 ## """ |
1482 Private slot to scan the selected URL with VirusTotal. |
1482 ## Private slot to scan the selected URL with VirusTotal. |
1483 """ |
1483 ## """ |
1484 act = self.sender() |
1484 ## act = self.sender() |
1485 url = act.data() |
1485 ## url = act.data() |
1486 self.mw.requestVirusTotalScan(url) |
1486 ## self.mw.requestVirusTotalScan(url) |
1487 |
1487 ## |
1488 def __searchRequested(self, act): |
1488 def __searchRequested(self, act): |
1489 """ |
1489 """ |
1490 Private slot to search for some text with a selected search engine. |
1490 Private slot to search for some text with a selected search engine. |
1491 |
1491 |
1492 @param act reference to the action that triggered this slot (QAction) |
1492 @param act reference to the action that triggered this slot (QAction) |