Coder Social home page Coder Social logo

kings41 / ccsearch-browser-extension Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cc-archive/ccsearch-browser-extension

0.0 0.0 0.0 52.64 MB

[PROJECT TRANSFERRED] Cross-Browser extension to search, filter and use images in the public domain and under Creative Commons licenses.

Home Page: https://github.com/wordpress/openverse-browser-extension

License: MIT License

JavaScript 62.13% HTML 30.47% SCSS 7.39%

ccsearch-browser-extension's Introduction


Project Transferred

This project was transfered to WordPress:

For additional context see:


CC Search Browser Extension

A Cross-Browser extension that lets you search, filter, and use images in the public domain and under Creative Commons licenses.

MIT License platforms prs welcome

Features

Please visit https://opensource.creativecommons.org/ccsearch-browser-extension/ to preview a few features in action.

Feature Firefox Chrome Opera Edge
Search and filter CC Licensed images. Yes Yes Yes Yes
One click easy attribution. Yes Yes Yes Yes
Image tags and recommendations. Yes Yes Yes Yes
Download images (and attribution). Yes Yes Yes Yes
Bookmark images. Yes Yes Yes Yes
Export and import bookmarks. Yes Yes Yes Yes
Options page for custom settings. Yes Yes Yes Yes
Sync your custom setting and bookmarks across devices. Yes Yes No Yes
Dark Mode. Yes Yes Yes Yes

Installation from source

You can install the extension directly from the source. Follow the following steps:

  1. Clone the repository
git clone https://github.com/creativecommons/ccsearch-browser-extension.git
  1. Install project dependencies
npm install
  1. Run the following command to compile SASS to CSS and bundle JS. The compiled files will be in dist folder.
npm run build

Note: If you want to install the extension for development, you should run npm run dev.

Troubleshooting build failures

  1. If you get the following error:
'TARGET' is not recognized as an internal or external command

then most likely webpack-cli is not installed on your dev machine.

  • Here are the few things you can try:
    • Try deleting the folder node_modules and reinstalling webpack-cli
  npm install --save-dev webpack-cli
  • if reinstalling node modules do not solve the issue then run thefollowing to install webpack-cli globally.
npm install -g webpack-cli

Loading the extension in the browser

  • Mozilla Firefox
    • Navigate to about:debugging.
    • Click on "Load Temporary Add-on" button.
    • From the file explorer, choose ccsearch-browser-extension/dist/firefox/manifest.json.
  • Google Chrome
    • Navigate to chrome://extensions.
    • Click on "Load Unpacked" button (make sure you have enabled the Developer mode).
    • From the file explorer, choose ccsearch-browser-extension/dist/chrome.
  • Opera
    • Navigate to about://extensions.
    • Click on "Load Unpacked" button (make sure you have enabled the Developer mode).
    • From the file explorer, choose ccsearch-browser-extension/dist/opera.
  • Edge
    • Navigate to edge://extensions.
    • Click on "Load Unpacked" button (make sure you have enabled the Developer mode).
    • From the file explorer, choose ccsearch-browser-extension/dist/edge.

Contribution

Checkout CONTRIBUTING.md for general guidelines for contributing code to CC Open Source.

For contribution guidelines and development instructions specific to this particular project, please checkout INSTRUCTIONS.md.

Debugging in Development Mode

  • Mozilla Firefox

    • Navigate to about:debugging and from sidebar select This Firefox.

    • Click on "Load Temporary Add-on" button.

    • From the file explorer, choose ccsearch-browser-extension/dist/firefox/manifest.json.

    • You will be now able to see CC search browser extension. Now click on the Inspect button.

    • A new tab will open with firefox debugger. Now first, click on the three dots and select "Disable Popup Auto-Hide".

    • Now click on the browser extension from top right corner and the DOM will be loaded with the content to debug.

  • Google Chrome, Opera, Microsoft Edge

After you have loaded the extension, the steps are pretty straight forward.

  • Right-click in extension area and select "Inspect element".

  • Developer tool will now open loaded with the content to debug.

License

See LICENSE.

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.