Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Read Later Context option not showing up #17

Open
zernyu opened this issue Feb 14, 2011 · 6 comments
Open

Read Later Context option not showing up #17

zernyu opened this issue Feb 14, 2011 · 6 comments
Labels

Comments

@zernyu
Copy link

zernyu commented Feb 14, 2011

Using 1.5.1 and Chrome 10.0.648.45 dev. Every context menu option shows up except for "Read Later". I've tried switching around the settings and hitting save and restarting the browser, but it doesn't fix it.

@edgarjs
Copy link
Owner

edgarjs commented Feb 16, 2011

And when you go back to options, the checkbox is still selected?

@zernyu
Copy link
Author

zernyu commented Feb 16, 2011

Yes, the checkbox is still selected.

Read Later

Text view

Go to unread

Go to starred

Go to archive

Only "Read Later" is checked, yet it doesn't show up in my context menu. :/

@edgarjs
Copy link
Owner

edgarjs commented Feb 21, 2011

Can you inspect the saved options doing this and tell me the values that are in the table (of course ignore username and password).

Right click on the extension icon, then choose "Manage extensions...", then on the top right click "Developer mode" and then under the Instachrome row, click "background.html" and a small window should pop up. Then choose "Resources" on the top tabs, and then expand "LocalStorage" on the side bar, and click the item with the random numbers and letters. It should show all the option values for the extension. What does it say in "cx_read_later" ?

@PJnes
Copy link

PJnes commented Feb 22, 2011

Was having the same problem. Quick poke around in background.js and I found that the function was

if($.db('cx_read_later') === '1') {
    chrome.contextMenus.create({
        title: 'Read later (send to instapaper)',
        contexts: ['link'],
        onclick: function(data, tab) {
            readLater({id: tab.id, url: data.linkUrl}, null, 'contextual');
        }
    });
}

when it should have been

if($.db('cx_read_later') === '1') {
    chrome.contextMenus.create({
        title: 'Read later (send to instapaper)',
        contexts: ['page'],
        onclick: function(data, tab) {
            readLater({id: tab.id, url: data.pageUrl}, null, 'contextual');
        }
    });
}

Not on a machine with Git at the moment or I'd fork the fix.

@edgarjs
Copy link
Owner

edgarjs commented Feb 23, 2011

Ah I see the problem then. I implemented the Read Later context option for links only. People was asking for save pages without opening, so you need to click a link for the menu option to show up. But you're right, it makes sense to have the option for the current page as well. I saw your pull request, will add it but with an extra configurable option for that. Thanks.

@zernyu
Copy link
Author

zernyu commented Feb 23, 2011

Oooh.. I didn't know that was how it functions! A little note in the options page could be helpful. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants