Skip to content

Instantly share code, notes, and snippets.

@michalkowol
Created September 27, 2018 11:30
Show Gist options
  • Save michalkowol/ded9ce7ce5049307fa1432dd8ac5911a to your computer and use it in GitHub Desktop.
Save michalkowol/ded9ce7ce5049307fa1432dd8ac5911a to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name medicover
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://mol.medicover.pl/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
setInterval(function () {
$('.search-button .btn').click();
// $('.freeSlot-footer .btn')[0].click()
$('button.close').click();
},60000);
setInterval(function () {
location.reload();
}, 600000);
})();
// ==UserScript==
// @name medicover rsvp
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://mol.medicover.pl/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
setInterval(function () {
$('.search-button .btn').click();
setTimeout(function () {
$('button.close').click();
}, 2000);
setTimeout(function () {
var rsvpLink = $('.freeSlot-footer a')[0];
if (rsvpLink) {
rsvpLink.click();
}
}, 5000);
},60000);
setInterval(function () {
location.reload();
}, 600000);
})();
// ==UserScript==
// @name medicover rsvp confirm
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://mol.medicover.pl/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
$(function () {
$('#bookAppointmentButton').click();
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment