-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open Link instead of expand the Item? #1411
Comments
There is currently no configuration option. You could probably add some code to It might be interesting to implement some kind of event-action system that would allow remapping the |
That would be awesome! Thanks. I really like Selfoss, I would like to see a "light" mode, no content just links to the news. This would be more consistent, just open a new tab. |
How do I do it with user.js? Sorry zero JS knowledge here an quick example would be fine. Thanks. |
This is ugly but seems to work: function openEntryLink(id) {
window.open(document.querySelector(`.entry[data-entry-id="${id}"]`).getAttribute('data-entry-url'));
}
const entriesPageNotifier = {
set: function(obj, prop, value) {
console.log(obj, prop, value)
obj[prop] = value;
if (prop === 'entriesPage' && value !== null) {
value.activateEntry = openEntryLink;
}
return true;
}
};
selfoss = new Proxy(selfoss, entriesPageNotifier);
if (selfoss.entriesPage !== null && selfoss.entriesPage.activateEntry !== openEntryLink) {
selfoss.entriesPage.activateEntry = openEntryLink;
} |
No this is beautiful and fully serves the purpose. Thank you very much, much appreciated! |
function openEntryLink(id) {
window.open(document.querySelector(`.entry[data-entry-id="${id}"]`).getAttribute('data-entry-url'));
document.getElementById("currentpage").innerHTML = window.location.replace;
}
const entriesPageNotifier = {
set: function(obj, prop, value) {
console.log(obj, prop, value)
obj[prop] = value;
if (prop === 'entriesPage' && value !== null) {
value.activateEntry = openEntryLink;
}
return true;
}
};
selfoss = new Proxy(selfoss, entriesPageNotifier);
if (selfoss.entriesPage !== null && selfoss.entriesPage.activateEntry !== openEntryLink) {
selfoss.entriesPage.activateEntry = openEntryLink;
} Just a litte edit, makes the page url stay and don't change to the item id. |
Is it possible to somehow just open the the link instead of expanding it, like clicking on the favicon or datetime?
The text was updated successfully, but these errors were encountered: