There is a product out there from Oatey. Its a powder that you put in the toilet and turns the water to a gel that can then be scooped up, if you wanted to go that route.
Liquilock
When you replace the lever inside the toilet remember that the tank must be empty and the valve below the toilet must be closed. This is a manufacture's recommended install of the lever.