Skip to content

Instantly share code, notes, and snippets.

@Qteb
Last active February 2, 2017 12:01
Show Gist options
  • Save Qteb/44829b16ff262f1748005b9bd52f5d46 to your computer and use it in GitHub Desktop.
Save Qteb/44829b16ff262f1748005b9bd52f5d46 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name AlfaBankCustoms
// @namespace https://gist.github.com/Qteb/44829b16ff262f1748005b9bd52f5d46
// @updateURL https://gist.github.com/Qteb/44829b16ff262f1748005b9bd52f5d46/raw/AlfaBankCustoms.user.js
// @downloadURL https://gist.github.com/Qteb/44829b16ff262f1748005b9bd52f5d46/raw/AlfaBankCustoms.user.js
// @version 0.1
// @author Qteb
// @match https://click.alfabank.ru/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
$('table[style="margin: 0px 0px 0px -15px"]').attr('style', 'margin: 0');
$('a[href="https://click.alfabank.ru/ALFAIBSR/?goto=OWN"]').first().closest('.x253.xvi').hide();
$('a[href="https://click.alfabank.ru/cs/groups/public/documents/document/alfa_help07_06.html"]').first().closest('.x253.xvi').hide();
$('img[src="https://click.alfabank.ru/cs/groups/public/documents/document/belarus.png"]').first().closest('.x253.xvi').hide();
$('a[href="http://bonus.alfabank.ru/"]').first().closest('.x253.xvi').hide();
$('img[src="/ALFAIBSR/alfabank/c2/images/fav_star.png"]').first().closest('.xel').hide();
var triggerWord = $('div:contains("Индивидуальное предложение для вас")').last().attr('style', 'text-align: center;');
var triggerWordParent = $('div:contains("Индивидуальное предложение для вас")').last().parent();
var hidedDiv = triggerWordParent.find('div:eq(3)');
hidedDiv.hide();
triggerWordParent.click(function() {
hidedDiv.show();
triggerWord.hide();
});
$('[id*="footer"]').first().hide();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment