Modify url - Chrome

Discussion, questions and support.
Post Reply
gpapig
Posts: 2
Joined: Jan 14th, ’19, 14:59

Post by gpapig » Jan 14th, ’19, 15:04

Hi Everybody,

Is it a way to find the current URL, to erase all parameters (like aaa=asdsad?bbb=test) and to replace them by my argument? If possible under chrome

Example

from

https://aaa.bbbb.net/aaa/order?Type=test&key=XXXX

to

https://aaa.bbbb.net/aaa/order?form


May be my question is stupid/eady, but i've tried by reaching the url bar with shortcut (alt + d) and the copy and edit the current url, but even just the first part, reaching URL, did'nt work.

Thank you for your answer and have a nice day

Gpapig
User avatar
Marko
Posts: 1718
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Jan 14th, ’19, 18:48

This example selects the url, copies it to clipboard, removes the characters right from "?", adds "form" and sends it back.

Code: Select all

Send, !d
Send, ^c
Sleep 200
Text:=Clipboard
SendInput, % SubStr(Text, 1, InStr(Text, "?")) "form"
gpapig
Posts: 2
Joined: Jan 14th, ’19, 14:59

Post by gpapig » Jan 21st, ’19, 12:42

Hi Marko !

Thank you it works perfectly!
Post Reply