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.
| 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 |
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==(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);
});
})();For comprehensive documentation and guides, please refer to:
- Next Observer Documentation - Smart Next.js application detection
- Route Change Detection Guide - Monitor client-side navigation
- Custom Console Documentation - Advanced debugging console
- API Reference - Complete TypeScript type definitions
- Examples & Tutorials - Real-world usage examples and best practices
- Node.js 16+
- npm or yarn
git clone https://github.com/ruriazz/tampercell.git
cd tampercell
npm installnpm run buildtampercell/
βββ 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
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Please read CONTRIBUTING.md for detailed guidelines on contributing to this project.
Security is important to us. If you discover a security vulnerability, please see our Security Policy for responsible disclosure guidelines.
See CHANGELOG.md for a detailed history of changes and new features.
- Documentation: Check the docs/ folder for comprehensive guides
- Issues: Report bugs or request features via GitHub Issues
- Discussions: Ask questions in GitHub Discussions
- Examples: Find usage patterns in examples documentation
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
This project is licensed under the ISC License - see the LICENSE file for details.
- 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