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

Dediggefedde In reply to ??? [2015-07-06 09:01:02 +0000 UTC]

Hi again!
Sorry for the delay...
Edit: sorry again, I actually responded that to the wrong note -,-

👍: 0 ⏩: 1

Batbane2020 In reply to Dediggefedde [2015-07-06 15:15:41 +0000 UTC]

its okay and it is working again it does not working working

👍: 0 ⏩: 1

Dediggefedde In reply to Batbane2020 [2015-07-07 09:13:18 +0000 UTC]

I... don't know what you say...
I installed it on a new computer now and here it seems to be working, too...
However, someone else also reported that it gets stuck on "Savin Data"...

👍: 0 ⏩: 1

Batbane2020 In reply to Dediggefedde [2015-07-07 10:45:13 +0000 UTC]

ye it comes up and it freezes

👍: 0 ⏩: 0

Batbane2020 In reply to ??? [2015-07-02 14:44:29 +0000 UTC]

its working now thanx

👍: 0 ⏩: 0

MistressSvedka In reply to ??? [2015-06-30 13:57:05 +0000 UTC]

This script doesn't seem to work anymore.

👍: 0 ⏩: 1

Dediggefedde In reply to MistressSvedka [2015-06-30 15:29:53 +0000 UTC]

Well, it still seems to work, but recent layout changes in dA let the Search tab slide down into your folder-section.
I made an Update now, which will put it back to where it was before.
Please update to v1.1.14 and check, if I could solve your Problem.

👍: 0 ⏩: 1

MistressSvedka In reply to Dediggefedde [2015-06-30 15:48:30 +0000 UTC]

Looks good, though I have some suggestions. A scroll bar would be useful when the number of results is long (it somehow doesn't seem to update the page length). It would be great if I could select all based on search results, and mass delete the marked posts. Finally, it would be great if posts I delete, old fashion way or the way I suggested, automatically get removed from the shown search result.

I tried to re-index the notes, and it stuck on "Saving Data...", the "Index Notes" progress bar frozen.

👍: 0 ⏩: 0

Rhiaan In reply to ??? [2015-06-22 08:09:17 +0000 UTC]

This is incredible, thank you!

👍: 0 ⏩: 1

Dediggefedde In reply to Rhiaan [2015-06-22 09:06:19 +0000 UTC]

Thanks!
I'm glad you like it!

👍: 0 ⏩: 1

Rhiaan In reply to Dediggefedde [2015-06-22 11:25:49 +0000 UTC]

No problem
its great!

👍: 0 ⏩: 0

Deep-Strike In reply to ??? [2015-01-16 17:30:59 +0000 UTC]

Hey,

Your script is awesome, and since you seem kinda skilled, I wanted to ask you something...

I'm a beginner developer  (also an IT student) ... And since there's no proper way to delete all notes at once, isn't there a way to implement some JS to do this work ? I believe I'd need some loop or something

👍: 0 ⏩: 1

Dediggefedde In reply to Deep-Strike [2015-01-16 17:38:28 +0000 UTC]

Yeah, I guess you'll need a loop^^
You could either use the emulative way, using e.g. jQuerys .click() to scroll through all note-pages and click on each on delete after selecting all notes.
Or you use the direkt way, reading through the site's sourcecode and see what exactly happens when you remove a note, so you can do that automatically. I can make the last way easier b telling you that there is a DIFI-Method that can be used to delete notes:
github.com/danopia/deviantart-…
On the page there is also an explanation how to use DIFI-calls in userscripts. The method can be found in Notes -> delete and accepts "an array of note-IDs". So you may need to test how many notes you can delete within a single call, but I don't think there is a hard-cap. If there actually is one, you can link multiple calls into one call (also documented on the webpage).

👍: 0 ⏩: 1

Deep-Strike In reply to Dediggefedde [2015-01-16 17:47:38 +0000 UTC]

Thanks !

Unfortunately, I've been Learning both the assembler, C++, HTML/css languages for now, and I don't really know how JAVA scripts work, to be honest.

However, I understand your explainations although I don't really know how to put those in practice ... 

To begin with, how do I get JS scripts to run properly on Internet Explorer ? Seems like Trixie's dead so it doesn't work on IE 11.1 ...

👍: 0 ⏩: 1

Dediggefedde In reply to Deep-Strike [2015-01-16 18:22:50 +0000 UTC]

Well, supporting IE is one of the hardest thing as a web-developer as a lot of things don't get supported, other features are supported but implemented differently (e.g. emulating key-strokes, some widths-values) etc.
As IE doesn't support a real addon-system, you also can not use userscript-injections with it. I also don't recommend installing yet another software that can access all your hard-drives just so you can modifiy your IE.
IE is invented for people that want a "slim" Browser without modifikations and some "it's working"-promies.
If you want modification you should consider using a Browser that uses Addons, e.g. Firefox, Chrome, Opera or Safari.
To install userscripts in one of those Browsers is easy, though: Using GM-scripts with other Browser

As a web-developer you should also consider to install ALL those browsers as you need to test if your website/script is also working on other browsers.

About learning Javascript, I guess you will get there shortly, as Javascript is almost as essential for the current web as HTML and CSS.
By the way: Java != Javascript. Javascript is a small script-language which doesn't get compiled and get interpreted by the browser to make a website interactive etc. It's not even "really" object-oriented if you don't use pseudo-namespaces.
Java however is a compiler-language which needs to get compiled into machine-code and can run independently on the pc. There is also the possibility to integrate Java-applications within Websites, but that is not Javascript.
The Syntax is mostly the same, though.

👍: 0 ⏩: 1

Deep-Strike In reply to Dediggefedde [2015-01-16 22:15:50 +0000 UTC]

By the way: Java != Javascript. JavaScript 

Yeah I know, I had corrected my comment


Thanks for the infos!

👍: 0 ⏩: 1

Dediggefedde In reply to Deep-Strike [2015-01-16 22:35:08 +0000 UTC]

By the (/another) way, javascript has always accessable source-code (often is also open source), so you can also use existing scripts to learn and write new scripts. of course if you just copy&paste them, it depends on the their licence what you have to/can do.

Especially for Userscripts you should take a look at greasyfork.org and for userscripts for Deviantart a look at the right category: www.deviantart.com/browse/all/…
You can also take a look at my own scripts if you want. As you may know, all you need to edit/read/write them is a text-editor and all you need to run them correctly is a Browser (Firefox, Chrome, Opera, Safari) with the right extension.
dediggefedde.deviantart.com/ga…

👍: 0 ⏩: 1

Deep-Strike In reply to Dediggefedde [2015-01-16 22:48:40 +0000 UTC]

Exactly what I need. Thanks again!

👍: 0 ⏩: 0

GoldenSkarmory [2014-12-09 16:09:47 +0000 UTC]

How many time do I have to make a scan?
I mean, after doing that the first time, do I have to scan again in the future?

👍: 0 ⏩: 1

Dediggefedde In reply to GoldenSkarmory [2014-12-09 16:40:01 +0000 UTC]

No, a single full-scan should be alright as long as you don't remove old notes and expect the script to realize that.
After a full scan (index notes), you can use the "Refresh" button.
It indexes all new Notes until it finds the last indexed note.

If you move notes or remove them, you need a full scan again, so the script will stop listing them, though.

👍: 0 ⏩: 1

GoldenSkarmory In reply to Dediggefedde [2014-12-09 16:44:17 +0000 UTC]

Ok, thank you.

👍: 0 ⏩: 0

DesireeU In reply to ??? [2014-11-02 11:31:12 +0000 UTC]

Hello again! I was an idiot, and accidentally clicked the button next to "Index notes" (I think it was something along the lines of "switch to default") and now the search is apparentely gone >:
I tried following the original link you provided to re-install it, but it still doesn't show (it's listed in Tampermonkey as working, but it's nowhere to be see)
Any idea on how can I fix this? I'm completely lost without your SUPER useful script ;v;

👍: 0 ⏩: 1

Dediggefedde In reply to DesireeU [2014-11-02 13:08:02 +0000 UTC]

Well, that button is actually supposed to be an emergency-fix as it deletes the database as if the script was installed freshly.
That the script doesn't show up usually means that there is a js-error before the button it's inserted into the page. Can you open ctrl+shift+j ("console") and search for an error that is referring to the script after going to your notes?

To fix this issue you could uninstall the script, then go to
chrome://settings/ -> extended settings (link at bottom) -> security (header) -> content (button) -> all cookies and website data (button) -> search for "deviantart.com"  where it says "database"
and remove that entry. That will delete the script's database manually. Now restart the browser, install the script anew and index your notes. It should work like a fresh install.

👍: 0 ⏩: 1

DesireeU In reply to Dediggefedde [2014-11-04 12:06:33 +0000 UTC]

Thanks a lot for the help! Actually, out of curiosity I simply tried restarting the computer, and it's back up c:
Thanks again! ^^

👍: 0 ⏩: 0

Sunrise-LoneWolf In reply to ??? [2014-10-25 15:59:01 +0000 UTC]

This is awesome and useful, and although there's no "Check Notes" button for me, it works perectly searching notes.
 Thanks so much!

👍: 0 ⏩: 1

Dediggefedde In reply to Sunrise-LoneWolf [2014-10-25 16:34:15 +0000 UTC]

Well... yeah^^ That kind of got changed sometime during 2013 or 2014...
The "Refresh"-Button is essentially doing the same though^^

👍: 0 ⏩: 1

Sunrise-LoneWolf In reply to Dediggefedde [2014-10-25 17:12:46 +0000 UTC]

Yeah, the 'Refresh' button is working too.
 Well, thanks again!

👍: 0 ⏩: 0

Vespisia In reply to ??? [2014-10-22 21:28:26 +0000 UTC]

Hello, thank you for your previous help, while it did not entirely solve my problem, I found a way to make the application work thanks to your advice. But since then, I appear to have the same issue apalcasovereign did. I use Chrome + Tampermonkey, and a month or so ago, when I reset to default and clicked index, it no longer indexed, it would just stay frozen. Also, when it did manage to successfully index, the index was not saved in the database. :c This was on my old laptop, I've moved into a new one last week, and reinstalled Tampermonkey and Dev-Note-Search and still experience the same problems. Hope you can help. ;v; Thanks for your time!

👍: 0 ⏩: 1

Dediggefedde In reply to Vespisia [2014-10-25 14:35:10 +0000 UTC]

Hi!
Well, I still can't reproduce the problem...
I installed chrome on a virtual machine, installed tampermonkey, lastpass and devnotesearch2 an indexing without resetting worked fine...
You could try deleting the storage by going to settings->content-settings (button)->all cookies and website data (button)-> search for "www.deviantart.com" where "database storage" is written, click it and click the x to remove the db.

👍: 0 ⏩: 1

Vespisia In reply to Dediggefedde [2014-10-27 08:44:47 +0000 UTC]

Hmmm not sure what happened. But I cleared the cache and cookies (I wasn't sure how to clear database, so tried this instead), and now, notes are indexed, working, AND the refresh button even works! (Something that has never happened before.)

Awesome. Perhaps I just need to keep clearing my cache and cookies once in a while then.

Thank you for replying and the help, Dediggefedde.

👍: 0 ⏩: 0

Shoofly58 In reply to ??? [2014-10-08 20:01:09 +0000 UTC]

Not working for me. I need to search my notes for something so I installed this. I don't get the "Search" tab in the left column of Notes. FF27 on Win7x64 - clicking on the Greasemonkey icon on my addons bar only shows da_ignore is running. FF does show the script is installed.
I did all the usual troubleshoot stuff already. Any ideas?

👍: 0 ⏩: 1

Dediggefedde In reply to Shoofly58 [2014-10-08 20:19:07 +0000 UTC]

Well... for once, currently it's FF32. So try updating FF and Greasemonkey.
I just tested it and it still seem to get listed in my Greasemonkey-Menu and thus the search-tab is still visible.
Try using the url www.deviantart.com/messages/no… .
I also recommend to update the script (v1.1.12) itself in case you somehow got an old version.

👍: 0 ⏩: 1

Shoofly58 In reply to Dediggefedde [2014-10-08 22:08:28 +0000 UTC]

Greasemonkey auto-updates and the script is the right version. When I'm in notes, the script is visible in my GM menu with a green checkmark. I have been sticking with FF27 because ALL my other extensions, addons, themes and scripts work 100% (including DA scripts) and I pretty much hate the changes Mozilla made to FF. It's not a big deal to me - I think I can find what I'm searching for. Thanks for the reply!

👍: 0 ⏩: 1

Dediggefedde In reply to Shoofly58 [2014-10-08 22:36:54 +0000 UTC]

mmh... well, the GM-autoupdate is often buggy... so I just suggested it.^^
If you don't like the current FF's appearance, try this addon: addons.mozilla.org/de/firefox/…
my current Browser (FF.32) looks like this in Win7:

👍: 0 ⏩: 0

alpacasovereign In reply to ??? [2014-09-14 21:58:38 +0000 UTC]

i love this but it recently stopped working for me 8( it jsut indexes notes forever and doesn't actually allow me to search. i use chrome and it's up to date with a new install of the script- something's just not working right atm it would seem u3u

👍: 0 ⏩: 1

Dediggefedde In reply to alpacasovereign [2014-09-14 23:30:57 +0000 UTC]

Mmh... it looks like in a recent version of Chrome's Tampermonkey, "uneval()" was removed.
I made a little update to v1.1.12 to have this fixed. It should work again in Chrome.

👍: 0 ⏩: 1

alpacasovereign In reply to Dediggefedde [2014-09-15 00:13:54 +0000 UTC]

it works now! thanks so much for being on top of stuff :'D

👍: 0 ⏩: 0

Cachomon In reply to ??? [2014-09-12 14:32:04 +0000 UTC]

Thanks!! I've been waiting for this for years!!! But really, admins should be who do this... it's so basic >_>* no needing a pluggin...

Thank you really much!!!

👍: 0 ⏩: 1

Dediggefedde In reply to Cachomon [2014-09-12 22:01:02 +0000 UTC]

You're welcome^^

👍: 0 ⏩: 0

johnnyd2 In reply to ??? [2014-07-02 04:44:01 +0000 UTC]

UPDATE, seems to stop midscan and wont start up again a lot X_X

👍: 0 ⏩: 1

Dediggefedde In reply to johnnyd2 [2014-07-02 08:12:42 +0000 UTC]

mmh... did you try the reset-to-default button?
Is your Firefox + Greasemonkey up-to-date?
Are you scanning with "index notes"?
Try uninstalling, restarting the browser and install again!

👍: 0 ⏩: 1

johnnyd2 In reply to Dediggefedde [2014-07-02 08:25:39 +0000 UTC]

Yes
im using chrome

👍: 0 ⏩: 1

Dediggefedde In reply to johnnyd2 [2014-07-02 11:40:03 +0000 UTC]

So, Chrome and Tampermonkey are up-to-date?
Do you get a prompt that you interupted the last scan and get asked if you want to resume the scan when you click on the "search"-tab?
Try answering "no", then click "reset to default" and after it reloaded, check "index notes" again!

👍: 0 ⏩: 1

johnnyd2 In reply to Dediggefedde [2014-07-02 15:51:03 +0000 UTC]

well, it went for a while, then it stopped on teh saving part

👍: 0 ⏩: 0

johnnyd2 In reply to ??? [2014-05-24 11:34:34 +0000 UTC]

THANK YOU SO MUCH!

👍: 0 ⏩: 1

Dediggefedde In reply to johnnyd2 [2014-05-25 15:45:55 +0000 UTC]

You're welcome^^

👍: 0 ⏩: 1

johnnyd2 In reply to Dediggefedde [2014-05-25 16:45:05 +0000 UTC]

^^

👍: 0 ⏩: 0

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

Update:
Soooooo, for some reason, I can now index custom folders as well. I don't know why it works now, considering that the last 20+ tries didn't. XD It was not 100% though, not all of the folders were able to be indexed, but for the most part, I was able to index around 80-90% of my custom folders. o:

Also, is there any way I could get the 'check notes' button? I mean, I could do the 'reset to default' and just index everything that way, but it is a bit tedious. 

Oh yeah! I am using Google Chrome btw, with Tapermonkey.

👍: 0 ⏩: 2

Dediggefedde In reply to Vespisia [2014-04-15 11:48:54 +0000 UTC]

Hi again!
I just noticed a bug in the recent version on the mirror-page.
you should install it again from the mirror and see if it works now.

don't know about userscripts... whenever I check this partly doesn't work, so just ignore that link^^

👍: 0 ⏩: 0

Dediggefedde In reply to Vespisia [2014-04-15 07:32:47 +0000 UTC]

well, the current version has 4 buttons:
"reset to default", "index notes", "search" and "refresh".
Reset to defalt deletes the database where the script stores data
Index notes is clearing the notes-data and indexing all anew
Refresh is indexing any new notes until it finds one it already indexed at some time.
I renamed the refresh-button as some people had some arguments I don't remember right now^^ In the end, refresh was easier to guess, I think.

There were some problems with custom folders up to the last version I updated. do you have the most recent?
I will test this issue more thoroughly later today.

👍: 0 ⏩: 0


<= Prev | | Next =>