Skip to content

Pagetual README external-API examples use wrong command 'patetual' (typo of 'pagetual') #1210

Description

@chirag127

Problem

Pagetual's README shows external-API postMessage examples with command: 'patetual' (typo), but the script only handles command === 'pagetual', so copy-pasted examples silently no-op.

Steps

  1. Open any page where Pagetual is active.
  2. In DevTools console, paste the exact example from Pagetual/README.md:62:
    window.postMessage({ action: 'nextPage', command: 'patetual', detail: 5 }, '*');

Expected

Next page loads (5 times).

Actual

Nothing happens. Source filters at Pagetual/pagetual.user.js:11742:
if (e.data.command === 'pagetual') { ... }

Also, README.md:98,106 document received messages as command: 'patetual', but source emits command: 'pagetual' / 'pagetual.insert' (pagetual.user.js:6719, :7904, :13502).

Environment

Pagetual v1.9.37.131 (README.md:1). Affects README.md lines 62, 76, 90, 98, 106.

Thanks for maintaining hoothin/UserScripts!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions