I don't use this script but tried to get it working quick...I couldn't get alignments to make sense, though.
If you change the sheet declarations starting on line 120 to this
and var saveItem delcaration on line 218 to this
It will at least show. Seems to work (I think? Like I said, I didn't use the script), but the config menu doesn't display properly (and the icon doesn't display).
If you change the sheet declarations starting on line 120 to this
Code: Select all
sheet.insertRule('#timerLSIconContainer, #timerLSIconContainer div{height: 60px; width: 57px; font-size: 1.3rem; font-weight: bold; color: brown;}', sheet.cssRules?sheet.cssRules.length:0);
sheet.insertRule('#timerLSIconContainer div{background: transparent url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAtCAYAAADcMyneAAAABmJLR0QA7wAKACUVVLrgAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wwCByktRJP0ywAAAntJREFUWMPtl79qFFEUxn9nc5ItQhAESaEWASE2AUVEMWAjTHF9gBSiTYTgAwRrCy0Egz6BiI36AIOsgoWgsFhpEK1sUiiEoCFC/pydYzGbzbjZzCab2U0zX7U7c++Z737nzz0HSpQoUaJEiRIlSpQo0Tvk0AYCJzHG0EMYMRKUZY9ZKZSgBOaAew7jYukz3ydRMUDBd4gsAjc85nMhBCViAvjoyrjAE2Dd4a4YSygvMTY6bkwPcAKYdVgSeI5xGrgF1L3GpWKCI3CBgEvEw4yiLoH3EhjpovwZidgi8C7z7K1ELUHbztNj8Hpq4U+T8EgzniooVWAzZ3u16eaKR4ik5v52WlgpNNHsALt2SyOd4lcLrQl6oMzd1z4ttGSlmZlgNLqs3cpmcFFnzkfMhgcSMc66coWIH3tYTzBmUCpirHkNJ0L2YlKoi8WYd+WRwJtcy6l6q6I8HqSL8RoLBL65Md3M5L3wG3jtMZ8G5+IdV8dAfBR518tVOAWM7io/yqbDInFurewzwcALIHIYbf+KwDrwhYjr1JqFfqAEA3NizLjyU4wPKElbDZxCmRZlwWF24AQFrqI0BO54g6+inPOYV60FEZPAIsYkIf82q/RFQWMII8FYpcpTjGcSuJithWLginfrqPrjYv2vNlZdMWC4U0/YrX/sWUHv+LPDfZu6uip5rUT6xsUKVLDVbhnHOpBvND827HAT4zI16pklG61rL6bhaQM8Wmw3Y6yI8suVeYmooqxl9DjvypDAbYHvKE7gAYajgHEcpeIwIYH7GKdcuSZG3fs1k7THleT4fnse2Y6P5v9iZ5LsVOcwJnYoMwmw7LXdU12JEkeNfwRMzg9iQTAvAAAAAElFTkSuQmCC") center top no-repeat;}', sheet.cssRules?sheet.cssRules.length:0);
sheet.insertRule('#timerLSIconContainer div.prevent{background: transparent url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAtCAYAAADcMyneAAAABmJLR0QA7wAKACUVVLrgAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wwCAxQwSnR4cAAAAvFJREFUWMPtl09rHHUcxj/Pb7Mdd0KpiciiViQ4Q71UKiKKBS+CCL6AHkQvFYovoHj2oAfBoq9AxIv2BRShBQ+CQvSkoagbKGIOVtIZW9pNdrMzj4d0YtxsNrq7MZd5brM/9plnvn+e7/cHNWrUqFGjRo0aNWrUmByaliCP08cK+3hDk1MNXJZNhfUHu51spgL/jNMLhndL3A4WltF9Sv+HiJQ2QVoJ4vUT9zo/zERgHqdLwLe220IfA5uW3wGtgb+Q1dtPoe2HJc6D1jCfIR63/aak5YVu5/mZ1MZ6K3k2ixPncfrBLtHO4/TrPE6PHfBxSRanW1mcfLXrt2vrrWRP4OcmFVjVnPFtgN/ipUpUACKgP+bvERhMuN46qUfUkvG9UXU8N1UYDWKC7nBVXd551D7lFqb2AA2/+N96h7dVqWqr0d8ZZuVXebFVvam0XYwNoL0lCQy/9rtjeadOcYWne2u9rJWUiKeC9OIfDzx5Y2REpFLSOUOQdPfVwS1nxxalKtEzFTjEJ+ki9oeluNoMByTHvoP00d80OoQIDmGh27mUtZKfbJ/1difv6/GCLxe6ne8P4pypQIDFjdUrwJVZ8c1c4G7cipPTAc3vbW73mw4rxzd+6R+ZwKyVfA68AswPO5HQ5qaKH29GyWvt3urt/11gHqcXjM8J/W77G6BU5ec2FqfnHM4OGuUl4PxRRPAloQJ4u0d5PSKcWeh2Lu+kvpWcAq80rFPfNR8d2+5hah8cPT0a4BJzJ1L4RNKneSt5rjrcssuKoa1I48bQbEfd0KEFQpFhADRH2acP2PymHnXGHmPGAIUgQhqMZxnNM3ENFpiw3ZEnRh5jJDVL+w3ghYc2Vpd3Nmioltnyif6Ngj7kcTpfjEjz5PsgyoCbti/mcRoZ372/LQyAZ0AN228F6WfAeZy+b9tCFPIiEISW8jh9Dzhp++WGtHw4dxK7HapxbzO8InroSf7n9ncod5I9tzoE8gRFLAbsf6urUeOo8ReIfjXw7xc8AAAAAABJRU5ErkJggg==") center top no-repeat;}', sheet.cssRules?sheet.cssRules.length:0);
sheet.insertRule('#timerLSIconContainer div[type=\'savedInfo\']{background: transparent; height: auto; width: auto; position: absolute; right: 0; top: 40px;}', sheet.cssRules?sheet.cssRules.length:0);
sheet.insertRule('#timerLSIconContainer div[type=\'savedInfo\'] pre{background: #bedce5; border-radius: 2px; color: brown; margin: 2px 0 0 0; padding: 0 5px; text-align: right; white-space: pre;}', sheet.cssRules?sheet.cssRules.length:0);
sheet.insertRule('#timerLSIconContainer button{background: none; border: none; outline: none; position: absolute; right: 5px; top: 3px;}', sheet.cssRules?sheet.cssRules.length:0);
sheet.insertRule('#timerLSIconContainer div[type=\'cnf\']{cursor: default; display: none; text-align: right; background: #bedce5; border: solid 1px #ccc; border-radius: 2px; height: auto; width: auto; color: black; font-size: 11px; padding: 4px; position: absolute; right: 0; top: 2px; z-index: 1;}', sheet.cssRules?sheet.cssRules.length:0);
sheet.insertRule('#timerLSIconContainer div[type=\'cnf\'] .barrCnf{background: #3d3d3d; border-radius: 3px; color: white; height: auto; width: auto; font-weight: bold; margin-bottom: 2px; padding: 1px 6px; position: relative; text-align: left;}', sheet.cssRules?sheet.cssRules.length:0);
sheet.insertRule('#timerLSIconContainer div[type=\'cnf\'] .barrCnf span{background: red; border: solid 1px #ccc; border-radius: 2px; cursor: pointer; display: block; height: 13px; width: 13px; position: absolute; right: 5px; top: 5px;}', sheet.cssRules?sheet.cssRules.length:0);
sheet.insertRule('#timerLSIconContainer div[type=\'cnf\'] label{display: inline; font-weight: normal; padding: 0 5px 0 3px; white-space: nowrap;}', sheet.cssRules?sheet.cssRules.length:0);
sheet.insertRule('#timerLSIconContainer div[type=\'cnf\'] input{max-width: 45px; margin-bottom: 1px; padding: 0 4px; text-align: right;}', sheet.cssRules?sheet.cssRules.length:0);
sheet.insertRule('#timerLSIconContainer input[type=\'range\']{left: -4px; margin: 0; outline: none; padding: 0; position: absolute; top: 17px; transform: rotate(-90deg); width: 25px;}', sheet.cssRules?sheet.cssRules.length:0);
Code: Select all
var saveItem = $('[class*="toolbar-button waze-icon-save"]')[0];
Re: [Script] WME TimerLS