HOME | DD

Dediggefedde — Dev_Note_Search2

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

Vespisia In reply to ??? [2014-04-15 05:39:12 +0000 UTC]

Hi!

This application has proven to be so useful to me. However, I have a few questions:

1. My version does not have the 'check notes' option. Instead, in its place, is a 'refresh button.' This makes it hard for me to index new notes. I've found that resetting to default and then just indexing notes via that method works though!

2. I've tried indexing custom folders, but it does not work at all. Do you know why, perhaps? These are custom folders such as "Pending Commissions," and "Adopt Files." They are not the default folders that your notes comes with, such as Inbox, Drafts, and Sent Notes.

Thank you for your time. ;v;

👍: 0 ⏩: 0

Insacove In reply to ??? [2014-03-17 00:23:58 +0000 UTC]

For some reason when I attempt to index notes for a certain folder, it takes literally a second for it to say "0 Notes Fetched".
Truth be told it's only happening with this one folder, the inbox, starred notes, and sent notes along with drafts are ok. In fact now that I check again it's doing it for ALL of my folders.
This is sad because I've been waiting forever for a note search and now it won't work properly for me. ;A; I'm using Tampermonkey on Chrome if that helps.

👍: 0 ⏩: 1

Dediggefedde In reply to Insacove [2014-03-17 01:19:03 +0000 UTC]

Thanks for your report! It seems the problem is primarily caused by a bug in deviantart.com.
Usually, the amount of notes stored within a folder is displayed within a html-property "rel".
I just noticed, however, that it for custom folders this number is now set to "-1".

I guess this will be fixed someday, but I made an update for an work-around in my script:
For custom folders it will use the refresh-function slightly changed, so it will index forward indefinetely until all pages are indexed. This has the drawback that the scan can not be paused and resumed later on. Interrupting indexing custom folders will result in only the number of pages indexed by that time to be able to searched through.

Testing the script Version 1.1.10 works fine now for me in chrome+tampermonkey.
Please update the script! If the error continues, please try the "Reset to Default"-button afterwards!

👍: 0 ⏩: 1

Insacove In reply to Dediggefedde [2014-03-17 01:31:07 +0000 UTC]

Ok, will do! :'D And that's fine for me -- I normally just keep the tab open, so I wouldn't have to resume anyway. .w.

👍: 0 ⏩: 1

Dediggefedde In reply to Insacove [2014-03-17 11:18:57 +0000 UTC]

When you have tried, please let me know if it working now for you!
I also expect Tampermonkey to realize on its own that there was an update and update it with a little notification^^ If that doesn't appear, just press the install-button of the script again.

👍: 0 ⏩: 1

Insacove In reply to Dediggefedde [2014-03-17 19:38:31 +0000 UTC]

I've tried last night, and oddly enough, one of the folders were working but all the others were still bugging out. o:
The folder it worked on didn't have as many notes stored in there as the others did, so... I'm not sure if that's influencing anything.

👍: 0 ⏩: 0

LadyLirriea In reply to ??? [2014-03-07 18:43:39 +0000 UTC]

either userscipts are down or my computer wont allow that site ;.;

👍: 0 ⏩: 1

Dediggefedde In reply to LadyLirriea [2014-03-07 19:18:46 +0000 UTC]

Thanks for your notice!
userscripts.org seems to be down.
I added a mirror-Link on my own server.

👍: 0 ⏩: 1

LadyLirriea In reply to Dediggefedde [2014-03-08 00:01:06 +0000 UTC]

thank you and no problem XD i was going to use it today when i noticed it XD i though it was just my computer so i tried another and it happened there to.

👍: 0 ⏩: 0

SimplySilent In reply to ??? [2014-02-24 03:33:16 +0000 UTC]

This is glorious. Thank you very much.


I had fun going back into my ancient notes and seeing the crazy stuff I got up to then.

👍: 0 ⏩: 1

Dediggefedde In reply to SimplySilent [2014-02-24 13:03:15 +0000 UTC]

Thanks^^ I'm glad it is useful!
If something doesn't work in one of my scripts, feel free to report!

👍: 0 ⏩: 1

SimplySilent In reply to Dediggefedde [2014-03-03 01:29:13 +0000 UTC]

Your scripts are dead useful. I'm absolutely in love with your llama one. Seriously, I don't know how I've survived for so long without it.


I'll keep that in mind!

👍: 0 ⏩: 0

Xeerinare In reply to ??? [2014-01-30 03:59:19 +0000 UTC]

The index notes button isn't working at all do you know what's wrong?
To be more specific, i started indexing notes and then i left the browser to work on something. I stopped back a few seconds later and the indexing stopped and won't start back up. I even tried restarting the browser, turning the script off and on, and even uninstalling and reinstalling the script and nothing seems to be working. Do you know how to fix this problem? I'm using Firefox if that helps.

👍: 0 ⏩: 1

Dediggefedde In reply to Xeerinare [2014-01-30 22:23:40 +0000 UTC]

Thank you very much for your report!
I noticed a few bugs thanks to that.
The biggest one was, that it didn't save data properly. I overrated the time needed to save and unintentionally produced racing conditions.
So, I hope your bug is fixed with that.

I also inserted a new button "Reset to default" which will remove the database on a page-reload. This will affect all note-indices, but no note will be removed, only the data stored within the script.

So, please update to v1.1.0 and tell me if the bug persists!

👍: 0 ⏩: 0

Nichrysalis In reply to ??? [2014-01-21 04:54:54 +0000 UTC]

I just noticed this, but this script is working flawlessly for me all of a sudden. Have you done any recent updates?

👍: 0 ⏩: 1

Dediggefedde In reply to Nichrysalis [2014-01-21 10:59:29 +0000 UTC]

I think the last update was in November.
I made some updates after zio-san reported some problems that seemed solvable^^
I'm glad it's working for you now!

👍: 0 ⏩: 1

Nichrysalis In reply to Dediggefedde [2014-01-21 13:58:40 +0000 UTC]

As am I.

👍: 0 ⏩: 0

RavensHiddenSoul In reply to ??? [2014-01-10 01:18:05 +0000 UTC]

I've been needing something like this for YEARS! And now that I have actual group responsibilities and I rather like messaging people personally, something like this is almost NEEDED. I'm sure this will be IMMENSELY useful!

Thanks for creating this and thinking to share it, I just know I'm going to love it!~ ^W^

👍: 0 ⏩: 1

Dediggefedde In reply to RavensHiddenSoul [2014-01-10 20:35:58 +0000 UTC]

Thank you!
I'm glad you like it^^

👍: 0 ⏩: 0

dragonspeaker In reply to ??? [2014-01-04 07:42:23 +0000 UTC]

This is probably the most useful thing I've ever seen on this site. Thank you!

👍: 0 ⏩: 1

Dediggefedde In reply to dragonspeaker [2014-01-04 17:10:14 +0000 UTC]

Thanks^^
I'm glad you like it^^

👍: 0 ⏩: 0

soraac In reply to ??? [2014-01-03 12:39:55 +0000 UTC]

THIS IS BRILLIANT! I've always needed this! Thank you!! 

👍: 0 ⏩: 1

Dediggefedde In reply to soraac [2014-01-03 14:19:48 +0000 UTC]

I'm glad you like it^^

👍: 0 ⏩: 0

Newsmoke7 In reply to ??? [2013-12-04 00:35:42 +0000 UTC]

I tried installing this thing given that I had gotten somewhat lazy at indexing my notes. So I installed and I haven't really got a full taste of what the extension has to offer. Mostly due to the issues with my run with it [I was using Chrome with Tampermonkey]


So far the issues I noticed are that whenever I click the Search function after typing in a name and such, nothing shows up. I have tried this several times and have not seen any results. I am going to see if I can get it to work on Firefox


Whenever I try to index the notes, the thing takes too long for it to process and seems to never get done indexing. Those are just my issues with it however which is a shame because I really like the idea of this extension. A search function would prevent me from losing my notes 

👍: 0 ⏩: 1

Dediggefedde In reply to Newsmoke7 [2013-12-04 09:24:59 +0000 UTC]

mmh... I just tested it with a recent version of tampermonkey and chrome.
Did you click the "index Notes" button? Will it become a progressbar afterwards?
If you press ctrl+shift+j and choose "console" are there errors linking to this script (or the tampermonkey-extension)?
You could also try te reset its data by choosing "Resources"->"indexedDB"->devnotesearch2->devnotesearch2,  rightclick it and choose "clear".
Did these tips help you?

👍: 0 ⏩: 1

Newsmoke7 In reply to Dediggefedde [2013-12-05 01:47:56 +0000 UTC]

I tried your advice and it didn't really improve things on my end. I am going to see if I have the same issues on Firefox on my other computer

👍: 0 ⏩: 0

Shadow-Guardian0 In reply to ??? [2013-11-11 02:05:48 +0000 UTC]

How do I get it to uninstall the old version?

👍: 0 ⏩: 1

Dediggefedde In reply to Shadow-Guardian0 [2013-11-11 11:23:30 +0000 UTC]

