Square Face Generator - GitHub Avatar Helper

Add a "Generate Pixel Avatar" button to GitHub profile pages

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
  // @name         Square Face Generator - GitHub Avatar Helper
  // @namespace    http://square-face-generator.com/
  // @version      1.0
  // @description  Add a "Generate Pixel Avatar" button to GitHub profile pages
  // @author       Square Face Generator
  // @match        https://github.com/*
  // @icon         https://square-face-generator.com/favicon.svg
  // @grant        none
  // @homepageURL  https://square-face-generator.com/
  // ==/UserScript==

  (function() {
      if (!location.pathname.match(/^\/[^/]+$/)) return;

      const btn = document.createElement('a');
      btn.textContent = '🎮 Generate Avatar';
      btn.href = 'https://square-face-generator.com/?utm_source=github_userscript';
      btn.target = '_blank';
      btn.style.cssText = 'position:fixed;bottom:20px;right:20px;z-index:9999;padding:12px 20px;background:#7C3AED;color:white;border:none;border-radius:8px;text-decoration:none;font-weight:600;cursor:pointer;box-shadow:0 4px 12px rgba(124,58,237,0.3);';
      document.body.appendChild(btn);
  })();