jerone / UserScripts

🐵 My UserScripts
https://github.com/jerone/UserScripts#readme
GNU General Public License v3.0
342 stars 39 forks source link

(GitHub User Info) it doesn't show my set URL when mouseover on my avatar (while using my everyday FF profile) #84

Closed darkred closed 8 years ago

darkred commented 8 years ago

I've recently added a URL (https://greasyfork.org/en/users/2160-darkred) to my GitHub profile. (it appears ok in https://github.com/darkred) But, when mouseover on my avatar (using my everyday FF profile) it doesn't show that URL. I have already tried Options|Privacy|clear recent history in Firefox, and even loading e,g, this GitHub page with cache disabled, but it didn't help.

This is what is displayed in Browser Console while mouseover:

GithubUserInfo:avatar timeout                                     Github_User_Info.user.js:592
GithubUserInfo:getData CACHED <unavailable>                       Github_User_Info.user.js:356
GithubUserInfo:fillData <unavailable> <unavailable> <unavailable> Github_User_Info.user.js:492

On the other hand, in a clean 42 profile with only GM 3.6 installed, the URL is showed ok.

What could I do to make it show the URL in the avatar again? Thank you

jerone commented 8 years ago

To not flood both GitHub and your account with user info API requests, I've added caching for 7 days.

There's currently no simple way of deleting the cached user info, without editing the userscript or GM database, as GM_setValue is used.

Did you update your profile more then 7 days ago?

darkred commented 8 years ago

No, it's more recently, for sure.

jerone commented 8 years ago

Oke, so then you have to wait until the 7 days are past or edit the userscript and execute the following code (untested):

var usersString = GM_getValue('users', '{}');
var users = JSON.parse(usersString);
delete users["darkred"];
GM_setValue('users', JSON.stringify(users));

Don't forget to force update, so automatic updates are enabled again.

darkred commented 8 years ago

Yes, your code fixed it. Thanks a lot for the quick answer!