HOME | DD

Published: 2013-10-26 17:42:36 +0000 UTC; Views: 11921; Favourites: 227; Downloads: 0
Redirect to original
Description
With this userscript, you can search within your notes.After indexed, searching is finished within seconds.
How to install:
Link: phi.pf-control.de/userscripts/…
This script will work in
- Firefox + Greasemonkey
- Chrome + Tampermoneky
- Opera + Violentmonkey
- Safari + Tampermonkey
For a detailed instruction, see my manual:
dediggefedde.deviantart.com/jo…
How to use
After you installed the script, the "Search"-Tab should appear within your Notes-menu.
Clicking it will make the search form appear.
On the first time there should be the text
'No notes fetched so far! Press "Index Notes"! '
on the far right.
Click "Index Notes" for a full scan of the currently selected folder! This may take a little time (Firefox: around 70 Notes/s, Chrome around 90 Notes/s; e.g. 380 Notes in Firefox takes around 5s)
You can break indexing by leaving the site any time! The script will ask you on your next visit, if it should continue indexing.
If you already have your Notes indexed, you can click on "Check Notes" to add all notes cou got since the last scan.
Now you are ready to search by inserting text into the search fields and press enter or the "Search" button.
For a more detailed explaination how to search, so the "How to search" section!
Clicking on a search result will show you the regarding Note! If you want to mark or delete it, please use the buttons at the bottom of the note!
You can also click on the result's header to sort through the results! Another click will revert the order.
Please Note that the Date will be displayed according to your computer's language-setting (for me that's German, so I got a Mittwoch instead of Wednesday).
How to search
Searching Title/Author and Text works slightly different:
Title/Author:
If you type single words, they will be searched OR connected. That means
Title: contest help
Will search all Notes where there is contest OR help within the Title.
Capital letters are treated like smaller ones.
The words themselves are a CONTAIN request: Notes like flowercontest or contesthelp will also match.
Text:
Searching in Text is a FULLWORD search: contest will only match my little contest here and not contesthelp or "flowercontest".
To change that, there are a couple of operators: - + " *.
To make it a CONTAIN-Search, you can simple add a * at the end or the beginning of a word:
contest* will match contest as well as contesthelp. *test* will match contest as well as testresult or contestresult.
Making a group of words AND connected, just prepend a + before the word:
+contest +result will only match Notes that contain contest AND result
Adding words without a + will add their matches to the AND-result:
+contest flower +result will match notes that only contain contest AND result, but also Notes with flower
The NOT-Operator is easy to understand: prepend a - and matching results won't be shown.
contest -flower will show all Notes with contest but only if they don't contain flower!
Quotes can be used to protect spaces/word groups.
"flower contest" will match only Notes that actually contain flower contest.
This will internally first search without quotes and then make a fulltext-check to remove unwanted notes.
That's why you some results for quote-searches will vanish after a second.
Combining will work like this:
+"flower *test*" +*result -help "no concern"
This will match Notes that have something like flower contesthelp AND testresult within them, but not help! contesthelp is fine as the help is not alone here. additionally Notes where no concern is part of will also be shown.
But I guess in most cases, single word searches or using + and * will be fine for you.
Thanks goes to
- You of course! I keep wanting to use my scripts and I keep on getting requests to repair the old version of this script!
- zio-san had a really nice idea how to improve the data-structure to index notes! As Browsers are limitting stored values to 5 Mbyte, I had to think of a ncie solution here. With making a list of words pointing to the containing note-ids, 500 Notes only take around 200 kbyte, increasing better than linear...
- ChinZaPep and NightsCrimson for spontan beta-testing: I wrote the script within 3 days and had another 5 days beta-testing with a lot of updates.^^
Update-Log
2013-10-26, v1.00: script published
Related content
Comments: 221
legorulez49 In reply to ??? [2016-03-13 23:45:26 +0000 UTC]
How do I update to version 1.1.16?
👍: 0 ⏩: 1
Dediggefedde In reply to legorulez49 [2016-03-13 23:47:40 +0000 UTC]
Just install it again from the install link.
It won't overwrite your old data and you don't have to restart your browser, just refresh the page after updating.
👍: 0 ⏩: 1
legorulez49 In reply to Dediggefedde [2016-03-14 00:26:20 +0000 UTC]
Well, for starters I got at least a thousand more notes out of the 26,227.
But there is a major problem, it won't index any text, just username and subject.
👍: 0 ⏩: 3
Dediggefedde In reply to legorulez49 [2016-07-21 09:43:00 +0000 UTC]
Hello again!
Today I found a bug that might have caused the problem you reported.
Would you mind giving version 1.1.17 a try again?
👍: 0 ⏩: 1
legorulez49 In reply to Dediggefedde [2016-07-21 09:45:02 +0000 UTC]
I tried this a few weeks ago, it gathered all of my notes, I'm going to reset it and try again and see if there are any errors.
👍: 0 ⏩: 0
Dediggefedde In reply to legorulez49 [2016-03-14 21:02:55 +0000 UTC]
I took a look into it today again...
There I noticed the search for content doesn't work for exact word fits... however, if you search with a placeholder like "chocolate*" it fill find chocolate again...
There also seems to be a problem with sorting... sorting looks more like random shufling at the moment.
I will try to fix this the coming days...
👍: 0 ⏩: 0
Dediggefedde In reply to legorulez49 [2016-03-14 14:00:28 +0000 UTC]
Are you sure? clicking the notes should still yield the full note.
Searching for a word is always searching for the full word, e.g. searching for "choc" will not hit notes with "chocolate".
Instead use * as a placeholder to let "choc*" match "chocolate"...
Maybe try the "reset to default" button first before indexing again.
I will take a look into it today again, though yesterday it seem to work fine for me...
👍: 0 ⏩: 0
sentimentalfreak In reply to ??? [2015-11-19 10:14:33 +0000 UTC]
Awesome. Is there a way to download all the notes once they are indexed?
👍: 0 ⏩: 1
Dediggefedde In reply to sentimentalfreak [2015-11-19 11:33:12 +0000 UTC]
No, that is not possible.
That would also require a different script because my script isn't storing the notes in plain text.
Tech: The required storage would be at least 1 byte per character and with the maximum size limit in Firefox etc. of ~5MB, this would limit the index to 5000000 characters. With quotes etc. e.g. an average note size of 2500 characters would limit the search to 2000 notes. This was the reason especially commercial artists and deviants with longer notes (e.g. many quotes or community work) complained about the script stopping to index after some thousand notes... It was also pretty slow.
Now I'm storing an word-index. Each word gets information in which notes it is used. only if you search for a specific order of words using quotation marks ("first second third") will those notes, which contain each of the words somewhere, be loaded again from dA to make a full text search to make sure of the words' positions.
👍: 0 ⏩: 1
sentimentalfreak In reply to Dediggefedde [2015-11-19 18:36:24 +0000 UTC]
Thank you for the reply. The search script is amazingly useful and fills a gap that DA have been slow to fill or had it as a low priority.
👍: 0 ⏩: 1
Dediggefedde In reply to sentimentalfreak [2015-11-21 14:13:06 +0000 UTC]
By the way: If there would be a download-way, which output-format would you prefer?
I worked a bit with javascript's .zip generation, but also with .pdf generation...
So, I could imagine:
output 1 file with all notes OR output 1 filer per note and putting them in a .zip file
output into a .txt file in HTML code OR in .txt in a customized Code (dropping format and replacing img and links with their urls) OR in a .pdf file
what are your ideas regarding this?
👍: 0 ⏩: 1
sentimentalfreak In reply to Dediggefedde [2015-11-22 09:13:57 +0000 UTC]
Thanks for your thought on the issue but I'm sure your time could be better spent on more useful things that would help more people
👍: 0 ⏩: 0
professionalperv-69 In reply to ??? [2015-11-12 12:25:43 +0000 UTC]
It doesn't seem to work for me anymore. The search would always fail after the first bar update, just locking up. After I hit reset to default, the option totally vanished. I tried refreshing, I tried logging out and back in, I tried uninstalling and reinstalling. Nothing worked.
👍: 0 ⏩: 1
Dediggefedde In reply to professionalperv-69 [2015-11-12 23:33:14 +0000 UTC]
Thanks for your report!
This is mostly a chrome problem as it seems as I was using associative arrays and chrome seemed to protect certain keywords as they are handled as object members in javascript.
I replaced this by two mapping integer arrays and rewrote the affected code parts.
Please update to v1.1.15 and check again if it works! You might need to use the reset button and reindex your notes afterwards.
👍: 0 ⏩: 0
Shadow-Guardian0 [2015-10-26 07:07:39 +0000 UTC]
It says, "Apps, extensions, and user scrips cannot be aded from this website."
Why did this happen and how can I fix it?
👍: 0 ⏩: 1
Dediggefedde In reply to Shadow-Guardian0 [2015-10-26 08:38:41 +0000 UTC]
My guess is, you use google chrome and try to install this as an extension.
To protect users, google made a strong limitation to only let users install extensions from their store.
However, in this case, the script wouldn't work as a direct extension anyway.
To fix this, I recommend installing tampermonkey (chrome extension) first.
After that, you can install my script within tampermonkey (click the install link and follow tampermonkey's instruction).
👍: 0 ⏩: 1
Shadow-Guardian0 In reply to Dediggefedde [2015-10-26 18:51:49 +0000 UTC]
I don't know what it was,but right after I posted it, I tried again and it works. Thanks.
👍: 0 ⏩: 1
Dediggefedde In reply to Shadow-Guardian0 [2015-10-26 19:32:54 +0000 UTC]
You're welcome! ^^
I'm glad it's working for you now!
👍: 0 ⏩: 1
Shadow-Guardian0 In reply to Dediggefedde [2015-10-26 19:34:08 +0000 UTC]
Thanks, and great tool!
👍: 0 ⏩: 0
legorulez49 [2015-10-17 18:04:21 +0000 UTC]
This program has some strange problems.
It won't completely index all 24,907 notes I have, it gets up to something like 10,000 and the page crashes.
And it's only indexed the notes from 2012-2013.
👍: 0 ⏩: 1
Dediggefedde In reply to legorulez49 [2015-10-17 21:06:45 +0000 UTC]
Thanks for the report!
Such problems are always hard to reproduce as they don't appear on every checkup and I don't have enough notes to reproduce it...
have you tried to reindex it afterwards? maybe index a different folder first?
👍: 0 ⏩: 1
legorulez49 In reply to Dediggefedde [2015-10-17 21:08:27 +0000 UTC]
Well whenever I index any other folder, it stops at a certain amount of notes (which the folders have far less of them, 200 at the max)
👍: 0 ⏩: 1
Dediggefedde In reply to legorulez49 [2015-10-17 22:13:41 +0000 UTC]
Have you tried the "reset to default" button or "refreshing" instead of "index notes"?
As you said, it only indexed notes from 2012-2013, I guess it only indexes the oldes notes...
Have you taken a look at the note where it stopped reading?
👍: 0 ⏩: 1
legorulez49 In reply to Dediggefedde [2015-10-17 22:16:48 +0000 UTC]
Well it stops at 7997 notes.
Resetting it to default basically just erase all the collected information and thus having to recollect all the notes, which it stops at 7997 out of 27000+
👍: 0 ⏩: 1
Dediggefedde In reply to legorulez49 [2015-10-18 12:10:36 +0000 UTC]
Thank you for the information!
I wonder if it is a size limitation then...
I tried using a storage size saving method to store the information... Though I heard in Firefox indexedDB has no size limitation...
Just made a few tests but can't seem to find the issue here...
By the way, do you use Firefox and Greasemonkey on a Desktop-PC? Or Chrome and Tampermonkey? Or a different Browser?
👍: 0 ⏩: 1
legorulez49 In reply to Dediggefedde [2015-10-18 17:28:49 +0000 UTC]
I am using Tampermonkey with Google Chrome.
👍: 0 ⏩: 1
Dediggefedde In reply to legorulez49 [2015-11-13 07:44:48 +0000 UTC]
Hi again!
I noticed a problem on chrome with this script yesterday. certain keywords in notes would have rendered the associative array in the script buggy (e.g. "length").
I changed it now to 2 mapping and a normal arrays, so it might also fix your problem, if you update, reset the script's cache and index your notes again.
👍: 0 ⏩: 1
legorulez49 In reply to Dediggefedde [2015-11-18 05:28:36 +0000 UTC]
Nope, still won't go past anything sent to me from 2013.
👍: 0 ⏩: 0
Nyaneo In reply to ??? [2015-09-16 22:32:58 +0000 UTC]
I LOVE YOU YOU SAVED MY LIFE ASDFASDFGFDSQAASSASSAAE
👍: 0 ⏩: 1
Dediggefedde In reply to Nyaneo [2015-09-16 23:00:57 +0000 UTC]
Thanks^^
I'm glad you like it ^^
👍: 0 ⏩: 1
Nyaneo In reply to Dediggefedde [2015-09-16 23:18:34 +0000 UTC]
No prob, I love it ^-^
This should be official
👍: 0 ⏩: 1
Dediggefedde In reply to Nyaneo [2015-09-17 06:57:07 +0000 UTC]
Yes, it should. I don't know how many years a search feature was asked for. And it would have been a lot easier for them to make than it was for me... But all the current development seems to go into the mobile part nowadays...
👍: 0 ⏩: 1
Nyaneo In reply to Dediggefedde [2015-09-17 14:34:58 +0000 UTC]
Yeah true. I mean, why not just use da on the browser? They're wasting their time on the app D:
👍: 0 ⏩: 1
Dediggefedde In reply to Nyaneo [2015-09-17 16:44:07 +0000 UTC]
Well... I don't know... I don't even have a smartphone...
But I guess lots of people can't wait to have access to a big screen to browse art or prefer to reply on comments and comissions instantly instead of waiting to get home...
Whatever the reason is, a lot of people seem to be using the app, which makes dA more popular, meaning more sells, more ads and more core memberships...
👍: 0 ⏩: 0
PatchdDr3ams In reply to ??? [2015-08-11 10:55:19 +0000 UTC]
This is cool, thank you very much for this!
👍: 0 ⏩: 1
Dediggefedde In reply to PatchdDr3ams [2015-08-11 14:00:49 +0000 UTC]
Thanks ^^ You're welcome!
👍: 0 ⏩: 0
8bitisawesome In reply to ??? [2015-07-23 18:36:04 +0000 UTC]
I installed v 1.1.14 but notice no changes to my note page?
👍: 0 ⏩: 1
Dediggefedde In reply to 8bitisawesome [2015-08-05 11:25:36 +0000 UTC]
Hi! Sorry for the late reply...
When you install Firefox+Greasemonkey+Dev_Note_Search2 or Chrome+Tampermonkey+Dev_Note_Search2 you should see a "search" entry at the top-left above "inbox" of your note page: www.deviantart.com/notificatio…
Any other extensions for Chrome or Firefox (e.g. Scriptish) aren't supported by my scripts.
If you don't see any changes, check if the userscript is correctly installed and active:
In Firefox, click on the Greasemonkey-Icon and check, if the script is listed and checked.
In Chrome, click on the Tampermonkey-Icon and check if the script is listed and green.
if the script is listed and active, please press ctrl+shift+j to open the console and reload the page. The Console will list all errors the script might produce. At each alert will be a short link pointing to the script-source. Usually installed scripts have a file-nname of numbers e.g. 132132.user.js. In chrome the original name 180739.user.js may be used.
👍: 0 ⏩: 1
8bitisawesome In reply to Dediggefedde [2015-08-05 16:02:54 +0000 UTC]
Well it's working all of a sudden it showed up. Dunno why. Great feature though thank you!
👍: 0 ⏩: 0
Dediggefedde In reply to Batbane2020 [2015-07-01 13:33:57 +0000 UTC]
Hi!
Did you "index notes" first?
When it's done, there should be a little text like "517 Notes fetched" in the top-right.
Afterwards, entering the keywords and pressing enter or "search" it should display search results.
👍: 0 ⏩: 1
Batbane2020 In reply to Dediggefedde [2015-07-01 19:33:06 +0000 UTC]
so what keywords to type
👍: 0 ⏩: 1
Dediggefedde In reply to Batbane2020 [2015-07-01 20:17:20 +0000 UTC]
well, for example writing
a
in the "Text" field should yield a lot of search results, namely those that contains an a.
Please note that this way only full words are searched.
hal
won't find notes that contain "half" or "epochal". For that, use wildcards like
hal*
Is that working? are there now "123 notes indexed"?
And if not, which browser and Addon are you using with this script?
E.g. Scriptish for Firefox is known to have many bugs.
👍: 0 ⏩: 2
Batbane2020 In reply to Dediggefedde [2015-07-03 22:06:36 +0000 UTC]
now its not working again it keeps sayin saving data
👍: 0 ⏩: 1
| Next =>