I love this script and love you for it.
HVStat is such an unnecessarily complicated turd compared to this, I don't even want to think about it.
EDIT: I regret the HVStat comment. HVStat is bloated af but is also the work of many enthusiasts collaborating to improve something they love. My comment was pretty disrespectful and dismissive of that work.
Still stand by what I said about this script though, love it.
Anyway, here's a little addition I made for CrunkJuice because the functionality of how random encounters are activated annoyed me.
Based on the code, I assume this was an unintended quirk of the timer script, but I've made it a setting because some people probably like how it functions now.
As the script is, if you have the RE timer setting on, if a random encounter is detected you're automatically taken to the hentaiverse on that tab rather than the popup you'd usually get.
This re-enables the pop-up functionality.
Add these after the reAlt setting:
CODE
rePop = false, // toggles the default "popup" style of random encounters/hentaiverse. pop-up blockers will try to block (default: false)
reAuto = true, // toggles whether or not to automatically activate random encounters (default: true)
Replace:
CODE
if ( reTimer && document.URL.indexOf('e-hentai') > -1 ) {
if ( (re = document.querySelector('#eventpane a')) )
window.location = reAlt ? re.href.replace('https://hentaiverse', 'http://alt.hentaiverse') : re.href;
return; }
With:
CODE
if ( reAuto && document.URL.indexOf('e-hentai') > -1 ) {
if ( (re = document.querySelector('#eventpane a')) ) {
if ( reAlt )
re.href.replace('https://hentaiverse', 'http://alt.hentaiverse');
if ( rePop ) {
window.open(re.href,'_hentaiverse','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=1250,height=720,left='+((screen.width-1250)/ 2)+',top='+((screen.height-720)/2));
document.getElementById('eventpane').style.display='none'; }
else
window.location = re.href;
}
return; }
EDIT 2: Just to cover my ass, I haven't added any "automation" that wasn't already present. If the automation is found to be rule breaking, I'd be happy to explain why I feel it wasn't added intentionally/maliciously, and why it shouldn't truly be considered automation.
This post has been edited by GaryMcNabb: Sep 9 2018, 15:17