// ==UserScript== // @name Back to dealabs // @namespace http://tampermonkey.net/ // @version 0.3 // @description remet la jauge de température sur les deals. // @author Rasmus // @match https://www.dealabs.com/* // @grant none // @downloadURL none // ==/UserScript== (function() { 'use strict'; function addJauge(t) { var class_temperature = ''; var temperature = parseInt(t.find('.vote-box > span').text().replace('°', '').replace('Expiré', '').trim()); temperature = temperature > 100 ? 100 : temperature; if(temperature >= 0) { class_temperature = 'deal--start'; if(temperature >= 100) { class_temperature = 'deal--hot'; } } else { class_temperature = 'deal--cold'; } temperature = Math.abs(temperature); t.append("