MAM Ratio Protect
Protects users from accidental hits to their upload/download ratio by setting thresholds for reminders to purchase a download as a personal freeleech. Thresholds can be configured for four levels of ratio damage severity, the highest of which disables the download button to prevent an accidental huge ratio loss.
Usage:
After buying a torrent with a FL when the download button has turned red, reload the page and the download button will return.
Details:
This script only looks at MAM pages that provide a download button for a torrent. If the torrent is freeleech, it will do nothing. If it will affect your ratio, it will color code the download button to indicate four ranges of loss severity to your ratio by downloading with out purchasing it with a FL wedge first. These are:
Blue: Ratio hit less than trivial (0.3 default)
Green: Ratio hit trivial to moderate
Orange: Moderate or medium ration hit (0.5 default)
Red: Protection threshold hit, button is disabled and "Download" becomes "FL Recommended". (1 default)
The button text also changes with non-trivial loss from white to black for better contrast with bright colors, and the change is also easily seen by the colorblind.
The change in ratio is also listed right above the download button, which is more useful than the new ratio provided in the ratio box which requires looking in several places to determine significance.
Customizations:
This is a very short and relatively simple script, so there is no fancy user settings menu.
The code is well commented with suggested customizations even a non-programmer should be able to handle.
Range boundaries can be edited on the lines with "if(rdiff".
If you never want to disable the download button, comment out the line after "Disable link to prevent download".