feat(banana-prompt-quicker): sync upstream changes with new features
Updated banana-prompt-quicker/script.user.js to sync upstream changes. Added ConfigManager, improved caching, and announcements support. Maintained backward compatibility and limited changes to the specified file.
[issue-7] feat(script): remove selectors.json usage from banana-prompt-quicker
The legacy usage of selectors.json was completely removed from banana-prompt-quicker/script.user.js. The method getRemoteSelector() now only uses ConfigManager.getSelectors(platform, type) which reads from config.json. All legacy caching and network fetch paths linked to selectors.json were deleted.
[issue-7] feat(script): remove announcement and unify prompt config
The announcement element and all related logic were removed from banana-prompt-quicker/script.user.js. Remote prompt fetching and configuration were refactored into a single, concise ConfigManager class. Legacy selectors.json usage was fully eliminated, with selectors now read exclusively from config.json.
[issue-7] feat(script): refactor ConfigManager and remove legacy selectors
The legacy selectors.json usage was removed and getRemoteSelector was simplified to directly use ConfigManager.getSelectors without try/catch. ConfigManager was refactored to add default fallback values, unify URLs, and add error logging. Dead PromptManager and announcement-related code were fully eliminated, ensuring consistency and maintainability.
[issue-7] feat(script): refactor ConfigManager and remove legacy selectors
The legacy selectors.json usage and announcement elements were completely removed. The ConfigManager was refactored for clearer caching, consistent logging, and error handling. Minor code formatting was tidied with no functional changes.
[issue-7] feat(script): refactor ConfigManager and remove legacy selectors
ConfigManager was refactored for clarity and consistency without changing functionality. Legacy selectors.json, announcement, and PromptManager code were removed. Redundant code and formatting issues were cleaned up.
[issue-7] feat(script): improve cache handling and simplify selectors
Refined ConfigManager caching to handle falsy values properly. Simplified getRemoteSelector by removing redundant await and try/catch. Removed legacy selectors and announcement code with minor formatting fixes.
bump version
Merge pull request #7 - AI warning