Skip to content

EarthPeople/WP-Content-Discovery-Chrome-Extension

Repository files navigation

WP Content Discovery

It's a Chrome Extension that detect pages, posts and users on WordPress sites using the WP REST API.

Download the pre-built extension from the Chrome Webstore.

The files and their connections

The connection between the files is something like this:

  • when a page is loaded content_script.js is injected
  • script checks if the API exists for the current site
  • the result is sent to background.js, who sets the status of the icon
  • and the popup.html does the fetching of the posts and so on

Links and stuff

Build Setup

The extension must unfortunately be built, because:

Some environments, such as Google Chrome Apps, enforce Content Security Policy (CSP), which prohibits the use of new Function() for evaluating expressions. The standalone build depends on this feature to compile templates, so is unusable in these environments.

The build process compiles the VUE template so it can work in the Chrome extension environment.

# install dependencies
npm install

# build it. then you can install/reaload the extension in chrome
npm run build

Example websites that works

Just some random ones that had updated to 4.7 when creating this plugin.

About

WP Content Discovery - a Chrome Extension to detect pages, posts and users on WordPress sites using the WP REST API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •