-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathshutterstockZenboard.js
More file actions
24 lines (23 loc) · 950 Bytes
/
Copy pathshutterstockZenboard.js
File metadata and controls
24 lines (23 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// ==UserScript==
// @name Shutterstock Zenboard
// @author skillup (skillup.lj.ru)
// @source http://skillup.lj.ru
// @version 1.0
// @description Clears the dashboard of unnecessary items :)
// @include https://submit.shutterstock.com/dashboard*
// @include https://submit.shutterstock.com/
// ==/UserScript==
(() => {
let temp = document.querySelectorAll('.row');
Element.prototype.remove = function() {
this.parentElement.removeChild(this);
};
NodeList.prototype.remove = HTMLCollection.prototype.remove = function() {
for (var i = this.length - 1; i >= 0; i--)
if (this[i] && this[i].parentElement) this[i].parentElement.removeChild(this[i]);
};
for (let i = 8; i < temp.length - 4; i++)
temp[i].remove();
temp[7].parentNode.className = '';
temp[7].parentNode.style.cssText = 'width: 400px; margin: 0 auto; margin-top: 200px;';
})();