जवाबों:
मैं यह प्राप्त करने में कामयाब रहा कि मैं इसके साथ क्या चाहता हूं (वास्तव में बहुत बुरा) वर्कअराउंड: एक जावास्क्रिप्ट यूआरएल जो बनाता है और तुरंत फॉर्म सबमिट करता है। इसका मतलब है, जब आप अपने खोज इंजन को परिभाषित करते हैं, तो इस तरह एक url के लिए:
http://www.example.com/search?term=%s
आप इस url / कोड का उपयोग करेंगे:
javascript:document.write('<form name="f" action="http://www.example.com/search" method="POST"><input type="hidden" name="term" value="%s"></form><script>f.submit();</script>');
चूंकि यह सबसे अधिक संभावना है कि यह एक पाठ संपादक में तैयार करने और फिर इसे url फ़ील्ड में कॉपी-पेस्ट करने के लिए बहुत लंबा स्ट्रिंग होगा।
यह एक इतालवी-अंग्रेजी शब्दकोश के लिए खोज url है: javascript:document.write('<form name="f" action="http://dizionari.repubblica.it/cgi-bin/inglese/find" method="POST"><input type="hidden" name="lemma" value="%s"><input type="hidden" name="sez" value="ita"></form><script>f.submit();</script>');
पुनश्च दुर्भाग्य से, यह विधि खाली "न्यू टैब" पृष्ठ से खोज करते समय काम नहीं करती है। इसे "अल्टीमेट न्यू टैब" एक्सटेंशन इंस्टॉल करके तय किया जा सकता है।
सबसे पहले आपको इस PHP कोड के साथ पृष्ठ को होस्ट करने की आवश्यकता है:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<form name="f" action=""<?php echo htmlspecialchars($_GET['action']); ?>" method="POST">
<input type="hidden" name="<?php echo htmlspecialchars($_GET['inputname']); ?>" value=""<?php echo htmlspecialchars($_GET['inputvalue']); ?>">
</form>
<script>f.submit();</script>
</body>
</html>
फिर खोज url में डालें:
http://yourwebsite.com/filename.php?action=http://sitetosearch.com/search.php&inputname=query&inputvalue=%s
(अपने डेटा में यूआरएल, फ़ाइल नाम और इनपुट नाम बदलें)
उदाहरण के लिए ( होस्ट http://webercom.ru/ के माध्यम से http://fansubs.ru/search.php पर खोजें ):
http://webercom.ru/post.php?action=http://fansubs.ru/search.php&inputname=query&inputvalue=%
मैंने @ etuardu के घोल को इस एक में बदल दिया है, उपयोग नहीं करने पर document.write(), यदि आप इसे पसंद करते हैं:
javascript:f=document.createElement('form');f.method='post';f.action='http://www.example.com/search';i=document.createElement('input');i.name='term';i.value='%s';f.appendChild(i);document.body.appendChild(f);f.submit();