Skip to content

About

Modern TypeScript libraries for enhanced Tampermonkey development

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

3 Commits

Folders and files

Repository files navigation

🧬 TamperCell

TypeScript Tampermonkey License

Modern TypeScript libraries for enhanced Tampermonkey development

TamperCell is a collection of powerful, type-safe libraries designed specifically for Tampermonkey userscripts. Built with TypeScript and modern web standards, it provides essential utilities for web automation, debugging, and Next.js application monitoring.

πŸ“¦ Available Libraries

Library Description Documentation
πŸ” Next Observer Smart Next.js application state detection with comprehensive readiness checks and route change monitoring πŸ“– Docs
πŸ–₯️ Custom Console Advanced console viewer with object inspection, filtering, and JavaScript execution πŸ“– Docs

πŸš€ Quick Start

CDN Usage (Recommended)

All libraries are available via CDN for easy integration with Tampermonkey:

// ==UserScript==
// @name         My Enhanced Script
// @version      1.0.0
// @match        https://example.com/*
// @require      https://cdn.jsdelivr.net/gh/ruriazz/tampercell@latest/dist/next-observer/main.min.js
// @require      https://cdn.jsdelivr.net/gh/ruriazz/tampercell@latest/dist/custom-console/main.min.js
// @grant        none
// ==/UserScript==

Basic Example

(function () {
  'use strict';

  const style = document.createElement('link');
  style.rel = 'stylesheet';
  style.href = 'https://cdn.jsdelivr.net/gh/ruriazz/tampercell@latest/dist/custom-console/main.min.css';

  // Initialize libraries with route change detection
  style.onload = window.CustomConsole;
  window.NextObserver({
      routeChangeDetection: true,
      debug: true
  });

  document.head.appendChild(style);

  // Listen for Next.js ready event
  window.addEventListener('nextjs:ready', () => {
      console.log('πŸš€ Next.js is ready!');
      // Your initialization code here...
  });

  // Listen for route changes
  window.addEventListener('nextjs:route:before-change', (event) => {
      console.log('πŸ”„ Route changing:', event.detail.from, 'β†’', event.detail.to);
  });

  window.addEventListener('nextjs:route:after-load', (event) => {
      console.log('βœ… Route loaded:', event.detail.route);
  });
})();

Documentation

For comprehensive documentation and guides, please refer to:

πŸ› οΈ Development

Prerequisites

  • Node.js 16+
  • npm or yarn

Setup

git clone https://github.com/ruriazz/tampercell.git
cd tampercell
npm install

Build

npm run build

Project Structure

tampercell/
β”œβ”€β”€ src/                  # Source code
β”‚   β”œβ”€β”€ custom-console/   # Custom Console library
β”‚   └── next-observer/    # Next Observer library
β”œβ”€β”€ types/                # TypeScript type definitions
β”œβ”€β”€ docs/                 # Documentation
β”œβ”€β”€ dist/                 # Built files
└── README.md            # This file

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Please read CONTRIBUTING.md for detailed guidelines on contributing to this project.

πŸ”’ Security

Security is important to us. If you discover a security vulnerability, please see our Security Policy for responsible disclosure guidelines.

πŸ“‹ Changelog

See CHANGELOG.md for a detailed history of changes and new features.

πŸ’¬ Support

🌟 Show Your Support

If TamperCell helps you in your projects, please consider:

  • ⭐ Starring this repository
  • πŸ› Reporting bugs or suggesting features
  • πŸ“– Contributing to documentation
  • πŸ’» Contributing code improvements
  • πŸ’° Sponsoring the project

πŸ“Š Project Stats

GitHub repo size GitHub code size GitHub last commit GitHub issues GitHub pull requests

πŸ“œ License

This project is licensed under the ISC License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • Built with TypeScript for type safety and better developer experience
  • Bundled with Rollup for optimal output and multiple format support
  • Designed specifically for Tampermonkey userscript ecosystem
  • Inspired by the need for better debugging and monitoring tools in web automation

Built with ❀️ for the Tampermonkey community

About

Modern TypeScript libraries for enhanced Tampermonkey development

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages