Content deleted Content added
→Desired features: bold |
→Development notes: True Match |
||
Line 205:
== Development notes ==
=== Implementing True Match ===
Run the function if Title includes "intitle:"
Parse the Title to get the intitle string.
Then keep only the search results that include that string. One way to do this is use a regex to inverse match via negative look-arounds. <code><nowiki>^((?!hi there).)*$</nowiki></code> will match any line not containing "hi there". Those are the lines we want to remove.
See annotationToggle for how to wrap entries in classed span tags, and then hide those spans. But do it with jQuery instead.
=== Adding the wikicode ===
|