Skip to main content

Posts

Showing posts with the label programming

What permissions in browser extension manifest ?

    What permissions should be declared when creating a browser extension manifest ? When in a browser extension's manifest file, in the section   "permissions"  , defines what browser resources and features the extension needs access to? Add the permissions are necessary for the extension to perform certain tasks, such as accessing the active tab, storing data, or executing scripts on web pages. Here is a list of all available permissions that can be declared in a browser extension manifest file: activeTab   Access the current tab by clicking the extension icon. alarms   Allows you to create, modify, and delete alarms. background Allows scripts to run in the background. bookmarks Access to browser bookmarks. browsingData Allows you to clear browsing data. clipboardRead Read access to clipboard contents. clipboardWrite Allows you to save data to the clipboard. contentSettings Manage content settings. contextMenus Creating custom context menus. cookies ...

How create browser extension ?

    Creating an extension for a browser like Google Chrome or Microsoft Edge is a process that can be broken down into a few steps. Here is the basic procedure: 1.  Configuring the extension folder and manifest file Create a new folder   on your computer where you will store all the files related to the extension. You can name it something like "MyFirstExtension". Add the file   manifest.json  to this folder. The manifest file contains metadata about the extension, such as name, version, description, and required permissions. Sample code for the file  manifest.json looks like this: { "manifest_version" : 3 , "name" : "My First Chrome Extension" , "version" : "1.0" , "description" : "A simple Chrome extension tutorial" , "icons" : { "48" : "icon.png" } , "permissions" : [ "tabs" , "activeTab" , "scripting...

How to use NetStat cmd windows tool in PHP ?

Netstat  (Network Statistics) is a command-line tool that provides information about network connections, routing paths, interface statistics, and other aspects of the network. It is used to diagnose network problems and monitor network activity. Netstat Features Viewing active connections  : Netstat shows a list of all active TCP, UDP, and UNIX connections. Port Information  : You can get information about open ports and those that are listening. Protocol Statistics  : Netstat provides statistics for various protocols like TCP, UDP, ICMP. Routing Tables  : The tool shows the routing table, which is useful for analyzing the routes of packets in the network. Network Interfaces  : Netstat displays statistics for network interfaces, such as the number of packets sent and received. Netstat Usage Examples Displaying all connections and ports  : netstat -a Display only TCP connections  : netstat -at Display only UDP connections  : netstat -au Displ...

audio style css

  audio::-webkit-media-controls-panel audio::-webkit-media-controls-mute-button audio::-webkit-media-controls-play-button audio::-webkit-media-controls-timeline-container audio::-webkit-media-controls-current-time-display audio::-webkit-media-controls-time-remaining-display audio::-webkit-media-controls-timeline audio::-webkit-media-controls-volume-slider-container audio::-webkit-media-controls-volume-slider audio::-webkit-media-controls-seek-back-button audio::-webkit-media-controls-seek-forward-button audio::-webkit-media-controls-fullscreen-button audio::-webkit-media-controls-rewind-button audio::-webkit-media-controls-return-to-realtime-button audio::-webkit-media-controls-toggle-closed-captions-button

Before implementing the audio html code on your page, check your browser

If you want to embed the audio code on your website, for example <audio id="song">      <source src="Relase.mp3" type="audio/mpeg"> </audio> <script>      document.getElementById("song").play(); </script> check your browser settings to make sure you don't have autoplay disabled Edge      Settings           Cookies and site permissions                Media autoplay                     Control whether audio and video play automatically on sites                          Allow

block chain php

invoking commands include('blockchain.php'); $run = new shell_exec; $string=$run->ini_set('blocks',0,0,'chain'); $block=$run->ini_set('string',0,1,'chain'); $block=$run->ini_set('string',1,1,'chain'); $block=$run->ini_set('string',2,1,'chain'); blockchain.php class shell_exec { private $string; private $type; private $action; private $net; private $position; private $output; public function ini_set($string, $type, $action, $net)  { if((isset($string))&&(isset($type))&&(isset($action))&&(isset($net))) { $this->string = $string; $this->type = $type; $this->action = $action; $this->net = $net; $this->position = NULL; if(self::catch())  { $output = self::catch(); $this->output = $output; return $this->output; }  else  { return false;  } } else  { return false;  }...