Don't automatically refresh the library when opening a history item

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
Dariush

Don't automatically refresh the library when opening a history item

Unread post by Dariush » 2017-09-03, 17:18

When I open a history item from 'today' submenu in the library, it is immediately pushed to the top after the page loads - thus, if I want to open several items, I have to quickly select something else after opening an item, because otherwise my selection will move to the top of the list, which is inconvenient. This works as expected for submenus other than the 'today' one - opened items stay where they are (and their open dates are not changed) until I reload the submenu.

GMforker

Re: Don't automatically refresh the library when opening a history item

Unread post by GMforker » 2017-09-03, 17:51

You can sort it by name, e.g.

Dariush

Re: Don't automatically refresh the library when opening a history item

Unread post by Dariush » 2017-09-03, 18:51

I know, but it's not really suitable for me.

pintassilgo

Re: Don't automatically refresh the library when opening a history item

Unread post by pintassilgo » 2017-09-04, 03:19

http://userchromejs.mozdev.org/ install
+
https://github.com/alice0775/userChrome ... rChrome.js save (click "Raw") into profile folder\chrome (if you don't know where is your profile folder, open about:support)
+
https://github.com/alice0775/userChrome ... roll.uc.js save too into profile folder\chrome

Dariush

Re: Don't automatically refresh the library when opening a history item

Unread post by Dariush » 2017-09-04, 23:06

Hm, I can't get userChromeJS to work, at all. I tested on a fresh profile in both Pale Moon and Firefox with a single line 'alert("test");' in userchrome.js in <profile/chrome>, along with some examples from the default file, and nothing happens even after restart with -purgecaches. Nobody else seems to have this problem. Also, all discussion is from years ago. Am I doing something wrong or is this extension dead?

pintassilgo

Re: Don't automatically refresh the library when opening a history item

Unread post by pintassilgo » 2017-09-05, 04:12

The extension still works, but in Firefox it will die in v57.

Sorry, the last link from my post is wrong. It does the trick for history sidebar, not library. The one that you want is this:
https://github.com/alice0775/userChrome ... roll.uc.js

pintassilgo

Re: Don't automatically refresh the library when opening a history item

Unread post by pintassilgo » 2017-09-05, 04:21

And you shouldn't modify /chrome/userChrome.js file (2nd link from my first post). Create tests in .uc.js files. Example:

/chrome/test.uc.js:

Code: Select all

// ==UserScript==
// @name        test
// @include     main
// ==/UserScript==

alert('test');

Dariush

Re: Don't automatically refresh the library when opening a history item

Unread post by Dariush » 2017-09-05, 13:17

Ooh, it worked! Thanks a lot. Though I still would have preferred the item to not be updated at all, since this way we end up with two different behaviors for opening history items from today (item is updated and moves to the top, selection switches to another item) and not from today (item is not updated and remains in place).

Locked