Uploading a fix for HV Chart.
Script should now trigger on all variants of the equip screen.
CODE
// @match http://hentaiverse.org/equip/*
// @match https://hentaiverse.org/equip/*
// @match http://alt.hentaiverse.org/equip/*
// @match http://hentaiverse.org/pages/showequip.php*
// @match https://hentaiverse.org/pages/showequip.php*
// @match http://alt.hentaiverse.org/pages/showequip.php*
Also fixed a bug where I would get "failed to get level, error:" on pages the script didn't expect to be run.
Probably could have been a more elegant fix but eh.
EDIT: To elaborate I modified:
CODE
"http://hentaiverse.org"
To:
CODE
"http"+(window.location.href.indexOf("https") > -1 ? "s":"")+"://"+(window.location.href.indexOf("alt.hentaiverse") > -1 ? "alt.":"")+"hentaiverse.org"
In the getLevel function.
I suspect the browser XSS protection was stopping the function from working when loading alt.hentaiverse.org equipment links. This fixed it so w/e.
EDIT 2: Thought I'd also share that removing/hiding dead monsters is a no-go. Checked with Tenboro first and it was a solid no. Further investigation reveals that I'm an idiot and didn't find the multiple posts already explicitly stating that this wasn't allowed, adding this to the wiki to save future coders the shame of beating a very dead horse.
HV___Chart___.user.js.zip ( 23.99k )
Number of downloads: 83This post has been edited by GaryMcNabb: Sep 25 2018, 12:08