Autor Beitrag
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 08.02.09 20:34 
Hallo!

Ich suche eine Extension für FF3, welche mir auf Mausklick ein Wort in der URL-Zeile durch ein anderes ersetzt und die neue URL dann lädt. Ich hab da leider nix finden können :nixweiss:

Wer kennt so eine Extension?

Grüße
Christian

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 08.02.09 21:19 
Sollte mit Greasemonkey möglich sein, wenn Du dort ein kleines Userscript schreibst, was genau diese Operation mit dem Clipboard durchführt.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 08.02.09 21:23 
Wenn es um immer das selbe Wort geht: Leg dir einfach in der Lesezeichenleiste (z.B. via Neues Lesezeichen im Kontextmenü) ein neues Lesezeichen mit dieser Adresse an:
ausblenden Quelltext
1:
javascript:var%20oldWord="posting";var%20newWord="test";var%20url=location.href;if(url.indexOf(oldWord)>=0){url=url.substring(0,url.indexOf(oldWord))+newWord+url.substring(url.indexOf(oldWord)+oldWord.length,url.length);window.location.replace(url);}					
Bei oldWord und newWord musst du natürlich noch das richtige Wort statt "posting" und "test" zum Ersetzen eintragen, aber sonst wars das schon. ;-)
Christian S. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 08.02.09 21:35 
@jaenicke: Perfekt, vielen Dank! :flehan:

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Mo 09.02.09 07:20 
Unnötig kompliziert...

ausblenden Quelltext
1:
javascript:var%20oldWord="posting";var%20newWord="test";window.location.replace(window.location.href.replace(oldWord,newWord));					


Reicht auch ;)

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."