>Форум Mozilla Россия http://forum.mozilla-russia.org/index.php >Поддержка пользователей http://forum.mozilla-russia.org/viewforum.php?id=26 >Проблема с протоколом spoof http://forum.mozilla-russia.org/viewtopic.php?id=66756 |
Sekotka > 26-02-2015 02:51:16 |
Помогите пожалуйста! |
Sekotka > 26-02-2015 12:18:55 |
Боюсь, что это невозможно, прошло уже года 3-4 и связи с ними нет. Я тогда то просто готовый продукт скачивал, поддержка его давно закончилась со стороны разработчиков. Может быть знаете, где протоколы обрабатываются? +забыл сказать, сильно доработанная, это просто в нее интегрированы дополнения специальные по обработке JS, которые доступны только для нее. |
Sekotka > 26-02-2015 15:33:33 |
Приложение поддерживается для версии FF 3.0, с 4.0 вроде как перестало, я его в обход ставил, возможно поэтому. Вот файл, который отвечает за этот протокол spoof скрытый текст /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Mozilla. * * The Initial Developer of the Original Code is IBM Corporation. * Portions created by IBM Corporation are Copyright (C) 2004 * IBM Corporation. All Rights Reserved. * * Contributor(s): * Darin Fisher <darin@meer.net> * Doron Rosenberg <doronr@us.ibm.com> * * Alternatively, the contents of this file may be used under the terms of * either the GNU General Public License Version 2 or later (the "GPL"), or * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), * in which case the provisions of the GPL or the LGPL are applicable instead * of those above. If you wish to allow use of your version of this file only * under the terms of either the GPL or the LGPL, and not to allow others to * use your version of this file under the terms of the MPL, indicate your * decision by deleting the provisions above and replace them with the notice * and other provisions required by the GPL or the LGPL. If you do not delete * the provisions above, a recipient may use your version of this file under * the terms of any one of the MPL, the GPL or the LGPL. * * ***** END LICENSE BLOCK ***** */ // edited by ebricca 2004/04/16 // ty sent me a correction to get it working with ffx 20 .. that i incorporate here // spoof protocol related // Mozilla defined var refnsiURI = null; // logging function Protocol() Protocol.prototype = QueryInterface: function(iid) return this; scheme: kSCHEME, newURI: function(spec, charset, baseURI) newChannel: function(aURI) // before even beginning to spoof make sure it even has an effect var ios = Components.classes[kIOSERVICE_CONTRACTID].getService(nsIIOService); return silentChannel; } var ProtocolFactory = new Object(); ProtocolFactory.createInstance = function (outer, iid) if (!iid.equals(nsIProtocolHandler) && return new Protocol(); /** var nsSpoofProtocolModule = new Object(); nsSpoofProtocolModule.registerSelf = function (compMgr, fileSpec, location, type) nsSpoofProtocolModule.getClassObject = function (compMgr, cid, iid) if (!iid.equals(Components.interfaces.nsIFactory)) nsSpoofProtocolModule.canUnload = function (compMgr) function NSGetModule(compMgr, fileSpec) Может, начиная с 4-го FF что-то изменилось и необходимы минимальные правки? Очень нужно именно это дополнение. Готов компенсировать потраченное время! |
Sekotka > 26-02-2015 16:39:57 |
Спасибо Может быть Вы еще подскажете... Дополнение hxxp делает тоже самое, но имеет вид ссылки hxxp://site1.ru;ref://site2.ru , но также не работает. У меня задача проста, с помощью дополнений или как угодно иметь возможность вручную задавать рефферара к открываемому URL. Т.е. открывать новую вкладку с site1.ru, чтобы реферером стоял site2.ru. Все. Может быть эту проблему можно решить через CustomButtons или еще как? |
turbot > 26-02-2015 19:09:37 |
Название аддона на скрине видно. |
Sekotka > 27-02-2015 01:03:56 |
Спасибо, но немного не то. Мне нужно простого вида функция URL:сайт1 и REF:сайт2, где я на лету могу менять или брать из файла, а не вручную вписывать каждый раз при малейших изменениях. У меня работа с большим количеством рефереров, потому Ваш вариант усложнит работу в 10 раз, нежели это делало ранее дополнение refspoof или hxxp... |