Created
May 23, 2024 08:06
-
-
Save anotherjames/3e420378e36b2d651db72aa07466c867 to your computer and use it in GitHub Desktop.
phpMyAdmin: Only show matches in string search results
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery('#searchresults').children('table').find('td:first-child').each(function () { | |
| if (jQuery.trim(jQuery(this).text()).substring(0, 4) === '0 ma') { | |
| jQuery(this).parent().remove() | |
| } | |
| }) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run a search, then from the results page, run this snippet in the devtools console to remove all rows that have 0 matches for your string.