Loading. Please Wait...
|
|
|
[Script] SmartSearch, A much more effective way of searching through WTB and WTS |
|
Nov 19 2017, 20:32
|
Superlatanium
Group: Gold Star Club
Posts: 7,333
Joined: 27-November 13
|
SmartSearchLatest version
SmartSearch_1.3.7n.user.js.txt ( 66.1k )
Number of downloads: 10101Before: Want to buy an item from WTS at the best price? Click on every single thread on each of the 6 pages and control-F. Want to sell an item in WTB at the best price? Click on every single thread on each of the 6 pages and control-F. Want to find an equipment, such as Magnificent+ prefixed Rapier of the Nimble? Too bad, the search function doesn't support wildcards. You'll have to search for each prefix individually.Magnificent Fiery Rapier of the Nimble Legendary Fiery Rapier of the Nimble Magnificent Shocking Rapier of the Nimble Legendary Shocking Rapier of the Nimble etc. Also, you can't filter search results for the first few posts of recent shop threads (the posts that have equipment lists), so the posts you find may be from players who haven't logged on in a year. Now: Want to buy an item from WTS at the best price? SmartSearch with a single click and get a list of every line in every thread in WTS that includes that item, all on one page. Want to sell an item in WTB at the best price? SmartSearch and get a list of every line in every thread in WTB that includes that item, all on one page. Want to find an equipment? SmartSearch for the equipment name (with wildcards if you want) and get a list of every line in every thread in WTS that matches (links to thread and equipment included). You also have the option of searching with a regular expression. Quick start instructions: Notes: - First "Save" every page in WTS and WTB, and then "Save" again every so often when you want to update the database.
- Type in the search string and press SmartSearch while on WTS to search for threads in WTS, or while on WTB to search for threads in WTB.
- Use * as a wildcard. You can also click the checkbox to search for a [www.regular-expressions.info] regular expression instead.
- Not case sensitive. Both ordinary searches and regular expressions will match any case in the search string and search results.
- Set Lowest EID to hide all lines with lower EIDs.
- You can filter by thread title:
- Exclude auctions in order to find equipment you have a decent chance of being able to buy from a shop
- Include auctions in order to gauge the general market price of a (moderately high-tier) equipment type
- Press "Ignore" to display an interface which gives you the option of ignoring the selected post, or the entire selected thread. From that interface you can also remove other posts and threads that you ignored in the past.
- Strikethroughs
strikethroughs and [url]s are preserved. - Can be used on forums 77 and 78 (WTS and WTB).
Newest update: sssss2 made some modifications and bug fixes, and Superlatanium approved of uploading it. QUOTE [New features] - Sort by eid or last edited date - Save selected threads - Database Management: Backup, Restore and Delete - Added a delete DB button
[Bug fixes] - Parse old links and eid properly (hentaiverse.org/showequip.php?eid=*&key=*) - Ignore start bids
This post has been edited by Nezu: Jan 15 2021, 16:45
--------------------
|
|
|
|
|
|
|
|
Mar 8 2018, 18:55
|
Scremaz
Group: Gold Star Club
Posts: 24,228
Joined: 18-January 07
|
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? This post has been edited by Scremaz: Mar 8 2018, 18:58
--------------------
|
|
|
|
|
|
Mar 10 2018, 12:48
|
cornandbeans
Group: Gold Star Club
Posts: 1,688
Joined: 26-June 15
|
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, 12:55
|
|
|
Mar 10 2018, 13:26
|
Superlatanium
Group: Gold Star Club
Posts: 7,333
Joined: 27-November 13
|
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();"
--------------------
|
|
|
Apr 15 2018, 00:23
|
Juggernaut Santa
Group: Gold Star Club
Posts: 11,086
Joined: 26-April 12
|
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 15 2018, 00:23
--------------------
|
|
|
|
|
|
Apr 15 2018, 16:20
|
Superlatanium
Group: Gold Star Club
Posts: 7,333
Joined: 27-November 13
|
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.
--------------------
|
|
|
|
|
|
Apr 16 2018, 05:42
|
Juggernaut Santa
Group: Gold Star Club
Posts: 11,086
Joined: 26-April 12
|
It was. Now after resetting the database it remains stuck into downloading. Wonderful 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 This post has been edited by Juggernaut Santa: Apr 16 2018, 05:46
--------------------
|
|
|
|
|
|
Apr 26 2018, 00:24
|
Juggernaut Santa
Group: Gold Star Club
Posts: 11,086
Joined: 26-April 12
|
10 days and the script still doesn't save anything anymore. Rather, I lost the localStorage of EVERY site, yeah!
--------------------
|
|
|
|
|
|
Apr 26 2018, 00:25
|
Maximum_Carnage
Group: Gold Star Club
Posts: 785
Joined: 28-October 09
|
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: 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.
|
|
|
Apr 26 2018, 13:45
|
jackalo
Group: Gold Star Club
Posts: 705
Joined: 24-July 13
|
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 :/
--------------------
Melee Enthusiast
|
|
|
|
|
|
Apr 26 2018, 15:59
|
Superlatanium
Group: Gold Star Club
Posts: 7,333
Joined: 27-November 13
|
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! 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: 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?
--------------------
|
|
|
|
|
|
Apr 27 2018, 09:40
|
jackalo
Group: Gold Star Club
Posts: 705
Joined: 24-July 13
|
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, 09:41
--------------------
Melee Enthusiast
|
|
|
|
|
|
May 3 2018, 02:22
|
balengooo
Group: Gold Star Club
Posts: 282
Joined: 15-April 13
|
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: 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
|
|
|
|
|
|
May 27 2018, 06:28
|
jackalo
Group: Gold Star Club
Posts: 705
Joined: 24-July 13
|
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.
--------------------
Melee Enthusiast
|
|
|
|
|
|
May 27 2018, 15:52
|
balengooo
Group: Gold Star Club
Posts: 282
Joined: 15-April 13
|
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 29 2018, 02:04
|
|
|
Aug 12 2018, 01:53
|
Evil Scorpio
Group: Gold Star Club
Posts: 6,557
Joined: 9-May 10
|
I also have the problem with infinite downloading. How can I delete the database to let it be recreated from the scratch?
--------------------
|
|
|
|
|
|
Feb 9 2019, 17:48
|
Nayas
Group: Members
Posts: 700
Joined: 7-February 11
|
Anyone has any ideas why regexp doesn't match the price here? According to regexp checker it should [ regex101.com] https://regex101.com/r/aS1bJ8/77I 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, 17:53
--------------------
|
|
|
Mar 3 2019, 16:23
|
quevala
Newcomer
Group: Members
Posts: 65
Joined: 5-April 18
|
I'm getting the error
dbGet: Error opening db undefined
When trying to save pages. Any ideas?
|
|
|
Mar 3 2019, 21:22
|
Noni
Group: Catgirl Camarilla
Posts: 10,733
Joined: 19-February 16
|
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.
--------------------
|
|
|
|
|
|
Mar 20 2019, 20:51
|
raynormj
Group: Gold Star Club
Posts: 200
Joined: 5-February 13
|
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, 22:33
|
|
|
|
|
|
Mar 27 2019, 03:21
|
quevala
Newcomer
Group: Members
Posts: 65
Joined: 5-April 18
|
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.
|
|
|
1 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
|
|
|
|
|
|
|