Welcome Guest ( Log In | Register )

291 Pages V « < 161 162 163 164 > »   
Reply to this topicStart new topic
> HV Script Thread, Discuss your creations. Includes guidelines and infos for script creation (2020-02-28 upd)

 
post Sep 30 2016, 04:10
Post #3236
Simpleton8



Casual Poster
****
Group: Members
Posts: 336
Joined: 2-November 15
Level 264 (Godslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 30 2016, 12:53
Post #3237
Simpleton8



Casual Poster
****
Group: Members
Posts: 336
Joined: 2-November 15
Level 264 (Godslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 30 2016, 13:03
Post #3238
Superlatanium



Dreaming of optimizing the system
**********
Group: Gold Star Club
Posts: 7,647
Joined: 27-November 13
Level 500 (Godslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 30 2016, 13:12
Post #3239
Simpleton8



Casual Poster
****
Group: Members
Posts: 336
Joined: 2-November 15
Level 264 (Godslayer)


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."
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 30 2016, 13:32
Post #3240
Superlatanium



Dreaming of optimizing the system
**********
Group: Gold Star Club
Posts: 7,647
Joined: 27-November 13
Level 500 (Godslayer)


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).
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 30 2016, 16:23
Post #3241
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,046
Joined: 24-March 12
Level 500 (Godslayer)


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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 30 2016, 16:27
Post #3242
Simpleton8



Casual Poster
****
Group: Members
Posts: 336
Joined: 2-November 15
Level 264 (Godslayer)


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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 30 2016, 17:06
Post #3243
Simpleton8



Casual Poster
****
Group: Members
Posts: 336
Joined: 2-November 15
Level 264 (Godslayer)


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;
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Oct 2 2016, 00:41
Post #3244
Juggernaut Santa



Living in HV 0.83 until Tenboro adds the Tower to Persistent
***********
Group: Gold Star Club
Posts: 11,135
Joined: 26-April 12
Level 500 (Ponyslayer)


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...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Oct 2 2016, 06:05
Post #3245
RoadShoe



Press any key to continue... Where's the any key?
********
Group: Catgirl Camarilla
Posts: 3,241
Joined: 9-August 15
Level 500 (Godslayer)


QUOTE(DamienCash @ Sep 27 2016, 13:15) *

HV Chaos Calculator 3.0
- It does Crystals now too

Attached File  HV_Chaos_Calculator.user3.0.zip ( 2.9k ) Number of downloads: 62

Adds 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?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Oct 2 2016, 06:14
Post #3246
Superlatanium



Dreaming of optimizing the system
**********
Group: Gold Star Club
Posts: 7,647
Joined: 27-November 13
Level 500 (Godslayer)


QUOTE(redphil @ Oct 2 2016, 04:05) *
Tamper monkey is squaking "invalid user script". Just me?
Just you, you probably copy/pasted wrong
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Oct 2 2016, 06:17
Post #3247
RoadShoe



Press any key to continue... Where's the any key?
********
Group: Catgirl Camarilla
Posts: 3,241
Joined: 9-August 15
Level 500 (Godslayer)


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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Oct 2 2016, 06:23
Post #3248
Superlatanium



Dreaming of optimizing the system
**********
Group: Gold Star Club
Posts: 7,647
Joined: 27-November 13
Level 500 (Godslayer)


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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Oct 2 2016, 17:04
Post #3249
Juggernaut Santa



Living in HV 0.83 until Tenboro adds the Tower to Persistent
***********
Group: Gold Star Club
Posts: 11,135
Joined: 26-April 12
Level 500 (Ponyslayer)


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...

^
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Oct 5 2016, 08:28
Post #3250
Hinoka



Active Poster
*******
Group: Catgirl Camarilla
Posts: 2,033
Joined: 28-April 13
Level 500 (Ponyslayer)


Great Thread. Bump
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Oct 6 2016, 12:42
Post #3251
NerfThis



Active Poster
*******
Group: Catgirl Camarilla
Posts: 2,467
Joined: 3-February 14
Level 500 (Ponyslayer)


HVEquipCompare 0.6.5.6 [attachmentid=92404]

* 0.6.5.6
- Update to Wiki Ranges data (6 October 2016)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Oct 7 2016, 06:04
Post #3252
nobody_xxx



((´☻ω☻`) $◞౪◟$ (´☻ω☻`))
***********
Group: Gold Star Club
Posts: 13,753
Joined: 7-December 10
Level 496 (Godslayer)


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)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Oct 7 2016, 09:14
Post #3253
FabulousCupcake



Casual Poster
****
Group: Gold Star Club
Posts: 496
Joined: 15-April 14
Level 451 (Dovahkiin)


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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Oct 7 2016, 12:13
Post #3254
Vilis



Will edit 4 monies
******
Group: Gold Star Club
Posts: 877
Joined: 1-December 11
Level 500 (Dovahkiin)


Is there a script that will give me a quickbar for items?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Oct 7 2016, 13:08
Post #3255
nobody_xxx



((´☻ω☻`) $◞౪◟$ (´☻ω☻`))
***********
Group: Gold Star Club
Posts: 13,753
Joined: 7-December 10
Level 496 (Godslayer)


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)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


291 Pages V « < 161 162 163 164 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 23rd September 2025 - 07:53