Skip to content

A simple Chrome extension that detects if the current website is built using WordPress.

Notifications You must be signed in to change notification settings

EL-OUARDY/wordpress-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress Detector Chrome Extension

A simple Chrome extension that detects if the current website is built using WordPress. The extension icon changes from gray to blue when a WordPress site is detected.

Features

  • Visual Indicator: Gray icon turns blue when WordPress is detected
  • Smart Detection: Uses multiple indicators to accurately identify WordPress sites:
    • WordPress generator meta tags
    • /wp-content/ and /wp-includes/ directories
    • WordPress REST API endpoints
    • WordPress-specific CSS classes and body classes
    • RSS feed links
    • Admin and login URLs
    • Theme and plugin directories

How It Works

The extension uses a content script that runs on every webpage and checks for various WordPress indicators:

  1. Meta Tags: Looks for WordPress generator meta tags
  2. File Paths: Searches for WordPress-specific paths like /wp-content/, /wp-includes/
  3. CSS Classes: Detects WordPress-specific CSS classes
  4. API Endpoints: Checks for WordPress REST API links
  5. URLs: Looks for WordPress admin and login URLs

The extension requires at least 2 positive indicators to classify a site as WordPress, ensuring accurate detection while minimizing false positives.

Installation

  1. Open Chrome and navigate to chrome://extensions/
  2. Enable "Developer mode" by toggling the switch in the top right
  3. Click "Load unpacked" button
  4. Select the wordpress-detector folder containing the extension files
  5. The extension should now appear in your extensions list

Usage

  1. After installation, you'll see a gray WordPress icon in your Chrome toolbar
  2. Navigate to any website
  3. The icon will automatically change to blue if the site is built with WordPress
  4. Hover over the icon to see additional information about the detection

Files Structure

wp-check/
├── manifest.json          # Extension configuration
├── content.js             # Content script for WordPress detection
├── background.js          # Background service worker
├── icons/                 # Icon files directory
└── README.md              # This file

Permissions

The extension requires the following permissions:

  • activeTab: To access the current tab's content for WordPress detection
  • scripting: To inject the content script for detection

License

This project is open source and available under the MIT License.

About

A simple Chrome extension that detects if the current website is built using WordPress.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published