// ==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.1 // @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 none // ==/UserScript== (function() { unsafeWindow.huawei_send_USSD = function(ussd_code){ unsafeWindow.sendCommonByUssd(ussd_code, "CodeType"); }; var addpad = function() { try { document.getElementById('huawei_ussd_keypad').remove(); } catch (e) {} document.body.innerHTML += '
'+ 'Send or type
'+ '
'+ '
'+ '
'+ '
'+ '
'+ '
'; }; GM_registerMenuCommand("USSD: show pad", addpad, "u"); }).call(this);