fix: add value to input in google search
This commit is contained in:
parent
1a9909609e
commit
2efe1091f8
@ -29,9 +29,13 @@ export default async function google(
|
|||||||
return convertToFormat(result, false);
|
return convertToFormat(result, false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const search = window.document.getElementById(
|
||||||
|
"APjFqb"
|
||||||
|
) as HTMLTextAreaElement;
|
||||||
|
|
||||||
const searchForm = `
|
const searchForm = `
|
||||||
<form onsubmit="window.location.href = '/get?url=https://www.google.com/search?q='+ document.getElementById('q').value.split(' ').join('+'); return false">
|
<form onsubmit="window.location.href = '/get?url=https://www.google.com/search?q='+ document.getElementById('q').value.split(' ').join('+'); return false">
|
||||||
<input type="text" name="q" id="q">
|
<input type="text" name="q" id="q" value="${search?.value}">
|
||||||
<input type="button" value="Search" onclick="window.location.href = '/get?url=https://www.google.com/search?q='+ document.getElementById('q').value.split(' ').join('+');">
|
<input type="button" value="Search" onclick="window.location.href = '/get?url=https://www.google.com/search?q='+ document.getElementById('q').value.split(' ').join('+');">
|
||||||
</form>
|
</form>
|
||||||
`;
|
`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user