Detour
05/14/22 01:26AM
Update 1.9.0
* Fixed notes not correctly resizing along with their parent
* Updated the forum list to track the amount of replies on a per-thread basis for determining whether something is unread or not

There might be some small issues like your own threads/posts being considered unread or notes not properly updating when you resize the browser window but I'm sure I can get those fixed over the next few days.
Detour
05/14/22 07:48PM
Update 1.9.1
* Fixed last page links not marking forum threads as read
hyreader
05/15/22 08:40PM
There's something I've been thinking about, but it's a pain when thinking of the steps involves to do it.
And yet, there's a possibility it's easier to do than to say, so I will share the idea.
1. In hypnohub.net/index.php?page=account&s=options add elements below the blacklist for a "grey list" or "warning lists" using the same kind of layout.
2. When "Save" is clicked, also save the content of said box in the script.
3. When displaying list of (image) posts, add a colored border or modify an existing one if the post contains the tags (that can be found on the alt section of the image in html) put in the grey list.

That's the basic idea.
Detour
05/15/22 11:20PM
hyreader said:
There's something I've been thinking about, but it's a pain when thinking of the steps involves to do it.
And yet, there's a possibility it's easier to do than to say, so I will share the idea.
1. In hypnohub.net/index.php?page=account&s=options add elements below the blacklist for a "grey list" or "warning lists" using the same kind of layout.
2. When "Save" is clicked, also save the content of said box in the script.
3. When displaying list of (image) posts, add a colored border or modify an existing one if the post contains the tags (that can be found on the alt section of the image in html) put in the grey list.

That's the basic idea.


A soft blacklist huh? It's an interesting idea at least and doesn't sound that difficult to implement. I'll give it a whirl.
TheMadPrince
05/19/22 04:34PM
Yo is the fact that forum threads are now permanently stuck on unread only on my end, or...?
Detour
05/19/22 06:00PM
TheMadPrince said:
Yo is the fact that forum threads are now permanently stuck on unread only on my end, or...?


Yeah that sounds like a weird bug, threads should mark themselves as read when you click on them. I guess check for errors in the browser's console?

If you're talking about everything being unread, that's a result of the userscript not having any reference for what you've read up to this point, and I've added a mark as read button to the navigation bar for that exact problem.
TheMadPrince
05/19/22 06:13PM
Detour said:
If you're talking about everything being unread, that's a result of the userscript not having any reference for what you've read up to this point, and I've added a mark as read button to the navigation bar for that exact problem.


Ah, I see. I hadn't spotted the "Mark as read" button. Thanks!
hyreader
05/19/22 08:40PM
In my own version of the script, I changed the storage functions, so that there's a single array stored under an id "Hypnohub_pools", and that array get loaded with the elements you currently stored directly.
I did that just in case storing directly could interfere or be interfered by other scripts, but maybe I worry too much about that.
Note that there are several recent features I don't include in my own script, hence why the global name is "Hypnohub_pools" rather than something more generic.
Detour
05/19/22 10:27PM
hyreader said:
In my own version of the script, I changed the storage functions, so that there's a single array stored under an id "Hypnohub_pools", and that array get loaded with the elements you currently stored directly.
I did that just in case storing directly could interfere or be interfered by other scripts, but maybe I worry too much about that.


Storage is on a per-userscript basis, it's not possible to interfere with other scripts that way.
jaaysiin
05/22/22 09:34AM
I'm on 1.9.1 and I'm still having the note resizing issue, unfortunately.

EDIT:
It seems I can reproduce the issue here:

hypnohub.net/index.php?pa...d=126469&pool_id=4495

When you go to another post via the buttons on the pool toolbar, that's when the notes load incorrectly. Otherwise, they're fine.

EDIT 2:
Except now they're working!? Hm... It might be related to whether the image is cached. I was fine until post #5, then #6 loaded wrong, but when I tried again, #6 loaded correctly. Same thing with #7. Didn't work on the first try, but it worked on the second.
hyreader
05/27/22 09:06PM
I mentioned somewhere (probably the "bugs" topic) that videos in favorites didn't get a blue border.
This is a function I'm using if you're planning to equip your script with a similar feature:
function updateFavoritesView() {

let images = document.querySelectorAll(".thumb > a > img");

for(let i = 0; i < images.length; i++) {
if(images[i].getAttribute("title").includes("video")) {
images[i].style.setProperty("border", "3px solid #0000ef");
}
}

}


edit: after checking, I see you already have a "updateFavoritesList" function, I think the code inside my function would go there.
Note that this is quickly written code, may be optimized or modified in one way or another as you want.
anonlv000
05/30/22 10:25PM
jaaysiin said:
I'm on 1.9.1 and I'm still having the note resizing issue, unfortunately.

EDIT:
It seems I can reproduce the issue here:

hypnohub.net/index.php?pa...d=126469&pool_id=4495


The above link works fine for me. However, I can't find the "Click here to view the original image" button for it, so maybe that's why it works fine.

However, I am having a note resizing issue, plus an image resizing issue with this pic: hypnohub.net/index.php?pa...d=145368&pool_id=5095

And thank you for maintaining this script, Detour!
Detour
05/30/22 11:29PM
Update 1.9.2
Fixed some issues caused by visiting a post with a pool_id that we haven't visited the pool page for yet
hyreader
06/04/22 01:58PM
Another proposal, code added in updatePostView:

//Experimental favorite remover

let addToFav = document.querySelector('div.link-list ul li:last-child');
let removeFromFav = addToFav.cloneNode(true);
removeFromFav.firstElementChild.textContent = "\nRemove from favorites\n";

removeFromFav.firstElementChild.removeAttribute("onclick");
removeFromFav.firstElementChild.onclick = function() {
var a;
try {
a = new XMLHttpRequest();
} catch (b) {
try {
a = new ActiveXObject('Msxml2.XMLHTTP');
} catch (b) {
try {
a = new ActiveXObject('Microsoft.XMLHTTP');
} catch (b) {
alert('Your browser is to old or does not support Ajax.');
}
}
}
a.open('GET', 'index.php?page=favorites&s=delete&id=' + postId, true);
a.send(null);

document.getElementById("notice").textContent = "Post removed from favorites";

};

addToFav.after(removeFromFav);

The weirdest code here is based on the code found on hypnohub itself for the favorite addition.

Yet another feature that should be made unnecessary as quickly as possible from a website update, but since it doesn't seems to be coming anytime soon... :(

edit: added text saying "post removed from favorites", though if the code fail for some reason, it doesn't check to not display the text
LillyTank
06/09/22 07:22PM
I don't know if this bug has been brought up before but the translation boxes for this pool aren't resizing to fit the image.
hypnohub.net/index.php?page=pool&s=show&id=4975#

<<< 6 78910>>>


Reply | Forum Index