Coder Social home page Coder Social logo

chrome-command-line-serve's Introduction

背景

其实很久以前就发现了you-get这个神器,可以获取绝大部分视频网站的h5地址,作用很明显,可以去广告,并且使用h5可以节省CPU资源,于是就想着制作一个Chrome插件调用命令行去执行一些命令,但是Google看了很多资料都无法完成这种操作(一般都是使用原生的应用,使用scoket进行交互),于是自己理了下思路,完成了如下的插件。

原理

安装方法

Chrome中输入chrome://extensions/拖入crx即可 还需要配合Chrome-Command-Line-Serve使用。使用方法python3 main.py

使用

在选项中定义一条命令行如图: 菜单中会自动生成相应的菜单,注意$url在执行命令时会被替换成当前的url, 图上的命令会自动使用you-get打开播放器播放当前地址的视频。 ##相关项目地址 Chrome插件 Chrome-Execute-Command-Line Python 脚本Chrome-Command-Line-Serve

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.