kuhi
小狐狸
小狐狸
  • UID38677
  • 注册日期2012-04-17
  • 最后登录2015-01-08
  • 发帖数33
  • 经验41枚
  • 威望0点
  • 贡献值12点
  • 好评度4点
  • 社区居民
阅读:1557回复:1

[推荐] 代替AppMenu - ToolsMenuBtn & TabContextMenuBtn - 可与AppMenuPlus使用

楼主#
更多 发布于:2014-05-10 14:49
GitHub下载链接:
 ToolsMenuBtn.uc.js
 TabContextMenuBtn.uc.js
 -----------------------------------------------------------------------------------------------------------------------
ToolsMenuBtn.uc.js
icon是Firefox,可与AppMenuPlus一起使用,请自行查看AppMenuPlus的用法……
下图所示是我所用的脚本,增加了少许按键功能,附件的没有这些功能……
效果图如下:

建议加入以下CSS:
#ToolsMenu-button:hover {
list-style-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAD4UlEQVQ4jZXUf0zUdRzH8c9CB8RoO5Vk45TdfbnPITt0WQRZwwMP+aGcKKB3NCfq8cvTU85U/BGxZiQcw0VEdYYLEUySYJ7o4WxmB/PEsaYUoIkc/qg/Iufaqq01n/2B2/lf9cfrz9fjn/feLyGEEPWOQipWSmzLF/6vVKyU1DvWI4QQwrVzPR/sXIWreBENxZLGzZKj/5LGzZKGYomreNFMd+d6RLlJodmWwMntCXRVGuh2Gug8lM7hE61UeMewXZnG5nvEtv5Raj9voXN/Kt1OA12VBtq3J/CRLYFyk4KwLV9Ip13PxapEbtQY+KyhgtXuK8imKyR3DJB+/ieyL/1CSt9DjKdHaL86TH9zMb7qJVysSqTTrse2fOEM1OvQM3TIwES5jncO7KWsxsmpY2bWufai7hxF0zPFC6fvsKDJT3nHAJOT/QyftOJ/O5FexzPQBYfEvzuBcavk/i49D9/VEWjSkFxVj7qxl9mtNwl332BO3SBL9vfyeHqA3+67GGtWuOCQQchrV7i+XXKvRMc9h+RhtSTwnpaxXWl8WGNnbp2PqOpLRL/VR3RJO+6z3TB9hIkv5uK1K89AZbGM2uIIbJJM2SUP9kl+PqpwuCQPues0aqeHqPIuIq2fEr6mgS/PtfLk1xbGeuPxlsUGob4tam5aFO6+KQmUSkYseqqzXiVxg5OIIjcR1k8Iy3URllFDWMoO/nrczpNHB+k7lkbfFnUQOrcxmutrFW4XSCY3Sa6t0NNRlMJ8ox316t1k2kqYa9pD5NIyYl+x8uf4Cv6e0jPesYBzG6ODkMcSxflsLSOrJHc2SH60SgJlkrvOeAJVkgtb9eTmrWVOvIXqfcv4YzCG3/0qvjsYg8cS9cz581V418TgT5WMmiUTVsnERslxk4ECfRKx2hxe1JpRtOn80Kbw6EwMt2o1XC5aQG++Kgj1mCP5tlCFN1nLkPEpZpFMFkt68g1sey0JV87L3D8gma6LY2qPDs86PUMb5tFjjgxCZ7LDGSyI4OuseVxcrMOfKhlZJbldIJkokkxu0nGvVMeDHToCNh3fFyj4zdEMFkRwJjs8CHWZQvGZQ/HlhuFeqqInXsGXIhleIRlZLRnLk9zKl9zM09H9ehwfJ6noz5npdJlCZ6Byk8IpYziXM0O4mhNCtzGEasNs3tdE0RYXiydR4exLWtqXqGlePJ/axOdpe+M5fFkhXM4M4VR6+MzTNlRacJdl4DXNYiBDcC1T4MsQeIyCE8sELUmC5iTB8RTBV6mCb0wCf6ZgIEPgNc3CXZpBQ6VlZpPqHYWUpmn+86BtfZoSo4YjOwoRQoh/ALYuvZpf2hxRAAAAAElFTkSuQmCC")!important;
}
#ToolsMenu-button dropmarker {display:none!important;
另外,附上简单代码 - 复制功能到menu_ToolsPopup
(function() {
/* 复制功能到menu_ToolsPopup */
    var n, Item, FavIDs;
    FavIDs = [
        '',
        ];
    var ToolsPopup = document.getElementById("menu_ToolsPopup"); /* tabContextMenu */
    for(n=0; n<FavIDs.length; n++) {
        var FavID = FavIDs[n];
            Item = document.getElementById(FavID);
            if (Item) {
                Item = Item.cloneNode(true);
                Item.removeAttribute('key');
            }
        if (Item!=null) ToolsPopup.appendChild(Item);
    }
})();
文科
千年狐狸
千年狐狸
  • UID39959
  • 注册日期2013-10-17
  • 最后登录2019-07-27
  • 发帖数2069
  • 经验1328枚
  • 威望4点
  • 贡献值340点
  • 好评度256点
  • 最爱沙发
  • 社区居民
  • 忠实会员
1楼#
发布于:2014-05-10 16:47
支持一个
游客

返回顶部