Git Product home page Git Product logo

Comments (5)

protecthem1 avatar protecthem1 commented on June 11, 2024

from full-page-screen-capture-chrome-extension.

mrcoles avatar mrcoles commented on June 11, 2024

Hey @Kalaiarasan469 this is a Chrome extension. There are a couple things that I’m not fully understanding from your request to make it an npm package:

  1. If it were an NPM package, then it should be a library that extracts part of this, not the whole extension
  2. Because it is a Chrome extension it is using privileged APIs that the Chrome browser exposes to the extension, e.g., chrome.tabs.executeScript, chrome.tabs.sendMessage, chrome.tabs.captureVisibleTab, so (a) it needs to run in a browser, not node and (b) it needs to run with chrome extension privileges in order to have access to those APIs

from full-page-screen-capture-chrome-extension.

garyking avatar garyking commented on June 11, 2024

Use Puppeteer for this purpose, to take screenshots with Node. Google search for "capture screenshots with puppeteer".

from full-page-screen-capture-chrome-extension.

Kalaiarasan469 avatar Kalaiarasan469 commented on June 11, 2024

@mrcoles What you said was correct. As @garyking said I used puppeteer to do it. Thanks guys

from full-page-screen-capture-chrome-extension.

mrcoles avatar mrcoles commented on June 11, 2024

Cool thanks! Yeah, the real magic of the Chrome extension is that it lets you take a screenshot of what you’re currently viewing while browsing the web, so you can capture some unique state that won’t be recreated by sharing the link with someone else. Thanks for providing a suggestion @garyking !

from full-page-screen-capture-chrome-extension.

Related Issues (20)

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.