Страницы: 1
помогите пожалуйста создать кнопочку,которая бы выполнила следующий функционал
объясню для чего = имеем "правильную"/прямую ссылку на файл в "бросайкоробке"
не нужно каждый раз ручками править =
было
https://www.dropbox.com/s/rj3pj9g0m7pgfhl/md.mp4?dl=0
стало
https://dl.dropboxusercontent.com/s/rj3pj9g0m7pgfhl/md.mp4
Отредактировано sotvictor (10-08-2015 10:56:55)
Никто не знает столько,сколько не знаю Я.
Отсутствует
stringObj. replace(rgExp, replaceText)
Если знаете - что это, то могли бы и сами сварганить. (и лучше с таким писать в эту тему: Custom Buttons)
custombutton://%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0D%0A%3Ccustombutton%20xmlns%3Acb%3D%22http%3A//xsms.nm.ru/custombuttons/%22%3E%0A%20%20%3Cname%3E%u0420%u0430%u0441%u043A%u0443%u043A%u043E%u0436%u0438%u0432%u0430%u0442%u0435%u043B%u044C%20%22%u0411%u0440%u043E%u0441%u0430%u0439%u043A%u043E%u0440%u043E%u0431%u043A%u0438%22%3C/name%3E%0A%20%20%3Cimage%3E%3C%21%5BCDATA%5Bdata%3Aimage/x-icon%3Bbase64%2CAAABAAIAEBAAAAEAIAAoBQAAJgAAACAgAAABACAAKBQAAE4FAAAoAAAAEAAAACAAAAABACAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA5nsAH+t5ALPsegCr7XYAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/gAAE6XkAcup5APTqegD/6noA/+t6APHreQBw/1UAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADrewA063kAyup6AP/qegD/6noA/+p6AP/qegD/6noA/+t6AMvseAA1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA63oAwed3ACvqegBv63kA/Op6AP/qegD/63kA/Ol5AHTreAAz63oAywAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%3D%5D%5D%3E%3C/image%3E%0A%20%20%3Cmode%3E0%3C/mode%3E%0A%20%20%3Cinitcode%3E%3C%21%5BCDATA%5B//%20this.onclick%20%3D%20function%28e%29%20%7B%0A//%20%20%20if%20%28e.button%20%3D%3D%200%29%20%7B%20%0A//%20%20%20%20%20var%20clipboard%20%3D%20gClipboard.read%28%29.toString%28%29%3B%0A//%20%20%20%20%20var%20dblink%20%3D%20clipboard.match%28/https%3F%3A%5C/%5C/%28www%5C.%29%3Fdropbox%5C.com%5C/%28.*%29%5C%3Fdl%3D%28%5B0-9%5D%29/%29%3B%0A//%20%20%20%20%20if%20%28dblink%29%20%7B%0A//%20%20%20%20%20%20%20var%20dllink%20%3D%20clipboard.replace%28/%28www%5C.%29%3Fdropbox%5C.com%5C/%28.*%29%5C%3Fdl%3D%28%5B0-9%5D%29/%2C%20%27dl.dropboxusercontent.com/%242%27%29%3B%0A//%20%20%20%20%20%20%20gClipboard.write%28dllink%29%3B%0A//%20%20%20%20%20%7D%0A//%20%20%20%7D%0A//%20%7D%3B%5D%5D%3E%3C/initcode%3E%0A%20%20%3Ccode%3E%3C%21%5BCDATA%5Bconst%20alertsService%20%3D%20Cc%5B%22@mozilla.org/alerts-service%3B1%22%5D.getService%28Ci.nsIAlertsService%29%3B%0Afunction%20getSelect%28%29%20%7B%0A%20%20//%20%u0432%u044B%u0434%u0435%u043B%u0435%u043D%u043D%u044B%u0439%20%u0442%u0435%u043A%u0441%u0442%20%u0438%u0437%20%u0441%u0442%u0440%u0430%u043D%u0438%u0446%u044B%20....%0A%20%20window.content.focus%28%29%3B%0A%20%20var%20selection%20%3D%20document.commandDispatcher.focusedWindow.getSelection%28%29.toString%28%29%3B%0A%0A%20%20//%20%u0432%u044B%u0434%u0435%u043B%u0435%u043D%u043D%u044B%u0439%20%u0442%u0435%u043A%u0441%u0442%20%u0438%u0437%20%u0442%u0435%u043A%u0441%u0442%u043E%u0432%u043E%u0433%u043E%20%u043F%u043E%u043B%u044F%20....%0A%20%20if%20%28%20selection%20%3D%3D%20%27%27%20%29%20%7B%0A%20%20%20%20var%20theBox%20%3D%20document.commandDispatcher.focusedElement%3B%0A%20%20%20%20if%20%28%20theBox%20%26%26%20%28theBox.type%20%3D%3D%20%22text%22%20%7C%7C%20theBox.type%20%3D%3D%20%22textarea%22%29%20%29%20%7B%20%0A%20%20%20%20%20%20var%20startPos%20%3D%20theBox.selectionStart%3B%0A%20%20%20%20%20%20var%20endPos%20%3D%20theBox.selectionEnd%3B%0A%20%20%20%20%20%20var%20selection%20%3D%20theBox.value.substring%28startPos%2C%20endPos%29%3B%20%20%0A%20%20%20%20%7D%0A%20%20%7D%3B%0A%0A%20%20//%20%u0442%u0435%u043A%u0441%u0442%20%u0438%u0437%20%u0431%u0443%u0444%u0435%u0440%u0430%20%u043E%u0431%u043C%u0435%u043D%u0430%20....%0A%20%20if%20%28%20selection%20%3D%3D%20%27%27%20%29%20var%20selection%20%3D%20gClipboard.read%28%29%3B%0A%0A%20%20//%20%u0443%u0431%u0438%u0440%u0430%u0435%u043C%20%u043F%u0440%u043E%u0431%u0435%u043B%u044B%20%u0441%20%u043E%u0431%u043E%u0438%u0445%20%u043A%u043E%u043D%u0446%u043E%u0432%20%u0442%u0435%u043A%u0441%u0442%u0430%20....%0A%20%20if%20%28%20selection%20%21%3D%3D%20%27%27%20%29%20var%20selection%20%3D%20selection.toString%28%29.replace%28/%5E%5Cs+%7C%5Cs+%24/g%2C%22%22%29%3B%0A%0A%20%20if%20%28%20selection%20%3D%3D%20%27%27%29%20%7B%20%0A%20%20%20%20var%20str%20%3D%20%22%u0412%u044B%u0434%u0435%u043B%u0438%u0442%u0435%20%u0438%u043B%u0438%20%u0441%u043A%u043E%u043F%u0438%u0440%u0443%u0439%u0442%u0435%20%u0441%u0441%u044B%u043B%u043A%u0443%21%22%0A%20%20%20%20alertsService.showAlertNotification%28self.image%2C%20self.label%2C%20str%2C%20false%2C%20%22%22%2C%20null%2C%20%22%22%29%3B%0A%20%20%7D%3B%0A%0A%20%20return%20%28%20selection%20%3D%3D%20%27%27%29%3F%20false%3A%20selection%3B%0A%7D%3B%0A%0Avar%20link%20%3D%20getSelect%28%29%3B%0Avar%20dblink%20%3D%20link.match%28/https%3F%3A%5C/%5C/%28www%5C.%29%3Fdropbox%5C.com%5C/%28.*%29%5C%3Fdl%3D%28%5B0-9%5D%29/%29%3B%0A%0Aif%20%28dblink%29%20%7B%0A%20%20var%20dllink%20%3D%20link.replace%28/%28www%5C.%29%3Fdropbox%5C.com%5C/%28.*%29%5C%3Fdl%3D%28%5B0-9%5D%29/%2C%20%27dl.dropboxusercontent.com/%242%27%29%3B%0A%20%20gClipboard.write%28dllink%29%3B%0A%20%20alertsService.showAlertNotification%28self.image%2C%20self.label%2C%20%27%u0420%u0430%u0441%u043A%u0443%u043A%u043E%u0436%u0435%u043D%u043D%u0430%u044F%20%u0441%u0441%u044B%u043B%u043A%u0430%20%u0441%u043A%u043E%u043F%u0438%u0440%u043E%u0432%u0430%u043D%u0430%20%u0432%20%u0431%u0443%u0444%u0435%u0440%21%27%2C%20false%2C%20%22%22%2C%20null%2C%20%22%22%29%3B%0A%7D%20else%20%7B%0A%20%20alertsService.showAlertNotification%28self.image%2C%20self.label%2C%20%27%u041D%u0435%u043F%u0440%u0430%u0432%u0438%u043B%u044C%u043D%u0430%u044F%20%u0432%u044B%u0434%u0435%u043B%u0435%u043D%u043D%u0430%u044F/%u0441%u043A%u043E%u043F%u0438%u0440%u043E%u0432%u0430%u043D%u043D%u0430%u044F%20%u0441%u0441%u044B%u043B%u043A%u0430%21%27%2C%20false%2C%20%22%22%2C%20null%2C%20%22%22%29%3B%0A%7D%3B%5D%5D%3E%3C/code%3E%0A%20%20%3Caccelkey%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C/accelkey%3E%0A%20%20%3Chelp%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C/help%3E%0A%20%20%3Cattributes/%3E%0A%3C/custombutton%3E
(код частично потырен у bunda1, за что ему спасибо)
Отредактировано turbot (10-08-2015 16:24:48)
Отсутствует
sotvictor пишетstringObj. replace(rgExp, replaceText)
Если знаете - что это, то могли бы и сами сварганить. http://smiles.kolobok.us/standart/nea.gif (и лучше с таким писать в эту тему: Custom Buttons)
Выделить кодКод:
custombutton://%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0D%0A%3Ccustombutton%20xmlns%3Acb%3D%22http%3A//xsms.nm.ru/custombuttons/%22%3E%0A%20%20%3Cname%3E%u0420%u0430%u0441%u043A%u0443%u043A%u043E%u0436%u0438%u0432%u0430%u0442%u0435%u043B%u044C%20%22%u0411%u0440%u043E%u0441%u0430%u0439%u043A%u043E%u0440%u043E%u0431%u043A%u0438%22%3C/name%3E%0A%20%20%3Cimage%3E%3C%21%5BCDATA%5Bdata%3Aimage/x-icon%3Bbase64%2CAAABAAIAEBAAAAEAIAAoBQAAJgAAACAgAAABACAAKBQAAE4FAAAoAAAAEAAAACAAAAABACAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA5nsAH+t5ALPsegCr7XYAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/gAAE6XkAcup5APTqegD/6noA/+t6APHreQBw/1UAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADrewA063kAyup6AP/qegD/6noA/+p6AP/qegD/6noA/+t6AMvseAA1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA63oAwed3ACvqegBv63kA/Op6AP/qegD/63kA/Ol5AHTreAAz63oAywAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOp4AEjreQDb6XgAaOt6AEvreQDy63oA7+p6AEnpeABo63oA2up5AEoAAAAAAAAAAAAAAAAAAAAA44AAEux6AJ/reQD+6noA/+p6AP/segCS63oAMud3ACvsegCS6noA/+p6AP/qegD/7HoAn+OAABIAAAAA6XgAU+t5AOfqegD/6noA/+p6AP/qegD/6noA/+t5AKLqegCh6noA/+p6AP/qegD/6noA/+p6AP/reQDn6nkAVOp6AGLqeQD26noA/+p6AP/qegD/63oA++x6AJLweAAR8HgAEex6AJLregD76noA/+p6AP/qegD/6nkA9up6AGIAAAAA6XcAL+t5ANvqegD/63oAwOl3AC8AAAAAAAAAAAAAAAAAAAAA6XoALut6AMDqegD/6noA3Op6ADAAAAAAAAAAAAAAAADmewAf7HoAnf8AAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/AAAB63sAnOd4ACAAAAAAAAAAAAAAAADodwAt63oA2up6AP/reQC763wAJwAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%3D%5D%5D%3E%3C/image%3E%0A%20%20%3Cmode%3E0%3C/mode%3E%0A%20%20%3Cinitcode%3E%3C%21%5BCDATA%5B//%20this.onclick%20%3D%20function%28e%29%20%7B%0A//%20%20%20if%20%28e.button%20%3D%3D%200%29%20%7B%20%0A//%20%20%20%20%20var%20clipboard%20%3D%20gClipboard.read%28%29.toString%28%29%3B%0A//%20%20%20%20%20var%20dblink%20%3D%20clipboard.match%28/https%3F%3A%5C/%5C/%28www%5C.%29%3Fdropbox%5C.com%5C/%28.*%29%5C%3Fdl%3D%28%5B0-9%5D%29/%29%3B%0A//%20%20%20%20%20if%20%28dblink%29%20%7B%0A//%20%20%20%20%20%20%20var%20dllink%20%3D%20clipboard.replace%28/%28www%5C.%29%3Fdropbox%5C.com%5C/%28.*%29%5C%3Fdl%3D%28%5B0-9%5D%29/%2C%20%27dl.dropboxusercontent.com/%242%27%29%3B%0A//%20%20%20%20%20%20%20gClipboard.write%28dllink%29%3B%0A//%20%20%20%20%20%7D%0A//%20%20%20%7D%0A//%20%7D%3B%5D%5D%3E%3C/initcode%3E%0A%20%20%3Ccode%3E%3C%21%5BCDATA%5Bconst%20alertsService%20%3D%20Cc%5B%22@mozilla.org/alerts-service%3B1%22%5D.getService%28Ci.nsIAlertsService%29%3B%0Afunction%20getSelect%28%29%20%7B%0A%20%20//%20%u0432%u044B%u0434%u0435%u043B%u0435%u043D%u043D%u044B%u0439%20%u0442%u0435%u043A%u0441%u0442%20%u0438%u0437%20%u0441%u0442%u0440%u0430%u043D%u0438%u0446%u044B%20....%0A%20%20window.content.focus%28%29%3B%0A%20%20var%20selection%20%3D%20document.commandDispatcher.focusedWindow.getSelection%28%29.toString%28%29%3B%0A%0A%20%20//%20%u0432%u044B%u0434%u0435%u043B%u0435%u043D%u043D%u044B%u0439%20%u0442%u0435%u043A%u0441%u0442%20%u0438%u0437%20%u0442%u0435%u043A%u0441%u0442%u043E%u0432%u043E%u0433%u043E%20%u043F%u043E%u043B%u044F%20....%0A%20%20if%20%28%20selection%20%3D%3D%20%27%27%20%29%20%7B%0A%20%20%20%20var%20theBox%20%3D%20document.commandDispatcher.focusedElement%3B%0A%20%20%20%20if%20%28%20theBox%20%26%26%20%28theBox.type%20%3D%3D%20%22text%22%20%7C%7C%20theBox.type%20%3D%3D%20%22textarea%22%29%20%29%20%7B%20%0A%20%20%20%20%20%20var%20startPos%20%3D%20theBox.selectionStart%3B%0A%20%20%20%20%20%20var%20endPos%20%3D%20theBox.selectionEnd%3B%0A%20%20%20%20%20%20var%20selection%20%3D%20theBox.value.substring%28startPos%2C%20endPos%29%3B%20%20%0A%20%20%20%20%7D%0A%20%20%7D%3B%0A%0A%20%20//%20%u0442%u0435%u043A%u0441%u0442%20%u0438%u0437%20%u0431%u0443%u0444%u0435%u0440%u0430%20%u043E%u0431%u043C%u0435%u043D%u0430%20....%0A%20%20if%20%28%20selection%20%3D%3D%20%27%27%20%29%20var%20selection%20%3D%20gClipboard.read%28%29%3B%0A%0A%20%20//%20%u0443%u0431%u0438%u0440%u0430%u0435%u043C%20%u043F%u0440%u043E%u0431%u0435%u043B%u044B%20%u0441%20%u043E%u0431%u043E%u0438%u0445%20%u043A%u043E%u043D%u0446%u043E%u0432%20%u0442%u0435%u043A%u0441%u0442%u0430%20....%0A%20%20if%20%28%20selection%20%21%3D%3D%20%27%27%20%29%20var%20selection%20%3D%20selection.toString%28%29.replace%28/%5E%5Cs+%7C%5Cs+%24/g%2C%22%22%29%3B%0A%0A%20%20if%20%28%20selection%20%3D%3D%20%27%27%29%20%7B%20%0A%20%20%20%20var%20str%20%3D%20%22%u0412%u044B%u0434%u0435%u043B%u0438%u0442%u0435%20%u0438%u043B%u0438%20%u0441%u043A%u043E%u043F%u0438%u0440%u0443%u0439%u0442%u0435%20%u0441%u0441%u044B%u043B%u043A%u0443%21%22%0A%20%20%20%20alertsService.showAlertNotification%28self.image%2C%20self.label%2C%20str%2C%20false%2C%20%22%22%2C%20null%2C%20%22%22%29%3B%0A%20%20%7D%3B%0A%0A%20%20return%20%28%20selection%20%3D%3D%20%27%27%29%3F%20false%3A%20selection%3B%0A%7D%3B%0A%0Avar%20link%20%3D%20getSelect%28%29%3B%0Avar%20dblink%20%3D%20link.match%28/https%3F%3A%5C/%5C/%28www%5C.%29%3Fdropbox%5C.com%5C/%28.*%29%5C%3Fdl%3D%28%5B0-9%5D%29/%29%3B%0A%0Aif%20%28dblink%29%20%7B%0A%20%20var%20dllink%20%3D%20link.replace%28/%28www%5C.%29%3Fdropbox%5C.com%5C/%28.*%29%5C%3Fdl%3D%28%5B0-9%5D%29/%2C%20%27dl.dropboxusercontent.com/%242%27%29%3B%0A%20%20gClipboard.write%28dllink%29%3B%0A%20%20alertsService.showAlertNotification%28self.image%2C%20self.label%2C%20%27%u0420%u0430%u0441%u043A%u0443%u043A%u043E%u0436%u0435%u043D%u043D%u0430%u044F%20%u0441%u0441%u044B%u043B%u043A%u0430%20%u0441%u043A%u043E%u043F%u0438%u0440%u043E%u0432%u0430%u043D%u0430%20%u0432%20%u0431%u0443%u0444%u0435%u0440%21%27%2C%20false%2C%20%22%22%2C%20null%2C%20%22%22%29%3B%0A%7D%20else%20%7B%0A%20%20alertsService.showAlertNotification%28self.image%2C%20self.label%2C%20%27%u041D%u0435%u043F%u0440%u0430%u0432%u0438%u043B%u044C%u043D%u0430%u044F%20%u0432%u044B%u0434%u0435%u043B%u0435%u043D%u043D%u0430%u044F/%u0441%u043A%u043E%u043F%u0438%u0440%u043E%u0432%u0430%u043D%u043D%u0430%u044F%20%u0441%u0441%u044B%u043B%u043A%u0430%21%27%2C%20false%2C%20%22%22%2C%20null%2C%20%22%22%29%3B%0A%7D%3B%5D%5D%3E%3C/code%3E%0A%20%20%3Caccelkey%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C/accelkey%3E%0A%20%20%3Chelp%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C/help%3E%0A%20%20%3Cattributes/%3E%0A%3C/custombutton%3E(код частично потырен у bunda1, за что ему спасибо)
о Благодарю
то что доктор прописал , Раскукоживатель "Бросайкоробки"
знаний не хватает=понимаю что ерунда,но спросить элементарного не у кого
с regExp просто иногда сталкиваюсь||использую (в notepad++)
даже сейчас не соображу как перевести из ссылки в код,чтобы посмотреть как всё это дело написано
base64 попробовал (получил кучу кракозябликов
что не правильно делаю ???
ЗЫ
СООБРАЗИЛ/ДОШЛО
(ещё раз открыл кнопку
код "уже на месте" вот тормоз
Отредактировано sotvictor (10-08-2015 17:04:24)
Никто не знает столько,сколько не знаю Я.
Отсутствует
sotvictor
Если хотите еще и пункт в контекстном меню ссылок/выделенных текстовых ссылок/выделенного текста в текстовых полях (в последних, onPlainTextLink, не работает, так что - только так), то добавьте в кнопку, в секцию "инициализация":
(function() { if (document.getElementById('context-copydllink')) return; var menuitem = document.createElement("menuitem"); menuitem.id = "context-copydllink"; menuitem.setAttribute("label", "Копировать прямую ссылку"); menuitem.setAttribute("class", "menuitem-iconic"); menuitem.setAttribute("image", self.image); menuitem.setAttribute("oncommand", "document.getElementById('" + self.id + "').click();"); document.getElementById('contentAreaContextMenu').insertBefore(menuitem, document.getElementById("context-copylink").nextSibling); document.getElementById("contentAreaContextMenu").addEventListener("popupshowing", function() { menuitem.hidden = !(gContextMenu.onLink || gContextMenu.onPlainTextLink || gContextMenu.onTextInput && gContextMenu.isTextSelected); }, false); })();
Добавлено 10-08-2015 17:41:31
А, и для того чтобы на ссылках работало - замените в секции "код":
на
var selection = document.commandDispatcher.focusedWindow.getSelection().toString() || gContextMenu.getLinkURL();
Отредактировано turbot (10-08-2015 17:43:14)
Отсутствует
sotvictor
Добавлено 10-08-2015 17:41:31
А, и для того чтобы на ссылках работало - замените в секции "код":на
Выделить кодКод:
var selection = document.commandDispatcher.focusedWindow.getSelection().toString() || gContextMenu.getLinkURL();
если работает на ссылках,то "не видит выделенное"
я разбираться не стал,т.к. "ссылками" не пользовался никогда ,да и не слишком понимаю
в коде "||" это ИЛИ?
оставил
а то что в контекстное меню прописался пункт "копировать"=это удобней чем жать кнопку
Никто не знает столько,сколько не знаю Я.
Отсутствует
если работает на ссылках,то "не видит выделенное"
А должно. Браузер перезапускали?
custombutton://%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0D%0A%3Ccustombutton%20xmlns%3Acb%3D%22http%3A//xsms.nm.ru/custombuttons/%22%3E%0A%20%20%3Cname%3E%u0420%u0430%u0441%u043A%u0443%u043A%u043E%u0436%u0438%u0432%u0430%u0442%u0435%u043B%u044C%20%22%u0411%u0440%u043E%u0441%u0430%u0439%u043A%u043E%u0440%u043E%u0431%u043A%u0438%22%3C/name%3E%0A%20%20%3Cimage%3E%3C%21%5BCDATA%5Bdata%3Aimage/x-icon%3Bbase64%2CAAABAAIAEBAAAAEAIAAoBQAAJgAAACAgAAABACAAKBQAAE4FAAAoAAAAEAAAACAAAAABACAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA5nsAH+t5ALPsegCr7XYAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/gAAE6XkAcup5APTqegD/6noA/+t6APHreQBw/1UAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADrewA063kAyup6AP/qegD/6noA/+p6AP/qegD/6noA/+t6AMvseAA1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA63oAwed3ACvqegBv63kA/Op6AP/qegD/63kA/Ol5AHTreAAz63oAywAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOp4AEjreQDb6XgAaOt6AEvreQ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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%3D%5D%5D%3E%3C/image%3E%0A%20%20%3Cmode%3E0%3C/mode%3E%0A%20%20%3Cinitcode%3E%3C%21%5BCDATA%5B%28function%28%29%20%7B%0A%20%20if%20%28document.getElementById%28%27content-copydllink%27%29%29%20return%3B%0A%0A%20%20var%20menuitem%20%3D%20document.createElement%28%22menuitem%22%29%3B%20%0A%0A%20%20menuitem.id%20%3D%20%22content-copydllink%22%3B%0A%20%20menuitem.setAttribute%28%22label%22%2C%20%22%u041A%u043E%u043F%u0438%u0440%u043E%u0432%u0430%u0442%u044C%20%u043F%u0440%u044F%u043C%u0443%u044E%20%u0441%u0441%u044B%u043B%u043A%u0443%22%29%3B%0A%20%20menuitem.setAttribute%28%22class%22%2C%20%22menuitem-iconic%22%29%3B%0A%20%20menuitem.setAttribute%28%22image%22%2C%20self.image%29%3B%0A%20%20menuitem.setAttribute%28%22oncommand%22%2C%20%22document.getElementById%28%27%22%20+%20self.id%20+%20%22%27%29.click%28%29%3B%22%29%3B%0A%20%20%0A%20%20document.getElementById%28%27contentAreaContextMenu%27%29.insertBefore%28menuitem%2C%20document.getElementById%28%22context-copylink%22%29.nextSibling%29%3B%0A%20%20%0A%20%20document.getElementById%28%22contentAreaContextMenu%22%29.addEventListener%28%22popupshowing%22%2C%20function%28%29%20%7B%0A%20%20%20%20menuitem.hidden%20%3D%20%21%28gContextMenu.onLink%20%7C%7C%20gContextMenu.onPlainTextLink%20%7C%7C%20gContextMenu.onTextInput%20%26%26%20gContextMenu.isTextSelected%29%3B%20%0A%20%20%7D%2C%20false%29%3B%0A%20%20%0A%7D%29%28%29%3B%5D%5D%3E%3C/initcode%3E%0A%20%20%3Ccode%3E%3C%21%5BCDATA%5Bconst%20alertsService%20%3D%20Cc%5B%22@mozilla.org/alerts-service%3B1%22%5D.getService%28Ci.nsIAlertsService%29%3B%0Afunction%20getSelect%28%29%20%7B%0A%20%20//%20%u0432%u044B%u0434%u0435%u043B%u0435%u043D%u043D%u044B%u0439%20%u0442%u0435%u043A%u0441%u0442%20%u0438%u0437%20%u0441%u0442%u0440%u0430%u043D%u0438%u0446%u044B%20....%0A%20%20window.content.focus%28%29%3B%0A%20%20var%20selection%20%3D%20document.commandDispatcher.focusedWindow.getSelection%28%29.toString%28%29%3B%0A%0A%20%20//%20%u0432%u044B%u0434%u0435%u043B%u0435%u043D%u043D%u044B%u0439%20%u0442%u0435%u043A%u0441%u0442%20%u0438%u0437%20%u0442%u0435%u043A%u0441%u0442%u043E%u0432%u043E%u0433%u043E%20%u043F%u043E%u043B%u044F%20....%0A%20%20if%20%28%20selection%20%3D%3D%20%27%27%20%29%20%7B%0A%20%20%20%20var%20theBox%20%3D%20document.commandDispatcher.focusedElement%3B%0A%20%20%20%20if%20%28%20theBox%20%26%26%20%28theBox.type%20%3D%3D%20%22text%22%20%7C%7C%20theBox.type%20%3D%3D%20%22textarea%22%29%20%29%20%7B%20%0A%20%20%20%20%20%20var%20startPos%20%3D%20theBox.selectionStart%3B%0A%20%20%20%20%20%20var%20endPos%20%3D%20theBox.selectionEnd%3B%0A%20%20%20%20%20%20var%20selection%20%3D%20theBox.value.substring%28startPos%2C%20endPos%29%3B%20%20%0A%20%20%20%20%7D%0A%20%20%7D%3B%0A%0A%20%20%0A%20%20//%20%u0442%u0435%u043A%u0441%u0442%20%u0438%u0437%20%u0431%u0443%u0444%u0435%u0440%u0430%20%u043E%u0431%u043C%u0435%u043D%u0430%20....%0A%20%20if%20%28%20selection%20%3D%3D%20%27%27%20%29%20var%20selection%20%3D%20gContextMenu.getLinkURL%28%29%20%7C%7C%20gClipboard.read%28%29%3B%0A%0A%20%20//%20%u0443%u0431%u0438%u0440%u0430%u0435%u043C%20%u043F%u0440%u043E%u0431%u0435%u043B%u044B%20%u0441%20%u043E%u0431%u043E%u0438%u0445%20%u043A%u043E%u043D%u0446%u043E%u0432%20%u0442%u0435%u043A%u0441%u0442%u0430%20....%0A%20%20if%20%28%20selection%20%21%3D%3D%20%27%27%20%29%20var%20selection%20%3D%20selection.toString%28%29.replace%28/%5E%5Cs+%7C%5Cs+%24/g%2C%22%22%29%3B%0A%0A%20%20if%20%28%20selection%20%3D%3D%20%27%27%29%20%7B%20%0A%20%20%20%20var%20str%20%3D%20%22%u0412%u044B%u0434%u0435%u043B%u0438%u0442%u0435%20%u0438%u043B%u0438%20%u0441%u043A%u043E%u043F%u0438%u0440%u0443%u0439%u0442%u0435%20%u0441%u0441%u044B%u043B%u043A%u0443%21%22%0A%20%20%20%20alertsService.showAlertNotification%28self.image%2C%20self.label%2C%20str%2C%20false%2C%20%22%22%2C%20null%2C%20%22%22%29%3B%0A%20%20%7D%3B%0A%0A%20%20return%20%28%20selection%20%3D%3D%20%27%27%29%3F%20false%3A%20selection%3B%0A%7D%3B%0A%0Avar%20link%20%3D%20getSelect%28%29%3B%0Avar%20dblink%20%3D%20link.match%28/https%3F%3A%5C/%5C/%28www%5C.%29%3Fdropbox%5C.com%5C/%28.*%29%5C%3Fdl%3D%28%5B0-9%5D%29/%29%3B%0A%0Aif%20%28dblink%29%20%7B%0A%20%20var%20dllink%20%3D%20link.replace%28/%28www%5C.%29%3Fdropbox%5C.com%5C/%28.*%29%5C%3Fdl%3D%28%5B0-9%5D%29/%2C%20%27dl.dropboxusercontent.com/%242%27%29%3B%0A%20%20gClipboard.write%28dllink%29%3B%0A%20%20alertsService.showAlertNotification%28self.image%2C%20self.label%2C%20%27%u0420%u0430%u0441%u043A%u0443%u043A%u043E%u0436%u0435%u043D%u043D%u0430%u044F%20%u0441%u0441%u044B%u043B%u043A%u0430%20%u0441%u043A%u043E%u043F%u0438%u0440%u043E%u0432%u0430%u043D%u0430%20%u0432%20%u0431%u0443%u0444%u0435%u0440%21%27%2C%20false%2C%20%22%22%2C%20null%2C%20%22%22%29%3B%0A%7D%20else%20%7B%0A%20%20alertsService.showAlertNotification%28self.image%2C%20self.label%2C%20%27%u041D%u0435%u043F%u0440%u0430%u0432%u0438%u043B%u044C%u043D%u0430%u044F%20%u0441%u0441%u044B%u043B%u043A%u0430%21%27%2C%20false%2C%20%22%22%2C%20null%2C%20%22%22%29%3B%0A%7D%3B%5D%5D%3E%3C/code%3E%0A%20%20%3Caccelkey%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C/accelkey%3E%0A%20%20%3Chelp%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C/help%3E%0A%20%20%3Cattributes/%3E%0A%3C/custombutton%3E
Либо, если на ссылках и не нужно, то удалите и "gContextMenu.onLink || " в
menuitem.hidden = !(gContextMenu.onLink || gContextMenu.onPlainTextLink || gContextMenu.onTextInput && gContextMenu.isTextSelected);
чтобы место не занимала в меню ссылок.
Добавлено 10-08-2015 22:38:33
Поправил. Теперь должно работать как надо.
Отредактировано turbot (10-08-2015 22:38:33)
Отсутствует
sotvictor пишетесли работает на ссылках,то "не видит выделенное"
А должно. Браузер перезапускали?
вот, на всяк, целиком(старую только удалите и перезапустите, тож, на всяк)Выделить кодКод:
custombutton://%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0D%0A%3Ccustombutton%20xmlns%3Acb%3D%22http%3A//xsms.nm.ru/custombuttons/%22%3E%0A%20%20%3Cname%3E%u0420%u0430%u0441%u043A%u0443%u043A%u043E%u0436%u0438%u0432%u0430%u0442%u0435%u043B%u044C%20%22%u0411%u0440%u043E%u0441%u0430%u0439%u043A%u043E%u0440%u043E%u0431%u043A%u0438%22%3C/name%3E%0A%20%20%3Cimage%3E%3C%21%5BCDATA%5Bdata%3Aimage/x-icon%3Bbase64%2CAAABAAIAEBAAAAEAIAAoBQAAJgAAACAgAAABACAAKBQAAE4FAAAoAAAAEAAAACAAAAABACAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA5nsAH+t5ALPsegCr7XYAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/gAAE6XkAcup5APTqegD/6noA/+t6APHreQBw/1UAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADrewA063kAyup6AP/qegD/6noA/+p6AP/qegD/6noA/+t6AMvseAA1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA63oAwed3ACvqegBv63kA/Op6AP/qegD/63kA/Ol5AHTreAAz63oAywAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOp4AEjreQDb6XgAaOt6AEvreQDy63oA7+p6AEnpeABo63oA2up5AEoAAAAAAAAAAAAAAAAAAAAA44AAEux6AJ/reQD+6noA/+p6AP/segCS63oAMud3ACvsegCS6noA/+p6AP/qegD/7HoAn+OAABIAAAAA6XgAU+t5AOfqegD/6noA/+p6AP/qegD/6noA/+t5AKLqegC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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%3D%5D%5D%3E%3C/image%3E%0A%20%20%3Cmode%3E0%3C/mode%3E%0A%20%20%3Cinitcode%3E%3C%21%5BCDATA%5B%28function%28%29%20%7B%0A%20%20if%20%28document.getElementById%28%27content-copydllink%27%29%29%20return%3B%0A%0A%20%20var%20menuitem%20%3D%20document.createElement%28%22menuitem%22%29%3B%20%0A%0A%20%20menuitem.id%20%3D%20%22content-copydllink%22%3B%0A%20%20menuitem.setAttribute%28%22label%22%2C%20%22%u041A%u043E%u043F%u0438%u0440%u043E%u0432%u0430%u0442%u044C%20%u043F%u0440%u044F%u043C%u0443%u044E%20%u0441%u0441%u044B%u043B%u043A%u0443%22%29%3B%0A%20%20menuitem.setAttribute%28%22class%22%2C%20%22menuitem-iconic%22%29%3B%0A%20%20menuitem.setAttribute%28%22image%22%2C%20self.image%29%3B%0A%20%20menuitem.setAttribute%28%22oncommand%22%2C%20%22document.getElementById%28%27%22%20+%20self.id%20+%20%22%27%29.click%28%29%3B%22%29%3B%0A%20%20%0A%20%20document.getElementById%28%27contentAreaContextMenu%27%29.insertBefore%28menuitem%2C%20document.getElementById%28%22context-copylink%22%29.nextSibling%29%3B%0A%20%20%0A%20%20document.getElementById%28%22contentAreaContextMenu%22%29.addEventListener%28%22popupshowing%22%2C%20function%28%29%20%7B%0A%20%20%20%20menuitem.hidden%20%3D%20%21%28gContextMenu.onLink%20%7C%7C%20gContextMenu.onPlainTextLink%20%7C%7C%20gContextMenu.onTextInput%20%26%26%20gContextMenu.isTextSelected%29%3B%20%0A%20%20%7D%2C%20false%29%3B%0A%20%20%0A%7D%29%28%29%3B%5D%5D%3E%3C/initcode%3E%0A%20%20%3Ccode%3E%3C%21%5BCDATA%5Bconst%20alertsService%20%3D%20Cc%5B%22@mozilla.org/alerts-service%3B1%22%5D.getService%28Ci.nsIAlertsService%29%3B%0Afunction%20getSelect%28%29%20%7B%0A%20%20//%20%u0432%u044B%u0434%u0435%u043B%u0435%u043D%u043D%u044B%u0439%20%u0442%u0435%u043A%u0441%u0442%20%u0438%u0437%20%u0441%u0442%u0440%u0430%u043D%u0438%u0446%u044B%20....%0A%20%20window.content.focus%28%29%3B%0A%20%20var%20selection%20%3D%20document.commandDispatcher.focusedWindow.getSelection%28%29.toString%28%29%3B%0A%0A%20%20//%20%u0432%u044B%u0434%u0435%u043B%u0435%u043D%u043D%u044B%u0439%20%u0442%u0435%u043A%u0441%u0442%20%u0438%u0437%20%u0442%u0435%u043A%u0441%u0442%u043E%u0432%u043E%u0433%u043E%20%u043F%u043E%u043B%u044F%20....%0A%20%20if%20%28%20selection%20%3D%3D%20%27%27%20%29%20%7B%0A%20%20%20%20var%20theBox%20%3D%20document.commandDispatcher.focusedElement%3B%0A%20%20%20%20if%20%28%20theBox%20%26%26%20%28theBox.type%20%3D%3D%20%22text%22%20%7C%7C%20theBox.type%20%3D%3D%20%22textarea%22%29%20%29%20%7B%20%0A%20%20%20%20%20%20var%20startPos%20%3D%20theBox.selectionStart%3B%0A%20%20%20%20%20%20var%20endPos%20%3D%20theBox.selectionEnd%3B%0A%20%20%20%20%20%20var%20selection%20%3D%20theBox.value.substring%28startPos%2C%20endPos%29%3B%20%20%0A%20%20%20%20%7D%0A%20%20%7D%3B%0A%0A%20%20%0A%20%20//%20%u0442%u0435%u043A%u0441%u0442%20%u0438%u0437%20%u0431%u0443%u0444%u0435%u0440%u0430%20%u043E%u0431%u043C%u0435%u043D%u0430%20....%0A%20%20if%20%28%20selection%20%3D%3D%20%27%27%20%29%20var%20selection%20%3D%20gContextMenu.getLinkURL%28%29%20%7C%7C%20gClipboard.read%28%29%3B%0A%0A%20%20//%20%u0443%u0431%u0438%u0440%u0430%u0435%u043C%20%u043F%u0440%u043E%u0431%u0435%u043B%u044B%20%u0441%20%u043E%u0431%u043E%u0438%u0445%20%u043A%u043E%u043D%u0446%u043E%u0432%20%u0442%u0435%u043A%u0441%u0442%u0430%20....%0A%20%20if%20%28%20selection%20%21%3D%3D%20%27%27%20%29%20var%20selection%20%3D%20selection.toString%28%29.replace%28/%5E%5Cs+%7C%5Cs+%24/g%2C%22%22%29%3B%0A%0A%20%20if%20%28%20selection%20%3D%3D%20%27%27%29%20%7B%20%0A%20%20%20%20var%20str%20%3D%20%22%u0412%u044B%u0434%u0435%u043B%u0438%u0442%u0435%20%u0438%u043B%u0438%20%u0441%u043A%u043E%u043F%u0438%u0440%u0443%u0439%u0442%u0435%20%u0441%u0441%u044B%u043B%u043A%u0443%21%22%0A%20%20%20%20alertsService.showAlertNotification%28self.image%2C%20self.label%2C%20str%2C%20false%2C%20%22%22%2C%20null%2C%20%22%22%29%3B%0A%20%20%7D%3B%0A%0A%20%20return%20%28%20selection%20%3D%3D%20%27%27%29%3F%20false%3A%20selection%3B%0A%7D%3B%0A%0Avar%20link%20%3D%20getSelect%28%29%3B%0Avar%20dblink%20%3D%20link.match%28/https%3F%3A%5C/%5C/%28www%5C.%29%3Fdropbox%5C.com%5C/%28.*%29%5C%3Fdl%3D%28%5B0-9%5D%29/%29%3B%0A%0Aif%20%28dblink%29%20%7B%0A%20%20var%20dllink%20%3D%20link.replace%28/%28www%5C.%29%3Fdropbox%5C.com%5C/%28.*%29%5C%3Fdl%3D%28%5B0-9%5D%29/%2C%20%27dl.dropboxusercontent.com/%242%27%29%3B%0A%20%20gClipboard.write%28dllink%29%3B%0A%20%20alertsService.showAlertNotification%28self.image%2C%20self.label%2C%20%27%u0420%u0430%u0441%u043A%u0443%u043A%u043E%u0436%u0435%u043D%u043D%u0430%u044F%20%u0441%u0441%u044B%u043B%u043A%u0430%20%u0441%u043A%u043E%u043F%u0438%u0440%u043E%u0432%u0430%u043D%u0430%20%u0432%20%u0431%u0443%u0444%u0435%u0440%21%27%2C%20false%2C%20%22%22%2C%20null%2C%20%22%22%29%3B%0A%7D%20else%20%7B%0A%20%20alertsService.showAlertNotification%28self.image%2C%20self.label%2C%20%27%u041D%u0435%u043F%u0440%u0430%u0432%u0438%u043B%u044C%u043D%u0430%u044F%20%u0441%u0441%u044B%u043B%u043A%u0430%21%27%2C%20false%2C%20%22%22%2C%20null%2C%20%22%22%29%3B%0A%7D%3B%5D%5D%3E%3C/code%3E%0A%20%20%3Caccelkey%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C/accelkey%3E%0A%20%20%3Chelp%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C/help%3E%0A%20%20%3Cattributes/%3E%0A%3C/custombutton%3EЛибо, если на ссылках и не нужно, то удалите и "gContextMenu.onLink || " в
Выделить кодКод:
menuitem.hidden = !(gContextMenu.onLink || gContextMenu.onPlainTextLink || gContextMenu.onTextInput && gContextMenu.isTextSelected);чтобы место не занимала в меню ссылок.
Добавлено 10-08-2015 22:29:26
sotvictorА или вы о том что из буфера тогда не видит? Это - да, надо подумать. Я тоже не большой знаток.Добавлено 10-08-2015 22:38:33
Поправил. Теперь должно работать как надо.
это работает как надо (я ничего не удалял/добавлял)
забыл старое скопировать,хотел посмотреть в чём была проблема
"лишние" посты можно поудалять - меньше мусора,проще найти
я кстати в поиск по CB забивал dropbox ,но этой кнопки не видел
(название не правильноераскукоживатель )
Отредактировано sotvictor (11-08-2015 16:43:20)
Никто не знает столько,сколько не знаю Я.
Отсутствует
sotvictor
Поменяйте в коде, чтобы и на ссылках без ?dl= в конце работало. (спасибо okkamas_knife за вразумление)
var link = getSelect(); var dblink = link.match(/https?:\/\/(www\.)?dropbox\.com\/(.*)\?dl=([0-9])/); if (dblink) { var dllink = link.replace(/(www\.)?dropbox\.com\/(.*)\?dl=([0-9])/, 'dl.dropboxusercontent.com/$2'); gClipboard.write(dllink); alertsService.showAlertNotification(self.image, self.label, 'Раскукоженная ссылка скопирована в буфер!', false, "", null, ""); } else { alertsService.showAlertNotification(self.image, self.label, 'Неправильная ссылка!', false, "", null, ""); };
на
var link = getSelect(); if (link.indexOf('dropbox.com/s/')!=-1){ var dllink = link.split('?dl=')[0].replace('www.dropbox.com','dl.dropboxusercontent.com'); gClipboard.write(dllink); alertsService.showAlertNotification(self.image, self.label, 'Раскукоженная ссылка скопирована в буфер!', false, "", null, ""); } else { alertsService.showAlertNotification(self.image, self.label, 'Неправильная ссылка!', false, "", null, ""); };
Отсутствует
sotvictor
И все-таки там проблема при правке из буфера. Переписал:
custombutton://%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0D%0A%3Ccustombutton%20xmlns%3Acb%3D%22http%3A//xsms.nm.ru/custombuttons/%22%3E%0A%20%20%3Cname%3E%u0420%u0430%u0441%u043A%u0443%u043A%u043E%u0436%u0438%u0432%u0430%u0442%u0435%u043B%u044C%20%22%u0411%u0440%u043E%u0441%u0430%u0439%u043A%u043E%u0440%u043E%u0431%u043A%u0438%22%3C/name%3E%0A%20%20%3Cimage%3E%3C%21%5BCDATA%5Bdata%3Aimage/x-icon%3Bbase64%2CAAABAAIAEBAAAAEAIAAoBQAAJgAAACAgAAABACAAKBQAAE4FAAAoAAAAEAAAACAAAAABACAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA5nsAH+t5ALPsegCr7XYAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/gAAE6XkAcup5APTqegD/6noA/+t6APHreQBw/1UAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADrewA063kAyup6AP/qegD/6noA/+p6AP/qegD/6noA/+t6AMvseAA1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA63oAwed3ACvqegBv63kA/Op6AP/qegD/63kA/Ol5AHTreAAz63oAywAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOp4AEjreQDb6XgAaOt6AEvreQDy63oA7+p6AEnpeABo63oA2up5AEoAAAAAAAAAAAAAAAAAAAAA44AAEux6AJ/reQD+6noA/+p6AP/segCS63oAMud3ACvsegCS6noA/+p6AP/qegD/7HoAn+OAABIAAAAA6XgAU+t5AOfqegD/6noA/+p6AP/qegD/6noA/+t5AKLqegCh6noA/+p6AP/qegD/6noA/+p6AP/reQDn6nkAVOp6AGLqeQD26noA/+p6AP/qegD/63oA++x6AJLweAAR8HgAEex6AJLregD76noA/+p6AP/qegD/6nkA9up6AGIAAAAA6XcAL+t5ANvqegD/63oAwOl3AC8AAAAAAAAAAAAAAAAAAAAA6XoALut6AMDqegD/6noA3Op6ADAAAAAAAAAAAAAAAADmewAf7HoAnf8AAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/AAAB63sAnOd4ACAAAAAAAAAAAAAAAADodwAt63oA2up6AP/reQC763wAJwAAAAAAAAAAAAAAAAAAAADrfAAn63kAu+p6AP/reQDb6XoALgAAAADpegBc6nkA9Op6AP/qegD/6noA/+p5APjsewCD43EACeNxAAnsewCD6nkA+Op6AP/qegD/6noA/+p6APXpegBe6XgAW+p6AOrqegD/6noA/+p6AP/qegD/6noA/+t5AKbreQCm6noA/+p6AP/qegD/6noA/+p6AP/qegDq6XgAWwAAAADneQAV63oApep6AP/qegD/6noA/+p6AKHfgAAI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%0A%20%20%3Cmode%3E0%3C/mode%3E%0A%20%20%3Cinitcode%3E%3C%21%5BCDATA%5Bthis.onclick%20%3D%20function%28e%29%20%7B%0A%20%20if%20%28e.button%20%3D%3D%200%29%20%7B%0A%20%20%20%20this.replaceLink2%28%29%3B%0A%20%20%7D%0A%7D%3B%0Aconst%20alertsService%20%3D%20Cc%5B%22@mozilla.org/alerts-service%3B1%22%5D.getService%28Ci.nsIAlertsService%29%3B%0A%0Afunction%20getSelect%28%29%20%7B%0A%20%20//%20%u0432%u044B%u0434%u0435%u043B%u0435%u043D%u043D%u044B%u0439%20%u0442%u0435%u043A%u0441%u0442%20%u0438%u0437%20%u0441%u0442%u0440%u0430%u043D%u0438%u0446%u044B%20....%0A%20%20window.content.focus%28%29%3B%0A%20%20var%20selection%20%3D%20document.commandDispatcher.focusedWindow.getSelection%28%29.toString%28%29%3B%0A%0A%20%20//%20%u0432%u044B%u0434%u0435%u043B%u0435%u043D%u043D%u044B%u0439%20%u0442%u0435%u043A%u0441%u0442%20%u0438%u0437%20%u0442%u0435%u043A%u0441%u0442%u043E%u0432%u043E%u0433%u043E%20%u043F%u043E%u043B%u044F%20....%0A%20%20if%20%28%20selection%20%3D%3D%20%27%27%20%29%20%7B%0A%20%20%20%20var%20theBox%20%3D%20document.commandDispatcher.focusedElement%3B%0A%20%20%20%20if%20%28%20theBox%20%26%26%20%28theBox.type%20%3D%3D%20%22text%22%20%7C%7C%20theBox.type%20%3D%3D%20%22textarea%22%29%20%29%20%7B%20%0A%20%20%20%20%20%20var%20startPos%20%3D%20theBox.selectionStart%3B%0A%20%20%20%20%20%20var%20endPos%20%3D%20theBox.selectionEnd%3B%0A%20%20%20%20%20%20var%20selection%20%3D%20theBox.value.substring%28startPos%2C%20endPos%29%3B%20%20%0A%20%20%20%20%7D%0A%20%20%7D%3B%0A%0A%20%20//%20%u0442%u0435%u043A%u0441%u0442%20%u0438%u0437%20%u0431%u0443%u0444%u0435%u0440%u0430%20%u043E%u0431%u043C%u0435%u043D%u0430%20....%0A%20%20if%20%28%20selection%20%3D%3D%20%27%27%20%29%20var%20selection%20%3D%20gClipboard.read%28%29%3B%0A%0A%20%20//%20%u0443%u0431%u0438%u0440%u0430%u0435%u043C%20%u043F%u0440%u043E%u0431%u0435%u043B%u044B%20%u0441%20%u043E%u0431%u043E%u0438%u0445%20%u043A%u043E%u043D%u0446%u043E%u0432%20%u0442%u0435%u043A%u0441%u0442%u0430%20....%0A%20%20if%20%28%20selection%20%21%3D%3D%20%27%27%20%29%20var%20selection%20%3D%20selection.toString%28%29.replace%28/%5E%5Cs+%7C%5Cs+%24/g%2C%22%22%29%3B%0A%0A%20%20return%20%28%20selection%20%3D%3D%20%27%27%29%3F%20false%3A%20selection%3B%0A%7D%3B%0Athis.replaceLink1%20%3D%20function%28%29%20%7B%0A%20%20var%20link%20%3D%20gContextMenu.getLinkURL%28%29%3B%0A%20%20if%20%28link.indexOf%28%27dropbox.com/s/%27%29%21%3D-1%29%7B%0A%20%20%20%20var%20dllink%20%3D%20link.split%28%27%3Fdl%3D%27%29%5B0%5D.replace%28%27www.dropbox.com%27%2C%27dl.dropboxusercontent.com%27%29%3B%0A%20%20%20%20gClipboard.write%28dllink%29%3B%0A%20%20%20%20alertsService.showAlertNotification%28self.image%2C%20self.label%2C%20%27%u0420%u0430%u0441%u043A%u0443%u043A%u043E%u0436%u0435%u043D%u043D%u0430%u044F%20%u0441%u0441%u044B%u043B%u043A%u0430%20%u0441%u043A%u043E%u043F%u0438%u0440%u043E%u0432%u0430%u043D%u0430%20%u0432%20%u0431%u0443%u0444%u0435%u0440%21%27%2C%20false%2C%20%22%22%2C%20null%2C%20%22%22%29%3B%0A%20%20%7D%20else%20%7B%0A%20%20%20%20alertsService.showAlertNotification%28self.image%2C%20self.label%2C%20%27%u041D%u0435%u043F%u0440%u0430%u0432%u0438%u043B%u044C%u043D%u0430%u044F%20%u0441%u0441%u044B%u043B%u043A%u0430%21%27%2C%20false%2C%20%22%22%2C%20null%2C%20%22%22%29%3B%0A%20%20%7D%0A%7D%3B%0Athis.replaceLink2%20%3D%20function%28%29%20%7B%0A%20%20var%20link%20%3D%20getSelect%28%29%3B%0A%20%20if%20%28link.indexOf%28%27dropbox.com/s/%27%29%21%3D-1%29%7B%0A%20%20%20%20var%20dllink%20%3D%20link.split%28%27%3Fdl%3D%27%29%5B0%5D.replace%28%27www.dropbox.com%27%2C%27dl.dropboxusercontent.com%27%29%3B%0A%20%20%20%20gClipboard.write%28dllink%29%3B%0A%20%20%20%20alertsService.showAlertNotification%28self.image%2C%20self.label%2C%20%27%u0420%u0430%u0441%u043A%u0443%u043A%u043E%u0436%u0435%u043D%u043D%u0430%u044F%20%u0441%u0441%u044B%u043B%u043A%u0430%20%u0441%u043A%u043E%u043F%u0438%u0440%u043E%u0432%u0430%u043D%u0430%20%u0432%20%u0431%u0443%u0444%u0435%u0440%21%27%2C%20false%2C%20%22%22%2C%20null%2C%20%22%22%29%3B%0A%20%20%7D%20else%20%7B%0A%20%20%20%20alertsService.showAlertNotification%28self.image%2C%20self.label%2C%20%27%u041D%u0435%u043F%u0440%u0430%u0432%u0438%u043B%u044C%u043D%u0430%u044F%20%u0441%u0441%u044B%u043B%u043A%u0430%21%27%2C%20false%2C%20%22%22%2C%20null%2C%20%22%22%29%3B%0A%20%20%7D%0A%7D%3B%0Aif%20%28document.getElementById%28%22context-copydllink%22%29%29%20return%3B%0A%0Avar%20menuitem%20%3D%20document.createElement%28%22menuitem%22%29%3B%20%0Amenuitem.id%20%3D%20%22context-copydllink%22%3B%0Amenuitem.setAttribute%28%22label%22%2C%20%22%u041A%u043E%u043F%u0438%u0440%u043E%u0432%u0430%u0442%u044C%20%u043F%u0440%u044F%u043C%u0443%u044E%20%u0441%u0441%u044B%u043B%u043A%u0443%22%29%3B%0Amenuitem.setAttribute%28%22class%22%2C%20%22menuitem-iconic%22%29%3B%0Amenuitem.setAttribute%28%22image%22%2C%20self.image%29%3B%0A%0Adocument.getElementById%28%27contentAreaContextMenu%27%29.insertBefore%28menuitem%2C%20document.getElementById%28%22context-copylink%22%29.nextSibling%29%3B%0A%0Adocument.getElementById%28%22contentAreaContextMenu%22%29.addEventListener%28%22popupshowing%22%2C%20function%28%29%20%7B%0A%20%20menuitem.hidden%20%3D%20%21%28gContextMenu.onLink%20%7C%7C%20gContextMenu.onPlainTextLink%20%7C%7C%20gContextMenu.onTextInput%20%26%26%20gContextMenu.isTextSelected%29%3B%0A%20%20if%20%28gContextMenu.onLink%29%20%7B%0A%20%20%20%20menuitem.setAttribute%28%22oncommand%22%2C%20%22document.getElementById%28%27%22%20+%20self.id%20+%20%22%27%29.replaceLink1%28%29%22%29%3B%0A%20%20%7D%20else%20%7B%0A%20%20%20%20menuitem.setAttribute%28%22oncommand%22%2C%20%22document.getElementById%28%27%22%20+%20self.id%20+%20%22%27%29.replaceLink2%28%29%22%29%3B%0A%20%20%7D%0A%7D%2C%20false%29%3B%0A%5D%5D%3E%3C/initcode%3E%0A%20%20%3Ccode%3E%3C%21%5BCDATA%5B/*CODE*/%5D%5D%3E%3C/code%3E%0A%20%20%3Caccelkey%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C/accelkey%3E%0A%20%20%3Chelp%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C/help%3E%0A%20%20%3Cattributes/%3E%0A%3C/custombutton%3E
(Да, самому смотреть стыдно на то, что вышло. Никак не соображу, как по-человечески сделать. Но главное - работать будет точно. Со временем, надеюсь, по правильному перепишу, так что - заглядывайте иногда.)
Отредактировано turbot (18-08-2015 22:37:43)
Отсутствует
Страницы: 1