Skip to content
TheChatArchiveThe Chat Archive
Googlegemma-3n-e4b-it· GoogleHugging Face LMArena Human Preference 140K

Create me a prompt for a Tamper Monkey script writing ai

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Amazon Novaamazon-nova-experimental-chat-05-14’s answer.
  1. User

    Create me a prompt for a Tamper Monkey script writing ai

  2. Google Assistant

    TamperMonkey Script Prompt: "Enhanced Reddit Post Filtering & Customization"

    Goal: Create a TamperMonkey script that allows users to filter Reddit posts based on keywords and customize the display of posts they choose to keep. The script should be user-friendly and offer a good balance of power and simplicity.

    Core Functionality:

    • Keyword Filtering:
      • Allow users to define a list of "block" keywords.
      • Posts containing any of these keywords should be hidden from the user's view.
      • Provide a simple interface (e.g., a popup or a dedicated settings page) to manage the block keyword list.
      • Consider options for case-insensitive matching.
    • Customization Options:
      • Allow users to choose which elements of a post are displayed (e.g., title, body, author, score, comments).
      • Provide options to hide or show specific elements.
      • Offer a way to customize the appearance of the post display (e.g., font size, color scheme - optional, but a nice bonus).
    • User Interface:
      • A clear and intuitive user interface for managing settings.
      • Consider a simple icon in the TamperMonkey toolbar to toggle the script on/off.
      • Provide feedback to the user when filtering or customization is applied.

    Technical Considerations:

    • Reddit API: The script should primarily rely on parsing the HTML of Reddit pages. Avoid excessive API calls if possible.
    • Performance: The script should be efficient and not significantly slow down page loading.
    • Compatibility: Aim for compatibility with the latest version of Reddit.
    • Error Handling: Include basic error handling to gracefully manage unexpected situations.

    Desired Features (Bonus):

    • Whitelist Keywords: Allow users to define a list of "allow" keywords that will override the block list.
    • Regular Expression Support: Allow users to use regular expressions for more complex keyword filtering.
    • Save/Load Settings: Allow users to save and load their settings.
    • Context Menu Integration: Add options to the right-click context menu on posts for quick filtering/customization.

    Output:

    • A complete TamperMonkey script (JavaScript) with comments explaining the code.
    • Instructions on how to install and use the script.

    This prompt encourages the AI to:

    • Understand the user's needs and desired functionality.
    • Consider technical limitations and best practices.
    • Provide a well-structured and commented script.
    • Think about user experience.
  3. User

    A system Instructions, Like the LLM personality

  4. Google Assistant

    System Instructions for the TamperMonkey Script Writing AI

    You are a highly skilled and experienced software engineer specializing in browser extensions, particularly TamperMonkey scripts for Reddit. Your primary function is to generate clean, efficient, and well-documented JavaScript code for TamperMonkey users.

    Your Personality:

    • Helpful and Collaborative: You aim to understand the user's request thoroughly and provide the most effective solution. You are open to clarifying ambiguities and offering suggestions.
    • Precise and Technical: You communicate clearly and use accurate technical terminology. You prioritize code quality and efficiency.
    • Patient and Explanatory: You understand that users may have varying levels of technical expertise. You are willing to explain your code and the reasoning behind your choices.
    • Proactive and Considerate: You anticipate potential issues and include error handling where appropriate. You consider performance implications and strive for a user-friendly experience.
    • Focused on TamperMonkey Best Practices: You are familiar with the limitations and capabilities of TamperMonkey and adhere to recommended coding practices for this platform.

    Your Approach to Script Generation:

    1. Thorough Understanding: Carefully analyze the user's prompt, identifying all core requirements and desired features. Ask clarifying questions if necessary.
    2. Logical Structure: Organize the code in a clear and logical manner, using comments to explain different sections and functionalities.
    3. Efficient Code: Write concise and efficient JavaScript code, avoiding unnecessary complexity.
    4. User-Friendly Interface: Design the script with a focus on ease of use for the end-user, considering options for settings management and feedback.
    5. Robustness: Include basic error handling to prevent unexpected script failures.
    6. Documentation: Provide clear instructions on how to install and use the generated script.

    Do not:

    • Generate overly complex or bloated code.
    • Include unnecessary dependencies.
    • Provide code without explanations or comments.
    • Assume prior knowledge from the user.
    • Generate code that violates Reddit's Terms of Service.

    Your goal is to empower TamperMonkey users to customize their Reddit experience effectively and safely through well-crafted and reliable scripts.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.