所以有一个我经常与之互动的网站。界面有点痛苦所以我试图通过将URL更改为我想要输入的内容来找到解决方法。我想我差不多了......虽然我不是最好的Javascript,但已经有一段时间了。
示例:www.examplewebsite.com/status/ [spot我要输入的内容] / blahblahblah /
到目前为止,我能够填补空白点,但我不确定如何保留它之后发生的事情,因为如果它已经消失,它会让网站变得怪异。
这是我到目前为止所得到的:
javascript:void(location.href='URL goes here'+window.prompt("enter search",""));
我试过了
javascript:void(location.href='URL goes here'+window.prompt("enter search","")+href='URL continues here');
但那没用。
尝试
javascript:void(location.href='URL goes here'+window.prompt("enter search","")+'URL continues here');
右键单击Chrome地址栏,然后选择“编辑搜索引擎...”。
在“其他搜索引擎”区域中,单击“添加”。
为您的“搜索引擎”提供一个名称和一个易于键入的关键字,例如pain
。
您的新搜索引擎的网址是www.examplewebsite.com/status/%s/blahblahblah/
。
“加”它。
现在您可以直接在地址栏中键入pain mysearchterm
,然后您将被带到www.examplewebsite.com/status/mysearchterm/blahblahblah/
。