随笔分类 - electron与chromium内核
摘要:electron加入headless包。打印到pdf:-print-to-pdf 打印到png图片: --screenshot chrome的启动main:src\chrome\app\chrome_main.cc 用electron执行headless: e run --headless --en
阅读全文
摘要:Skip to main content CHROME CHROME OS CHROME APIS <webview> Tag Description: Use the webview tag to actively load live content from the web over the n
阅读全文
摘要:SwiftShader 是个基于cpu软解码实现OpenGL ES and Direct3D 9 graphics APIs12。提供硬解码独立的3D图形。 在electron上,替换调ANGLE库,即用SwiftShader编译出的 libegl.dll 和 libglesv2.dll覆盖ANGL
阅读全文
摘要:Headless Chrome architecture skyostil@ February 17th, 2016 go/ghost-rider (internal link), crbug.com/546953 Introduction Goals Non-Goals Architecture
阅读全文
摘要:安装 puppeteer插件npm install puppeteer -S 引入puppeteer这个插件 const puppeteer = require('puppeteer'); 两种方式抓取网页快照 用browserless.io国外网站提供的服务。这个服务对测试demo免费。无需注册。
阅读全文
摘要:1, 创建窗口时必须打开nodeIntegration: win = new BrowserWindow({ width: 800, height: 600, sandbox: true, webPreferences: { nodeIntegration: true }, }) 2,示例 html
阅读全文
摘要:1,在D:\dev\electron9\src\content\public\browser\content_browser_client.h 中,放着对外可以覆盖的接口 如,强制下载而不是用plugin打开: // Called on IO or UI thread to determine wh
阅读全文
摘要:http://www.chromium.org/developers/how-tos/
阅读全文
摘要:在提交github代码时会自动lint检测。对c++代码,可以使用clang-format自动格式化,不符合格式的会自动调整。 在electron目录下,执行 npm run lint Using clang-format on C++ Code clang-format is a tool to
阅读全文
摘要:https://blog.logrocket.com/how-to-set-up-a-headless-chrome-node-js-server-in-docker/ January 10, 2020 4 min read Headless browsers have become very po
阅读全文
摘要:ozone chromium headless
阅读全文
摘要:D:\dev\electron7\src>ninja -C out/Testing net_unittestsout\Testing\net_unittests.exe --gtest_filter=*HttpContentDispositionTest.Filename*运行:out/Debug/
阅读全文
摘要:chromium 保存文件名乱码 content-disposition
阅读全文
摘要:把网页输出成pdf:.\chromium -disable-gpu -headless -print-to-pdf https://www.bilibili.com 生成的pdf会花费些时间。等几分钟,看看chromium目录下应该有 output.pdf。 参考 https://segmentfa
阅读全文
摘要:1,外围调用的 js方法: win.webContents.session.getCacheData("http://192.168.50.206:8080/back.html1").then( result=>{ console.log("getCacheData resolve:"+result
阅读全文
摘要:nodejs c++扩展 electron native module
阅读全文
摘要:js中函数,其实也有属性,比如: function myfunc(){ return 888; } myfunc.length //这个就是函数的属性 c++中实现时, obj_template->SetCallAsFunctionHandler(Myfunc); 这样实现的。类似java的类,就是
阅读全文
摘要:所有chrome内部使用协议查看: chrome://chrome-urls/ chrome缓存查看器: http://www.nirsoft.net/utils/chrome_cache_view.html Chrome DevTools Frontend 运行原理浅析 深入理解 Chrome D
阅读全文
摘要:chrome 缓存查看 chrome://version/ 可以看到缓存目录 chrome://cache/ == chrome://view-http-cache/ 可以看到已经编码的缓存文件。需要在chrome 65以前版本。后来的删除了。 electron 缓存目录 unix dir: /ho
阅读全文

浙公网安备 33010602011771号