Skip to content

PDF.js.js cannot be loaded when accessing urls with parameters #117

@fno2010

Description

@fno2010

When accessing urls like following, PDF.js.js cannot be loaded:

http://delivery.acm.org/10.1145/3010000/3005771/p204-hari.pdf?ip=202.120.188.240&id=3005771&acc=ACTIVE%20SERVICE&key=BF85BBA5741FDC6E%2E1FD0E2C7647D7D03%2E4D4702B0C3E38B35%2E4D4702B0C3E38B35&CFID=881012010&CFTOKEN=39596783&__acm__=1482839995_25e653d93c192249a869fff952cbe81d

It should be fixed by changing matchingUrls to /\.pdf\?([^=]+=[^&]*)?(&[^=]+=[^&]*)*$/.

Further more, can we support something like filetype and ftdetec in vim? Currently, vimperator can only addUserMap by matchingUrls. Is it possible to support to match DOMs to decide which settings should be enabled?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions