// ==UserScript== // @name New Userscript // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match https://www.tampermonkey.net/index.php?version=4.9&ext=dhdg&updated=true // @grant GM_log // @grant GM_addStyle // @include https://connect.garmin.com/modern/badges // @downloadURL https://update.greasyfork.icu/scripts/396397/New%20Userscript.user.js // @updateURL https://update.greasyfork.icu/scripts/396397/New%20Userscript.meta.js // ==/UserScript== (function() { 'use strict'; GM_log("garmin cleaning waiting"); var intervalId=setInterval(function(){ var divs =document.getElementsByClassName("badge-available"); //GM_log(divs); divs=Array.from(divs); divs.forEach(function(div){ var div2=div.getElementsByClassName("badge-name") if(div2[0].innerHTML.startsWith('Noble Warrior Hero')) { GM_log("garmin cleaning started"); div.remove(); } if(div2[0].innerHTML.startsWith('Light. Darkness. A Balance.')) div.remove(); if(div2[0].innerHTML.startsWith('Impressive. Most Impressive.')) div.remove(); if(div2[0].innerHTML.startsWith('No, You Move')) div.remove();// if(div2[0].innerHTML.startsWith('Higher. Further. Faster.')) div.remove(); if(div2[0].innerHTML.startsWith('I Can Do This All Day')) div.remove(); if(div2[0].innerHTML.startsWith('Nothing’s Impossible')) div.remove(); if(div2[0].innerHTML.startsWith('Rule the Galaxy')) div.remove(); if(div2[0].innerHTML.startsWith('High Ground')) div.remove(); if(div2[0].innerHTML.startsWith('On Your Left')) div.remove(); if(div2[0].innerHTML.startsWith('Try to Keep Up')) div.remove(); if(div2[0].innerHTML.startsWith('First Avenger')) div.remove(); if(div2[0].innerHTML.startsWith('Hone Your Strength')) div.remove(); if(div2[0].innerHTML.startsWith('Feel the Force Flow')) { div.remove(); GM_log("garmin cleaning done"); clearInterval(intervalId); } }); }, 500); })();