Loading. Please Wait... 
 |
 |
 |
HV Script Thread, Discuss your creations. Includes guidelines and infos for script creation (2020-02-28 upd) |
|
Sep 30 2016, 04:10
|
Simpleton8
Group: Members
Posts: 336
Joined: 2-November 15

|
QUOTE(blue penguin @ Sep 30 2016, 04:01)  ^ that may as well have worked, you just printed too much stuff. CODE 4 == req.readyState Is not the only state the request will be in. It will start at 0, get to 1 when it is sent. 2 waiting for answer, 3 something was sent back, 4 everything was received. You can't put a plain else there indicating error, since 1 == req.readyState isn't an error. For fun (and learning) you can print req.readyState in the else. Look like my problem is that I'm not getting anything back? Ready is never printed (when 4 === req.readyState & 200 === req.status). Highlighter works again (i.e., highlighting by colors & filtering galleries) when I comment out: req.send(JSON.stringify(gdata)); QUOTE(Superlatanium @ Sep 30 2016, 04:09)  Also, line 657 CODE var filtered = document. ClassName('e-Filtered').length; document.getElementById('e-FilteredItems').textContent = filtered; Looks like it was supposed to be getElementsByClassName there Cool. Don't think that's my issue though, so I will probably look into this after I get Tag Flagging w/ API to work in general. This post has been edited by Simpleton8: Sep 30 2016, 04:28
|
|
|
|
 |
|
Sep 30 2016, 12:53
|
Simpleton8
Group: Members
Posts: 336
Joined: 2-November 15

|
The issue is that the url "https://e-hentai.org/api.php" is not in https but fjord is. Error from console is: CODE Blocked loading mixed active content “http://g.e-hentai.org/api.php” [ developer.mozilla.org] https://developer.mozilla.org/en-US/docs/We...h_mixed_content"For other domains, use the site's HTTPS version if available. If HTTPS is not available, you can try contacting the domain and asking them if they can make the content available via HTTPS." Pming Tenboro to ask if he can make the api available in HTTPs. This post has been edited by Simpleton8: Sep 30 2016, 16:24
|
|
|
|
 |
|
Sep 30 2016, 13:03
|
Superlatanium
Group: Gold Star Club
Posts: 7,647
Joined: 27-November 13

|
Seems like HTTPS is forced on one site, and impossible to use from g.e-hentai. That is very peculiar, anyone know why? (regardless, the source images over H@H aren't secure, obviously)
I use the API regularly, but always from http. I guess that's not an optimal solution for you though since you don't have a star
|
|
|
Sep 30 2016, 13:12
|
Simpleton8
Group: Members
Posts: 336
Joined: 2-November 15

|
QUOTE(Superlatanium @ Sep 30 2016, 13:03)  I use the API regularly, but always from http. I guess that's not an optimal solution for you though since you don't have a star
Do you just need a bronze star? What does that do for using the API? Chrome/firefox can allow mixed content but "the HTTP portion can be read or modified by attackers, even though the main page is served over HTTPS."
|
|
|
|
 |
|
Sep 30 2016, 13:32
|
Superlatanium
Group: Gold Star Club
Posts: 7,647
Joined: 27-November 13

|
QUOTE(Simpleton8 @ Sep 30 2016, 11:12)  Do you just need a bronze star? What does that do for using the API? A star means I can always use https://e-hentai.org/ (and therefore connect to the API due to using http). QUOTE(Simpleton8 @ Sep 30 2016, 11:12)  Chrome/firefox can allow mixed content but "the HTTP portion can be read or modified by attackers, even though the main page is served over HTTPS." Yeah, browsers likely won't allow you to do active requests over HTTP if the page is HTTPS (such as Post to API), but passive requests are OK (including images, source files).
|
|
|
|
 |
|
Sep 30 2016, 16:23
|
blue penguin
Group: Gold Star Club
Posts: 10,046
Joined: 24-March 12

|
QUOTE(Superlatanium @ Sep 30 2016, 12:03)  Seems like HTTPS is forced on one site, and impossible to use from g.e-hentai. That is very peculiar, anyone know why? pandas always use HSTS because they fear MITM attacks through bamboo lines. And yes, downgrading a session from HTTPS to HTTP is absolutely forbidden by CORS rules (<img> and <script> are exceptions). I'll raise it with Tenb, it s a valid point to enable HTTPS for the API.
|
|
|
|
 |
|
Sep 30 2016, 16:27
|
Simpleton8
Group: Members
Posts: 336
Joined: 2-November 15

|
QUOTE(Superlatanium @ Sep 30 2016, 13:32)  A star means I can always use https://e-hentai.org/ (and therefore connect to the API due to using http). Yeah, browsers likely won't allow you to do active requests over HTTP if the page is HTTPS (such as Post to API), but passive requests are OK (including images, source files). Yep, they block HTTP requests (also jquery), but I can disable that temporarily (probably also permanently) for the fjords.
|
|
|
|
 |
|
Sep 30 2016, 17:06
|
Simpleton8
Group: Members
Posts: 336
Joined: 2-November 15

|
QUOTE(Superlatanium @ Sep 30 2016, 04:09)  Also, line 657 CODE var filtered = document. ClassName('e-Filtered').length; document.getElementById('e-FilteredItems').textContent = filtered; Looks like it was supposed to be getElementsByClassName there fixed: var filtered = document.getElementsByClassName('e-Filtered').length; document.getElementById('e-FilteredItems').textContent = filtered;
|
|
|
Oct 2 2016, 00:41
|
Juggernaut Santa
Group: Gold Star Club
Posts: 11,135
Joined: 26-April 12

|
I just noticed that the script for the price of forged equipment has wrong values for the mats needed on magnificents. It considers the usual 6 mid grade for first 5 levels then increasing high grades starting from 1 like legendaries...
|
|
|
|
 |
|
Oct 2 2016, 06:05
|
RoadShoe
Group: Catgirl Camarilla
Posts: 3,241
Joined: 9-August 15

|
QUOTE(DamienCash @ Sep 27 2016, 13:15)  HV Chaos Calculator 3.0 - It does Crystals now too
HV_Chaos_Calculator.user3.0.zip ( 2.9k )
Number of downloads: 62Adds an interface to the Monster Lab and two textboxes to a specific monster's page to see just how many Chaos Tokens you fed to your favorite monsters. Powered by your browser's local storage. NEW: Hovering over an upgrade will add that upgrade's current total to the normal upgrade text. Special thanks to Sapo84 for code review. Author's Note: Finished the some changes I have been chipping away at. Current thinking is that, while I am digging around in the HTML anyway, I may as well provide information on Crystals too. This script does not seem to be used too too much, but I have soft plans to compile all the new information in a new tab with the press of a button. That way I can give a estimated Credits-value of monsters too. Let me know what you think. Tamper monkey is squaking "invalid user script". Just me?
|
|
|
|
 |
|
Oct 2 2016, 06:14
|
Superlatanium
Group: Gold Star Club
Posts: 7,647
Joined: 27-November 13

|
QUOTE(redphil @ Oct 2 2016, 04:05)  Tamper monkey is squaking "invalid user script". Just me? Just you, you probably copy/pasted wrong
|
|
|
Oct 2 2016, 06:17
|
RoadShoe
Group: Catgirl Camarilla
Posts: 3,241
Joined: 9-August 15

|
QUOTE(Superlatanium @ Oct 2 2016, 06:14)  Just you, you probably copy/pasted wrong
Sux being me. I'm trying to install using URL. I'll try another route.
|
|
|
Oct 2 2016, 06:23
|
Superlatanium
Group: Gold Star Club
Posts: 7,647
Joined: 27-November 13

|
QUOTE(redphil @ Oct 2 2016, 04:17)  I'm trying to install using URL. You can't use the plain URL (https://forums.e-hentai.org/index.php?act=Attach&type=post&id=92060), that's a .zip, you need a .user.js or a .txt (copy-paste) instead.
|
|
|
Oct 2 2016, 17:04
|
Juggernaut Santa
Group: Gold Star Club
Posts: 11,135
Joined: 26-April 12

|
QUOTE(ppp82p @ Oct 2 2016, 00:41)  I just noticed that the script for the price of forged equipment has wrong values for the mats needed on magnificents. It considers the usual 6 mid grade for first 5 levels then increasing high grades starting from 1 like legendaries...
^
|
|
|
Oct 5 2016, 08:28
|
Hinoka
Group: Catgirl Camarilla
Posts: 2,033
Joined: 28-April 13

|
Great Thread. Bump
|
|
|
Oct 6 2016, 12:42
|
NerfThis
Group: Catgirl Camarilla
Posts: 2,467
Joined: 3-February 14

|
HVEquipCompare 0.6.5.6 [attachmentid=92404]
* 0.6.5.6 - Update to Wiki Ranges data (6 October 2016)
|
|
|
Oct 7 2016, 06:04
|
nobody_xxx
Group: Gold Star Club
Posts: 13,753
Joined: 7-December 10

|
err , how to use equipment compare scripts with FF + greasemonkey ??? I can install it but it seem not working (IMG:[ invalid] style_emoticons/default/huh.gif)
|
|
|
Oct 7 2016, 09:14
|
FabulousCupcake
Group: Gold Star Club
Posts: 496
Joined: 15-April 14

|
QUOTE(nobody_xxx @ Oct 7 2016, 06:04)  err , how to use equipment compare scripts with FF + greasemonkey ??? I can install it but it seem not working (IMG:[ invalid] style_emoticons/default/huh.gif) Make sure to use custom fonts and the latest version of FF and GM.
|
|
|
Oct 7 2016, 12:13
|
Vilis
Group: Gold Star Club
Posts: 877
Joined: 1-December 11

|
Is there a script that will give me a quickbar for items?
|
|
|
Oct 7 2016, 13:08
|
nobody_xxx
Group: Gold Star Club
Posts: 13,753
Joined: 7-December 10

|
QUOTE(FabulousCupcake @ Oct 7 2016, 14:14)  Make sure to use custom fonts and the latest version of FF and GM.
ouch , I still use FF v42 ~ grease is newest version (IMG:[ invalid] style_emoticons/default/heh.gif)
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
 |
 |
 |
|
|
|