 |
 |
 |
HV Script Thread, Discuss your creations. Includes guidelines and infos for script creation (2020-02-28 upd) |
|
Dec 3 2016, 13:04
|
hzqr
Group: Gold Star Club
Posts: 4,672
Joined: 13-May 09

|
I don't think it should affect anyone, but I nuked the script repo on tiap.github.com since I needed the account for other stuff It hadn't been updated for 4 years anyway, most of the scripts probably didn't even work anymore
|
|
|
|
 |
|
Dec 4 2016, 10:38
|
nobody_xxx
Group: Gold Star Club
Posts: 13,753
Joined: 7-December 10

|
anyone know how to make equipment comparison script working with FFv42 ? (IMG:[ invalid] style_emoticons/default/huh.gif) This script is working with my iron portable + tamper (IMG:[ invalid] style_emoticons/default/heh.gif) but since my iron portable browser is only for HV battle related scripts , so I prefer to use other scripts that not related to HV battle in my FF browser (IMG:[ invalid] style_emoticons/default/heh.gif) like my item manager , smartlab , magicscore ,and smartsearch scripts (IMG:[ invalid] style_emoticons/default/happy.gif) This post has been edited by nobody_xxx: Dec 4 2016, 10:42
|
|
|
|
 |
|
Dec 4 2016, 22:25
|
lazyNPC
Group: Gold Star Club
Posts: 3,346
Joined: 8-June 12

|
I'll post this here too, since it's a script. If anyone else needs to resize just the user bars text like me (HP,MP,SP), and leave all other text at the size you decided on in settings, just use this, works with Reloader too:
resizeUserBarsText.user.js.txt ( 954bytes )
Number of downloads: 62This post has been edited by gianfrix94: Dec 5 2016, 00:58
|
|
|
Dec 5 2016, 21:14
|
lazyNPC
Group: Gold Star Club
Posts: 3,346
Joined: 8-June 12

|
For whoever might care, i wrote another Script. This time i modified simrock87 EQSort, so that the inventory instead of being ordered by Newest First gets ordered by Quality and Type. List goes: Crude(One-handed>Two-handed>Staff>Shield>Cloth>Light>Heavy)>Fair(...)>... Here is it:
EQSort_Quality_and_Type.user.js.txt ( 2.47k )
Number of downloads: 69This post has been edited by gianfrix94: Dec 5 2016, 21:15
|
|
|
Dec 7 2016, 00:25
|
m118w11
Group: Gold Star Club
Posts: 1,323
Joined: 7-March 11

|
For some reason the 1.5 equipment script mooglemail item feature is not working in chrome, I get a:
Getting post key. Try again. Error.
Is there a fix for this problem?
|
|
|
Dec 7 2016, 00:44
|
lazyNPC
Group: Gold Star Club
Posts: 3,346
Joined: 8-June 12

|
QUOTE(m118w11 @ Dec 6 2016, 23:25)  For some reason the 1.5 equipment script mooglemail item feature is not working in chrome, I get a:
Getting post key. Try again. Error.
Is there a fix for this problem?
I didn't understand, what's your problem? Are you having problems sending items by MM with HV Item Manager 1.5.0? Because, that works flawlessly on my Chrome+Tampermonkey. Try cleaning cache, cookies and all that, then reinstall the Script.
|
|
|
|
 |
|
Dec 7 2016, 05:52
|
Superlatanium
Group: Gold Star Club
Posts: 7,647
Joined: 27-November 13

|
QUOTE(m118w11 @ Dec 6 2016, 22:25)  For some reason the 1.5 equipment script mooglemail item feature is not working in chrome, I get a:
Getting post key. Try again. Error.
Is there a fix for this problem? Shot in the dark, but did you recently change your password? IIRC, "postkey" is a necessary parameter for sending MMs, but it never (or almost never) changes, and might be changed on password change. edit: adding an attachment for something else This post has been edited by Superlatanium: Dec 7 2016, 09:40
|
|
|
|
 |
|
Dec 7 2016, 10:00
|
m118w11
Group: Gold Star Club
Posts: 1,323
Joined: 7-March 11

