// ==UserScript== // @name Huawei E5372 branded USSD // @namespace http://dluciv.name/ // @description Добавляется пункт работы с USSD в меню GreaseMonkey для брендированных прошивок Huawei E5372 без USSD // @author dluciv // @copyright 2015+, Dmitry V. Luciv // @license WTFPLv2; http://wtfpl.net // @license MIT; http://opensource.org/licenses/MIT // @version 1.0.5 // @icon https://raw.githubusercontent.com/dluciv/UserScripts/master/Huawei-E5372-USSD/ussd.png // @homepage https://github.com/dluciv/UserScripts/tree/master/Huawei-E5372-USSD // // @grant GM_registerMenuCommand // // @include http://status.megafon.ru/* // @include http://192.168.8.1/* // @downloadURL https://update.greasyfork.icu/scripts/11386/Huawei%20E5372%20branded%20USSD.user.js // @updateURL https://update.greasyfork.icu/scripts/11386/Huawei%20E5372%20branded%20USSD.meta.js // ==/UserScript== (function() { unsafeWindow.huawei_send_USSD = exportFunction(function(ussd_code){ unsafeWindow.sendCommonByUssd(ussd_code, "CodeType"); }, unsafeWindow); var addpad = function() { try { document.getElementById('huawei_ussd_keypad').remove(); } catch (e) {} document.body.innerHTML += '