⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.112
Server IP:
65.21.180.239
Server:
Linux gowhm.eplangoweb.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.0.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
elinks-data
/
examples
/
smjs
/
View File Name :
smartprefixes_bookmarks.js
/* Modern, bookmark-based smartprefixes */ var loaded_smartprefixes_common_code; if (!loaded_smartprefixes_common_code) { do_file(elinks.home + "smartprefixes_common.js"); loaded_smartprefixes_common_code = 1; } /* Create a top-level folder titled "smartprefixes". In it, add a bookmark * for each smartprefix, putting the keyword in the title and either a normal * URI or some JavaScript code prefixed with "javascript:" as the URI. When you * enter the keyword in the Go to URL box, ELinks will take the URI * of the corresponding bookmark, replace any occurrence of "%s" with the rest * of the text entered in the Go to URL box, evaluate the code if the URI * starts with "javascript:", and go to the resulting URI. */ function rewrite_uri(uri) { if (!elinks.bookmarks.smartprefixes) return uri; var parts = uri.split(" "); var prefix = parts[0]; if (!elinks.bookmarks.smartprefixes.children[prefix]) return uri; var rule = elinks.bookmarks.smartprefixes.children[prefix].url; var rest = parts.slice(1).join(" "); if (rule.match(/^javascript:/)) return eval(rule .replace(/^javascript:/, "") .replace(/%s/, rest)); return rule.replace(/%s/, escape(rest)); } elinks.goto_url_hooks.push(rewrite_uri);