|
QUOTE(Superlatanium @ Dec 7 2016, 06:52)  Shot in the dark, but did you recently change your password?
IIRC, "postkey" is a necessary parameter for sending MMs, but it never (or almost never) changes, and might be changed on password change.
edit: adding an attachment for something else
Hmm, I am using a proxy service now. Do you think that has something to do with it?
|
|
|
Dec 7 2016, 10:08
|
Superlatanium
Group: Gold Star Club
Posts: 7,647
Joined: 27-November 13

|
QUOTE(m118w11 @ Dec 7 2016, 08:00)  Hmm, I am using a proxy service now. Do you think that has something to do with it? Doesn't sound like the sort of thing that would create a problem like this... well, worst case, you can just set the postkey manually, it's probably easy to do
|
|
|
Dec 7 2016, 15:22
|
Kira.Yoshikage
Group: Gold Star Club
Posts: 687
Joined: 25-July 09

|
I have the same error as m118w11,yes I changed my password a month ago,can it be fixed?
|
|
|
Dec 7 2016, 18:28
|
Superlatanium
Group: Gold Star Club
Posts: 7,647
Joined: 27-November 13

|
Could you tell me where what line the error happens on, and what exactly the error is?
|
|
|
Dec 7 2016, 22:04
|
m118w11
Group: Gold Star Club
Posts: 1,323
Joined: 7-March 11

|
QUOTE(Superlatanium @ Dec 7 2016, 19:28)  Could you tell me where what line the error happens on, and what exactly the error is?
It happens after you press send, regardless if the recipient is blank or not. It appears to be a error on line 792: if (!engine.getPostKey()) { alert("Getting post key. Please try again"); } else if (recipient && subject) { It looks like it will give you an error then do nothing. If it doesn't have the post key is it supposed to try and get it? Although I don't know javascript so i have no idea.
|
|
|
|
 |
|
Dec 7 2016, 23:33
|
Superlatanium
Group: Gold Star Club
Posts: 7,647
Joined: 27-November 13

|
QUOTE(m118w11 @ Dec 7 2016, 20:04)  It happens after you press send, regardless if the recipient is blank or not.
It appears to be a error on line 792:
if (!engine.getPostKey()) { alert("Getting post key. Please try again"); } else if (recipient && subject) {
It looks like it will give you an error then do nothing. If it doesn't have the post key is it supposed to try and get it? Although I don't know javascript so i have no idea. So it's just that alert, but not an actual javascript error? Huh. I don't know what's causing the problem because my postkey hasn't changed or anything, but a quick and dirty fix would probably be: Apparently this doesn't work, sorry. I can't replicate the problem so I have a hard time trying to fix it (1) Find your postkey. Go to view-source:http://hentaiverse.org/?s=Bazaar&ss=mm&filter=new search for <input id="postkey" type="hidden" name="postkey" value="xxxxx.... The xxxxx is your postkey, copy it.
2. Line ~327
CODE this.getPostKey = function getPostKey() { return this.store.postKey; }; change toCODE this.getPostKey = function getPostKey() { return 'string'; }; except with your postkey instead of the string. EgCODE this.getPostKey = function getPostKey() { return '1387afc835da'; }; I'm sure there's a more elegant solution, but this is the quickest without knowing exactly what's going wrong on your end.This post has been edited by Superlatanium: Dec 8 2016, 07:56
|
|
|
|
 |
|
Dec 7 2016, 23:42
|
lazyNPC
Group: Gold Star Club
Posts: 3,346
Joined: 8-June 12

|
QUOTE(Superlatanium @ Dec 7 2016, 22:33)  ...
That stuff has to get saved somewhere normally, no? So wouldn't a simple clean of the Cache and Cookies work for him? Or are Javascript data stored in other places?
|
|
|
Dec 8 2016, 00:46
|
Superlatanium
Group: Gold Star Club
Posts: 7,647
Joined: 27-November 13

|
QUOTE(gianfrix94 @ Dec 7 2016, 21:42)  That stuff has to get saved somewhere normally, no? So wouldn't a simple clean of the Cache and Cookies work for him? Or are Javascript data stored in other places? It's saved in localStorage. Yeah, try clearing that too.
|
|
|
Dec 8 2016, 00:53
|
lazyNPC
Group: Gold Star Club
Posts: 3,346
Joined: 8-June 12

|
QUOTE(Superlatanium @ Dec 7 2016, 23:46)  It's saved in localStorage. Yeah, try clearing that too.
Yeah, that, forgot the name. In Chrome if i'm not wrong it's in "Cookies and other site data" in Settings->Clear browsing data.
|
|
|
|
 |
|
Dec 8 2016, 07:53
|
Kira.Yoshikage
Group: Gold Star Club
Posts: 687
Joined: 25-July 09

|
QUOTE(Superlatanium @ Dec 7 2016, 23:33)  So it's just that alert, but not an actual javascript error? Huh. I don't know what's causing the problem because my postkey hasn't changed or anything, but a quick and dirty fix would probably be: (1) Find your postkey. Go to view-source:http://hentaiverse.org/?s=Bazaar&ss=mm&filter=new search for <input id="postkey" type="hidden" name="postkey" value="xxxxx.... The xxxxx is your postkey, copy it. 2. Line ~327 CODE this.getPostKey = function getPostKey() { return this.store.postKey; }; change to CODE this.getPostKey = function getPostKey() { return 'string'; }; except with your postkey instead of the string. Eg CODE this.getPostKey = function getPostKey() { return '1387afc835da'; }; I'm sure there's a more elegant solution, but this is the quickest without knowing exactly what's going wrong on your end. Thank you the error never occurred,but it got stuck in "sending to xxx..." and never really done sending (IMG:[ invalid] style_emoticons/default/anime_cry.gif)
|
|
|
|
 |
|
Dec 8 2016, 07:57
|
Superlatanium
Group: Gold Star Club
Posts: 7,647
Joined: 27-November 13

|
QUOTE(Nanoha_Prayer @ Dec 8 2016, 05:53)  Thank you the error never occurred,but it got stuck in "sending to xxx..." and never really done sending (IMG:[ invalid] style_emoticons/default/anime_cry.gif) Damn, sorry. Try clearing localStorage as gianfrix94 suggested. Also look at your javascript console to see if any actual javascript errors come up. (the "alert" is a successfully handled error, perhaps there was an unhandled one?) I can't replicate the problem so I have a hard time trying to fix it
|
|
|
|
 |
|
Dec 8 2016, 09:00
|
NerfThis
Group: Catgirl Camarilla
Posts: 2,467
Joined: 3-February 14

|
Go to inventory. Open javascript console. If console log says "fail and resend 0 0 1 400 2" at every second. Change CODE xmlhttp.open(type, (forms[iter].path || path) + (type === "GET" ? "?" + param : ""), true);
to CODE xmlhttp.open(type || "GET", (forms[iter].path || path) + (type === "GET" ? "?" + param : ""), true);
And then go to inventory. If it will not fix your problem. Add the following code to top. Between //-support new tag $# (count starting from 1) $cond (for condition) and $locked (return true if item is locked), $pxp now returns a number or MAX and if (window.location.href.indexOf('hentaiverse.org/?s=Bazaar&ss=mm') > -1 CODE //-support new tag $# (count starting from 1) $cond (for condition) and $locked (return true if item is locked), $pxp now returns a number or MAX
if (window.location.href.indexOf('hentaiverse.org/?s=Bazaar&ss=mm&filter=new') > -1) { var store = JSON.parse(localStorage.HVItemHelper || "null"); var postKey = document.getElementById("postkey"); if (postkey && store && postkey.value !== store.postKey) { store.postKey = postKey.value; localStorage.HVItemHelper = JSON.stringify(store); console.log('postKey', postKey.value); alert('Reset postKey ' + postKey.value); } return; }
function HVItemHelper() {
And then go to inventory. This will make HVItemHelper cache, if not exist. Go to Write New MM (http://hentaiverse.org/?s=Bazaar&ss=mm&filter=new) If you can see WRITE ANOTHER MAIL button, click. Wait just few seconds. You can see alert "Reset postKey newpostkey". If it will not fix your problem. Open javascript console and then clear HVItemHelper postKey. If you want to keep your HVItemManager setting. CODE t = JSON.parse(localStorage.HVItemHelper); delete t.postKey; localStorage.HVItemHelper = JSON.stringify(t); JSON.parse(localStorage.HVItemHelper);
If still not work, clear HVItemHelper cache. You will lost your HVItemManager setting. CODE localStorage.removeItem('HVItemHelper');
This post has been edited by NerfThis: Mar 16 2017, 08:14
|
|
|
|
 |
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
 |
 |
 |
|