NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name BDIRECT Maly // @include *sedirect.fr* // @grant none // @require http://code.jquery.com/jquery-latest.js // ==/UserScript== $(document).ready(function(){ $('head>title').text('- My BD -') }) $('head>link[rel="shortcut icon"]').attr('href', '/streaming/images/inwebebo/chrome.png') $('.navbar-logo').remove() $('.list-inline>li:not(:last-child)').remove() $('.navbar-links').remove() $('#blocBottom').remove() //$('#navbar-collapse-grid .navbar-nav>li:not(:first-child)').remove() $('#navbar-collapse-grid .navbar-nav>li').remove() $('#loupe').remove(); $('#AppliContent').remove(); $('#textIdentif').remove(); $('#idAccesSecurise').remove(); $('#iw_content_container #wrapper img').remove(); $('#news_search').remove(); //Compte dropdown $('#frmCompte').remove(); $('#blocDroit').remove(); $('#portTR').css('margin-top', '0px').css('top', '0px'); $('#portTR>h6').text(''); //change color $('#blocTop').css('background-image', '') $('.bg-color-c').css('background', '#EEEEEE') $('#rechercheValeur').attr('placeholder', 'Search'); //$('#rechercheValeur').attr('data-original-title', ''); //$('#rechercheValeur').attr('title', ''); if (iamon('accueil')){ $('header-bloc').remove() $('#boxTop').remove() $('#center').remove() $('.cnil').remove() $('.header-bloc').remove() //all but connect $('.list-inline li:not(:last-child)').remove() } $('.nav.navbar-nav').append("<li class ='yamm-fw'><a href = 'portefeuille-TR.php'>Global</a></li>") $('.nav.navbar-nav').append("<li class ='yamm-fw'><a href = 'compte.php?ong=3'>Histo</a></li>") $('.nav.navbar-nav').append("<li class ='yamm-fw'><a href = 'compte.php?ong=7'>Ordres</a></li>") $('.nav.navbar-nav').append("<li class ='yamm-fw'><a href = 'frmIdentif.php'>Connect</a></li>") function value_divider(){ //value divider if(iamon('portefeuille-TR')) var amounts = $('#portTR td:contains("€")') if(iamon('priv/compte')) var amounts = $('.compteInventaire td:contains("€")') for (var i=0; i<$(amounts).length; i++){ var value = $(amounts).eq(i).text(); value = value.replace(/strtoreplace| |<b>|€/g, '') //the g stands for global value = parseInt(value)/10 $(amounts).eq(i).text(value); } } setInterval(function(){value_divider()}, 1000); //Bug portefeuille : if(iamon('portefeuille-TR')) $('.navbar-search').remove()