Skip to content

Instantly share code, notes, and snippets.

Andrew Karavaev Nekaravaev

  • Minsk
Block or report user

Report or block Nekaravaev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Nekaravaev
Nekaravaev / sort.js
Last active Apr 11, 2017
BSUIR sort schedule
View sort.js
function sortSchedule(event) {
let tableSchedule = document.querySelector('table.scheduleStyle'),
subjects = tableSchedule.querySelectorAll('tr.ui-widget-content');
event.preventDefault();
for (let row of subjects) {
if (row.getElementsByTagName('td')[0].style.backgroundColor == 'rgb(255, 216, 218)') {
row.style.display = 'none';
}
}
@Nekaravaev
Nekaravaev / vk.js
Last active Nov 21, 2016
Decline invitations [VK]
View vk.js
/*
* Execute on new.vk.com/groups 👍🏻
*/
var declineList = document.getElementsByClassName('flat_button secondary button_small button_light');
var lengthOfDecline = declineList.length;
for (var i = 0; i < lengthOfDecline; i++) {
declineList[i].click();
}
You can’t perform that action at this time.