Welcome Guest ( Log In | Register )

3 Pages V < 1 2 3 >  
Reply to this topicStart new topic
> [Script] SmartSearch, A much more effective way of searching through WTB and WTS

 
post Mar 8 2018, 12:55
Post #21
Scremaz



A certain pervert. OT expert. Just dancing around in the game.
***********
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07
Level 500 (Ponyslayer)


QUOTE(Superlatanium @ Mar 8 2018, 10:14) *

Locked threads are not saved by default due to moderator request, since it usually indicates the poster is banned. You will have to change the setting at the top to allow that.

hmm... tbh i didn't think it would've affected auctions as well, my bad. is it possible to exclude locked threads but include auctions by default?

if not, maybe the least troublesome option is to return to the old way which didn't exclude locked threads, perhaps? (IMG:[invalid] style_emoticons/default/unsure.gif)

This post has been edited by Scremaz: Mar 8 2018, 12:58
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 10 2018, 06:48
Post #22
Sad Penguin



End my life
*******
Group: Catgirl Camarilla
Posts: 2,175
Joined: 26-June 15
Level 500 (Ponyslayer)


I got an error "dbSet: Error on transaction undefined" when I tried to ignore any thread after updated to 1.3.6.
Console showing:
CODE
TypeError: search.onclick is not a function  
dbSet: Error on transaction undefined
AbortError


This post has been edited by Lastwizard05: Mar 10 2018, 06:55
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 10 2018, 07:26
Post #23
Superlatanium



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


QUOTE(Lastwizard05 @ Mar 10 2018, 04:48) *
I got an error "dbSet: Error on transaction undefined" when I tried to ignore any thread after updated to 1.3.6.
Ok, I'll fix it. Line 586, change "search.onclick();" to "search.click();"
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 14 2018, 18:23
Post #24
Juggernaut Santa



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


For some reason, saving the newest threads has no effect.
When I make a search, the most recent result is saved 48 days ago.

Do I have to reset the database?
If so, how can I do that?

This post has been edited by Juggernaut Santa: Apr 14 2018, 18:23
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 15 2018, 10:20
Post #25
Superlatanium



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


QUOTE(Juggernaut Santa @ Apr 14 2018, 16:23) *

For some reason, saving the newest threads has no effect.
When I make a search, the most recent result is saved 48 days ago.
Do you see "Saved" come up a bit after you press the "Save" button?
QUOTE(Juggernaut Santa @ Apr 14 2018, 16:23) *
Do I have to reset the database?
If so, how can I do that?
If you have to, the instructions are at the top of the script - uncomment dbDelete, run the script, and re-comment it.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 15 2018, 23:42
Post #26
Juggernaut Santa



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


It was.

Now after resetting the database it remains stuck into downloading.

Wonderful (IMG:[invalid] style_emoticons/default/laugh.gif)


edit: and now clicking on the smartsearch button opens a blank tab that remains blank forever...basically the same problem inugaki had on page 1 of this topic.

Wonderful^2 (IMG:[invalid] style_emoticons/default/heh.gif)

This post has been edited by Juggernaut Santa: Apr 15 2018, 23:46
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 25 2018, 18:24
Post #27
Juggernaut Santa



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


10 days and the script still doesn't save anything anymore.

Rather, I lost the localStorage of EVERY site, yeah! (IMG:[invalid] style_emoticons/default/happy.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 25 2018, 18:25
Post #28
Maximum_Carnage



There is only carnage !!!
******
Group: Gold Star Club
Posts: 792
Joined: 27-October 09
Level 500 (Ponyslayer)


For some reason I'm not getting all the results from my search string.
I've typed "legendary\scharged\scotton\s.+of\sthe\selementalist" (also tried Legendary charged cotton * of the elementalist) and only got this:
Attached Image

But there's should more. For example in your #105 auction there were 2 charged pieces of elementalist but they're not listed. I did save pages before hitting search.

I'm using 1.3.7 version.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 26 2018, 07:45
Post #29
jackalo



a guy
*****
Group: Gold Star Club
Posts: 705
Joined: 23-July 13
Level 500 (Godslayer)


when i click save it just downloads forever and the database remains empty

i tried the uncomment delete and create new database command and yielded no results :/
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 26 2018, 09:59
Post #30
Superlatanium



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


QUOTE(Juggernaut Santa @ Apr 25 2018, 16:24) *
10 days and the script still doesn't save anything anymore.

Rather, I lost the localStorage of EVERY site, yeah! (IMG:[invalid] style_emoticons/default/happy.gif)
I still can't reproduce it, are there any errors in your console? Threads seem to save fine for me
QUOTE(Maximum_Carnage @ Apr 25 2018, 16:25) *
For some reason I'm not getting all the results from my search string.
I've typed "legendary\scharged\scotton\s.+of\sthe\selementalist" (also tried Legendary charged cotton * of the elementalist) and only got this:
Attached Image

But there's should more. For example in your #105 auction there were 2 charged pieces of elementalist but they're not listed. I did save pages before hitting search.

I'm using 1.3.7 version.
You probably have `hideLocked` set to `false`. Locked threads have been hidden by default due to mod request, though maybe I should remove that since auction threads (one of the largest sources of quality equips) always get locked nowadays.
QUOTE(jackalo @ Apr 26 2018, 05:45) *
when i click save it just downloads forever and the database remains empty

i tried the uncomment delete and create new database command and yielded no results :/
Can you open your browser console and tell me if any errors come up while saving?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 27 2018, 03:40
Post #31
jackalo



a guy
*****
Group: Gold Star Club
Posts: 705
Joined: 23-July 13
Level 500 (Godslayer)


QUOTE(Superlatanium @ Apr 26 2018, 01:59) *

Can you open your browser console and tell me if any errors come up while saving?


Uncaught DOMException: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found.
at IDBOpenDBRequest.dbRequest.onsuccess (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=b7dfa376-237e-4997-8b36-0876ce003120:963:25)

in reference to this line of code:

var getRequest = db.transaction(["SmartSearchObjectStore"],"readwrite").objectStore("SmartSearchObjectStore").get('1');

This post has been edited by jackalo: Apr 27 2018, 03:41
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 2 2018, 20:22
Post #32
balengooo



Casual Poster
****
Group: Gold Star Club
Posts: 349
Joined: 14-April 13
Level 500 (Godslayer)


Hello,
I'm trying to use your script, but get an error when trying to save the database.
I edited the instructions to delete and create the database, but also DbDelete and DbCreate are not working.
I use FF56 and have disabled noscript, ghostery and adblock. The script run through Tampermonkey.
I don't know if it's relevant, but probably I have problems with localstorage.json beacuse often loose all the settings of HVtoolbox and I need to restore the backup....
Here are some screenshots:

Attached Image
Attached Image
Attached Image

I've very limited knowledge of this arguments, but if you need some other information or test, I'll gladly follow your instructions.

Thanks for your time
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 27 2018, 00:28
Post #33
jackalo



a guy
*****
Group: Gold Star Club
Posts: 705
Joined: 23-July 13
Level 500 (Godslayer)


pretty dumb of me, i didnt realize you couldnt delete and create the database in the script concurrently. fixed the problem i was having. just needed to delete the database then edit the script to only create the database the next time and comment them both out finally.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 27 2018, 09:52
Post #34
balengooo



Casual Poster
****
Group: Gold Star Club
Posts: 349
Joined: 14-April 13
Level 500 (Godslayer)


Thanks for the suggestion, but I did it removing only one comment each time and it didn't worked.....
Do you know where this database should be located? Maybe I could check the file to see if it exist and the execution of the steps of deletion, creation, updating, ect.

SOLVED!
It was all my fault: I had active the firefox option to browse in anonymous window.
When I first disabled that option it didn't looked relevant because nothing changed, but it needed a restart of firefox.
Now the script works fine!

This post has been edited by balengooo: May 28 2018, 20:04
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 11 2018, 19:53
Post #35
Evil Scorpio



● Public Enemy ●
*********
Group: Gold Star Club
Posts: 6,565
Joined: 9-May 10
Level 444 (Godslayer)


I also have the problem with infinite downloading. How can I delete the database to let it be recreated from the scratch?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 9 2019, 11:48
Post #36
Nayas



( 。∀ ゚)
*****
Group: Members
Posts: 700
Joined: 6-February 11
Level 435 (Godslayer)


Anyone has any ideas why regexp doesn't match the price here?
Attached Image

According to regexp checker it should [regex101.com] https://regex101.com/r/aS1bJ8/77

I also fiddled a bit with it and made it catch prices preceded by "price:" or"price=:" that don't have k|m|c at the end, becase there was another shop that did this.
replace
(/@\s?([1-9]\d*(?:[\.,]\d+)?)/i);
with
(?:price|@)\s?(?:\:|=|\s)?\s?([1-9]\d*(?:[\.,]\d+)?)/i);

This post has been edited by Nayas: Feb 9 2019, 11:53
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 3 2019, 10:23
Post #37
quevala



Newcomer
**
Group: Members
Posts: 65
Joined: 5-April 18
Level 266 (Destined)


I'm getting the error

dbGet: Error opening db undefined

When trying to save pages. Any ideas?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 3 2019, 15:22
Post #38
Noni



Hataraku Noni-sama
***********
Group: Catgirl Camarilla
Posts: 13,130
Joined: 19-February 16
Level 500 (Ponyslayer)


QUOTE(quevala @ Mar 3 2019, 09:23) *

I'm getting the error

dbGet: Error opening db undefined

When trying to save pages. Any ideas?

works fine for me at this moment.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 20 2019, 14:51
Post #39
raynormj



Casual Poster
***
Group: Gold Star Club
Posts: 200
Joined: 5-February 13
Level 383 (Godslayer)


Problem solved. It was a charset issue.

------------------------

Hello! It is odd that Smartsearch does not work at all on current version of Chrome + Tampermonkey, which makes me really puzzled. Any suggestions would be very helpful. The error messages are very similar to what I get from HV utils. If I could get either script to work, I suspect the other would work as well.

On the WTS forum page everything is unchanged and the console error messages are the following:

Unchecked runtime.lastError: The message port closed before a response was received.
VM118:64 Syntax error @ "SmartSearch"!
##########################
JSHINT output:
##########################

SyntaxError: Unexpected token :
at eval (<anonymous>)
at <anonymous>:2:494
at Object.b [as F_c] (<anonymous>:1:414)
at Object.E_u (<anonymous>:3:158)
at u (eval at exec_fn (:1:107), <anonymous>:65:6)
at ia (eval at exec_fn (:1:107), <anonymous>:63:263)
at Object.create (eval at exec_fn (:1:107), <anonymous>:75:51)
at c (eval at exec_fn (:1:107), <anonymous>:16:273)
(anonymous) @ VM118:64
VM118:64 Uncaught SyntaxError: Unexpected token :
at eval (<anonymous>)
at <anonymous>:2:494
at Object.b [as F_c] (<anonymous>:1:414)
at Object.E_u (<anonymous>:3:158)
at u (eval at exec_fn (index.php?showforum=77:1), <anonymous>:65:6)
at ia (eval at exec_fn (index.php?showforum=77:1), <anonymous>:63:263)
at Object.create (eval at exec_fn (index.php?showforum=77:1), <anonymous>:75:51)
at c (eval at exec_fn (index.php?showforum=77:1), <anonymous>:16:273)

This post has been edited by raynormj: Mar 20 2019, 16:33
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 26 2019, 21:21
Post #40
quevala



Newcomer
**
Group: Members
Posts: 65
Joined: 5-April 18
Level 266 (Destined)


QUOTE(DJNoni @ Mar 3 2019, 15:22) *

works fine for me at this moment.



Got it working in Chrome! I use FF for work and I'm positive I have it too jacked up with too much running for it to work.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


3 Pages V < 1 2 3 >
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: 1st April 2025 - 20:44