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
// ==UserScript== | |
// @name Splitwise quick add enhancements | |
// @namespace Violentmonkey Scripts | |
// @match *://*.splitwise.com/* | |
// @grant GM_addStyle | |
// @version 1.0 | |
// @author Landor! | |
// @description 2/19/2022, 11:26:25 AM | |
// @run-at document-idle | |
// @downloadURL https://gist.githubusercontent.com/landor/018ac12e959c302c32fe32db31319edb/raw/SplitwiseEnhancements.js |
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
/* radio button selections */ | |
fieldset#label52982679 label.fsOptionLabel.horizontal { | |
/* default state */ | |
background-color: #595959; | |
color:#ffffff; | |
border-radius:5px; | |
cursor: pointer; | |
} | |
fieldset#label52982679 label.fsOptionLabel.horizontal:hover { | |
/* default+hover state */ |
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
/** | |
* add "selected" class to currently selected radio button per fieldset | |
* this will isolate to individual fieldsets so their selected states are separete | |
*/ | |
jQuery(document).ready(function($){ | |
// selector for fieldset | |
// change this to "fieldset#labelXXXXX" to make it apply only to specific fieldsets | |
var fs_selector = 'fieldset'; | |
// callback function to do the work |