I guess you are using Firefox and Greasemonkey.
You can uninstall userscript inside your addon-tab! Just choose Addons/Tools->Addons from your menu or type about:addons into your adress bar.
There is a tab called "User Scripts" where you have a list of all currently installed userscripts with a "remove" button.

👍: 0 ⏩: 1

Shadow-Guardian0 In reply to Dediggefedde [2013-11-11 13:20:39 +0000 UTC]

Nope, chrome and tampermonkey

👍: 0 ⏩: 1

Dediggefedde In reply to Shadow-Guardian0 [2013-11-11 13:30:58 +0000 UTC]

Then you can go to the tampermonkey-options, using either the extension-page and choose options for tampermonkey or using the tampermonkey-icon and choosing "overview".
There you also get a list of all installed userscripts with an option to remove them.

👍: 0 ⏩: 1

Shadow-Guardian0 In reply to Dediggefedde [2013-12-29 22:06:00 +0000 UTC]

It works now

👍: 0 ⏩: 1

Dediggefedde In reply to Shadow-Guardian0 [2013-12-30 11:07:18 +0000 UTC]

I'm glad to hear it works now^^

👍: 0 ⏩: 1

Shadow-Guardian0 In reply to Dediggefedde [2013-12-30 22:23:41 +0000 UTC]

Yeah, thanks for making it!

👍: 0 ⏩: 0

zio-san In reply to ??? [2013-10-27 17:30:41 +0000 UTC]

oh, good u implemented it

a beer for the developer

👍: 0 ⏩: 0

namenotrequired In reply to ??? [2013-10-27 16:23:32 +0000 UTC]

I notice *Desiree-U mentions one of my bugs as well, but nothing you or she said fixed it for me.

👍: 0 ⏩: 0

namenotrequired In reply to ??? [2013-10-27 16:14:04 +0000 UTC]

It looks like a great improvement!


The search itself works great.


The indexing doesn't for me, however. For most folders (including Inbox, almost 9k notes, as well as some that are only 2 pages), it will only index the first page (10 to 25). For "Starred" folder on the other hand, it manages to index 117 even though I only have 54 starred. It seems it finds many twice or thrice, see below screenshot (left out note titles and content for privacy, but you can tell from the timestamps when it's the exact same note). Note especially how I selected one note and now the bottom 3 are selected.



To its credit, it does find starred notes beyond the first page of Starred, too. But that's the only folder where it seems to do that. 


Interface suggestions: (sorry, this happens to be the part that I'm most trained in )

  • I'd replace "name" by "username" (or "From" or "Sender") and "title" by "subject" (and perhaps "text" by "note"). These are the terms that deviantART uses so it's much clearer, especially since in every day use, "name" and "title" are synonyms.
  • I'd rename "Check Notes" to "Refresh" or "Update". I'm on my notes page to 'check my notes' already. ^^ And isn't it the same as "Index"? I think those would make more sense as a single button since they seem to do the same (just that one is for the first time and the other for the other times).
Other bugs:

  • After I index an empty folder, it still tells me that I need to click "Index folder" instead of saying something like "this folder is empty".
  • If I open another folder first, and then click the search tab, indexing any notes doesn't work (perhaps cause the URL still has #folderid_0 ?). Clicking "inbox" and then "search" again fixes it.

Tested on Firefox


I hope that helps!

👍: 0 ⏩: 1

Dediggefedde In reply to namenotrequired [2013-10-27 17:35:02 +0000 UTC]

Maybe I'm cursed... a luck curse, so everything works for me, even if it should not...
I mean, I even had beta-testers, ~NightsCrimson had even more than 21k Notes...
And yet I still have no idea what is actually going wrong with you and =deviant-garde ...
I mean, 25 pages mean 250 Notes, right? and I've got 380 and it works fine...
I can index any folder from any other folder...
and your screen is also fun, as I first check on every note if it's already part of the indexed ones and second make the result-list id-wise unique...
When you open your console, there should currently be some number madness coing on while indexing.
There should be a number indicating the current offset of notes scanned (like 80 for scanning the 8th page) and every progressbar-step an array with the offsets that are yet to scan...
would be nice, if you press ctrl+shift+j to open the javascript-console and look at them to see irregularities^^
Logbook->logs needs to be activated, to see console.log entries.

I also made a little update with your mentioned changes... and some thing that may solve this issue^^ although that's more like a guessing game here...
So, would you please update to v1.03 and try again?

👍: 0 ⏩: 2

namenotrequired In reply to Dediggefedde [2014-02-17 21:57:35 +0000 UTC]

Sorry that I never responded I've been using a browser without userscripts primarily.


I just installed the linked version, is that supposed to work right now? I didn't see any effect.

👍: 0 ⏩: 1

Dediggefedde In reply to namenotrequired [2014-02-18 00:25:49 +0000 UTC]

Well, it's even v1.1 now^^
I added a little button to set back the internal settings.
I also just removed my indexedDB-Database and run this script again and it's still working^^
Maybe it would help, if you click the Reset-to-default button? Or even delete the indexedDB-folder regarding deviantart.
Apparently in the profile-folder of firefox there is a storage folder with a persistent folder with a "http+++www.deviantart.com" which can be killed to remove indexedDB...

👍: 0 ⏩: 1

namenotrequired In reply to Dediggefedde [2014-03-02 22:09:35 +0000 UTC]

Ugh, my bad. I forgot I had to choose "Search" first. It is there though!


The script isn't working very well but that's to be expected with my amount of notes. I'd love to be more detailed but I found zero consistency in the bugs, all of them seem to appear and disappear at random

👍: 0 ⏩: 1

Dediggefedde In reply to namenotrequired [2014-03-02 22:21:21 +0000 UTC]

stange^^
Well, have you tried waiting from a reset until complete scan of your notes to see if it works then?

👍: 0 ⏩: 1

namenotrequired In reply to Dediggefedde [2014-03-03 20:48:30 +0000 UTC]

I didn't realise the Reset to Default buttonw ould help! It took a few tries, but now it worked. Thanks!

👍: 0 ⏩: 1

Dediggefedde In reply to namenotrequired [2014-03-04 01:32:55 +0000 UTC]

I'm glad it is working right for you now!
I hope that case stays solved^^

👍: 0 ⏩: 1

namenotrequired In reply to Dediggefedde [2014-03-05 11:30:25 +0000 UTC]

Me too

👍: 0 ⏩: 0

deviant-garde In reply to Dediggefedde [2013-10-27 17:39:50 +0000 UTC]

Already implemented IndexedDB? Wow, lemme see how this works.

👍: 0 ⏩: 1

Dediggefedde In reply to deviant-garde [2013-10-27 17:46:15 +0000 UTC]

what? oh, I answered namenorequired here^^
indexedDB is not implemented^^
First the script will have to work for everyone (even you)^^
Unless it's a storage-problem causing it to stop... then this would need to be done now...

👍: 0 ⏩: 1

deviant-garde In reply to Dediggefedde [2013-10-27 17:47:32 +0000 UTC]

Alright, I didn't notice who you were referring to.

👍: 0 ⏩: 0

deviant-garde In reply to ??? [2013-10-26 19:54:57 +0000 UTC]

As far as data limits go, there's no reason you have to use GM_get/setValue and store the information in Firefox's preferences. You can always use localStorage, or even go for IndexedDB if you need an efficient way to store and retrieve a lot of data that's a little more complex.

I also didn't know Opera could use userscripts.

👍: 0 ⏩: 1

Dediggefedde In reply to deviant-garde [2013-10-26 22:18:55 +0000 UTC]

thanks for the info, but if I remember right, localStorage also got a size limit of 5Mb (2.5Mb in chrome)...
IndexedDB would be a tipp... last time I checked, it wasn't that well supported, but currently only safari doesn't like it...
Currently storage seems sufficient and I will probably not change the datastructure again, as the current way is faster for searching and doesn't require that much time while indexing... But maybe I will exchange GM_set/getValue with the IndexedDB methods... that would make the script work natively in chrome/opera after all... And firefox warns to maybe slow down when storing more than 10kb there...

Opera was, as far as I know, the first Browser to support userscripts and natively. However, it wasn't as fancy as Greasemonkey. After userscripts became equivalent to Greasemonkey-scripts, Opera even supported the Header, as long as no GM-functions were used. Someone then made some additional scripts to make them work again (I think first via cookies and later with local/session-storage)... However, now with Violentmonkey everything becomes finally almost as easy as in chrome or Firefox^^

👍: 0 ⏩: 1

deviant-garde In reply to Dediggefedde [2013-10-27 00:01:58 +0000 UTC]

I never knew that about Opera. By the way, I tried your script and it only indexed about 35% of my notes and gave up. I clicked the button to index again and the percentage went into the negatives. I haven't done anything else with the script since that but I thought you'd be interested in knowing. I know what it's like to have a script without a ton of users at the moment where nobody wants to report any bugs.

👍: 0 ⏩: 1


<= Prev | | Next =>