Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name [Hubspot][Ticket] Show Buttons to Gitlab
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match https://app.hubspot.com/contacts/*/tickets/*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict'; // ADD REFRESH WHEN SAVED
- jQuery(function($) {
- var count = 0;
- var existCondition = setInterval(function() {
- jQuery('.private-table').css('zoom', '0.90');
- jQuery('.private-table tbody tr').each(function( index ) {
- var status = $( this ).children("td").eq(4).children("span").text();
- if(status == 'Offen') {
- $( this ).css('backgroundColor', '#ffd6d6');
- }
- if(status == 'Neu') {
- $( this ).css('backgroundColor', '#fff3b5');
- }
- if(status == 'Wartend') {
- $( this ).css('backgroundColor', '#cfdeff');
- }
- if(status == 'Angehalten') {
- $( this ).css('backgroundColor', '#e0e0e0');
- }
- });
- if(++count == 1) {
- //clearInterval(existCondition);
- }
- }, 1000);
- });
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement