Coder Social home page Coder Social logo

orangehrm-timesheet-filler's Introduction

OrangeHRM timesheet filler

About

This Safari extension automatically fills in timesheets in the OrangeHRM app. All regular working days that were not manually touched are pre-filled on page load. Saves tedious filling the same times for each day of the month.

Current state

The extension is not very polished. Most of the metadata is missing, it is not signed and it does not offer any settings of controls. It won’t be signed until I decide to buy an Apple Developer subscriptions, which is not going to happen anytime soon. Sorry. 🙁

But it works: it fills out the timesheet on page load. Each regular working day (not a holiday, not a leave, not a weekend…) is automatically filled with 08:00 – 16:30 with 00:30 lunch break. Rows that already have some data in them are not filled.

Plans

  • Refactor the code a bit: use Underscore instead of rather cryptic array comparison.
  • Present a button to fill the timesheet instead of doing this automatically.
  • Offer some settings that would allow to customize what is filled in.
  • Bundle the extension filling all the necessary metadata and sign it with an Apple issued web developer certificate.
  • Provide Firefox/Chrome extension of the same functionality.
  • Warn user if he is submitting his timesheet to early, which might signalize wrong month selection.

orangehrm-timesheet-filler's People

Contributors

glutexo avatar

Watchers

 avatar  avatar  avatar

orangehrm-timesheet-filler's Issues

Replace custom logic with simple querySelector

document.querySelectorAll('tr.activeRow:not(.days_off):not(.full_day_holiday)').forEach(activeDay => {
  const inTime = activeDay.querySelector('[name*=inTime]')
  const outTime = activeDay.querySelector('[name*=outTime]')
  const breakDuration = activeDay.querySelector('[name*=breakDuration]')
  const event = new MouseEvent('blur');

  inTime.value = '08:30';
  inTime.dispatchEvent(event)
  outTime.value = '17:00';
  outTime.dispatchEvent(event)
  breakDuration.value = '00:30';
  breakDuration.dispatchEvent(event)
});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.