FILTER LOANS - current version 1.14
HERE:
openuserjs.org/scripts/0risk/FilterLoansWHAT'S NEW:
-----------------
- adapted to new "bonus" column (v 1.14)
- new graph: SM availability total (v 1.13)
- check box to show all loans (v 1.12)
- setting to hide loans with low rate.
- total number of loans and amount on SM
FEATURES:-------------
- auto refresh loans page
- auto sort on remaining days (list loans by order of remaining term)
- auto click on a loan (to speed up buying process)
- hide loans (either by name; low availability; or short term)
- highlight loans (by name; long term)
- set minimum interest rate when highlighting loans
- you can define an amount to hide loans that you're already invested in
- click to sort on columns
- checkbox to turn on/off auto-refresh
CAUTION:------------
- You have full responsability when using this script.
- Any change on the site layout may break the script
- Use auto-refresh with care. When using auto-refresh, don't leave your browser unattended.
- This may put extra burden on Lendy server, your computer and bandwidth.
- There may be bugs.
- The "Available Loans" page may not work well. For example, right now the script breaks the funcionality to change the loans view from table to tiles.
- Tested with Chrome browser. It may work in Firefox
In any case, it is VERY IMPORTANT for you to know how to disable the script !
INSTALATION:------------------
1. You'll need this browser extension to run the script:
TamperMonkey.
Chrome:
chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfoFirefox:
addons.mozilla.org/en-US/firefox/addon/tampermonkey/?src=ssOther browsers:
tampermonkey.net/After installing it, notice the new extension icon (top right corner of your browser).
I believe that it's wise to disable auto-update of the scripts. You don't want to lose the changes you made to the script, and you may want to have a look at the new features and changes made to the code. It's safer too to have control on the changes. See the picture:
2. To install our script, access the provided link at the beginning of this post and click Install.
In case of reinstall, you'll probably want to save your configuration before (loans to buy, etc...) and re-apply it after upgrading.
See CONFIGURATION below.
Note: The option "auto click on a loan" opens a new tab. You'll need to allow pop-up for lendy.co.uk site
OPERATION:---------------
It's automatic. Every time you visit the loans page (link: lendy.co.uk/loans/available), the script will execute, either you are logged in or not.
Our script is named FilterLoans. You can disable it any time you want by clicking on TamperMonkey icon and then on the script name.
You can also disable the TamperMonkey extension altogether.
We're here in case you need help.
CONFIGURATION:----------------------
To configure the script, click on TamperMonkey icon and then in Dashboard. Click on the Edit icon. You may change the following variables:
var theGood = []; // highlight those loans, eg: ['PBL091','PBL092']
var theBad = []; // hide those loans, eg: ['PBL091']
var buyLoans = { // open new window to bid on this loan, when it becomes available, and fill in this amount
'PBL000' : 110,
'DFL000': 40,
};
var minValue = 9.00; // hide loans with availability below this number
var goodTerm = 30; // highlight loans longer than this number
var goodMinRate = 12; // minimum interest rate to consider for highlighting loans
var maxInvestedValue = 1000; // hide loans where I've already invested this much
var badTerm = -200; // hide loans with remaining days below this number
var termSortByDefault = true; // if true, table is initially sorted by remaining term
var autoRefresh = 10; // autorefresh time in seconds (minimum 4). To disable it, use autoRefresh=0.(Using the keyboard/mouse on this page resets the timer.)
var beepSound = true; // beeps when I find a loan to buy
SECURITY CONCERNS:-------------------------
- This script is activated on pages that match:
// @match lendy.co.uk/loans/available*
- It requires two known libraries below, jquery and tablesorter:
// @require cdn.bootcss.com/jquery/3.1.0/jquery.min.js
// @require tablesorter.com/__jquery.tablesorter.min.js
- It sets/gets one value from storage (autorefresh on)