Được tạo bởi Blogger.
Hiển thị các bài đăng có nhãn Thủ thuật. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn Thủ thuật. Hiển thị tất cả bài đăng

Thứ Bảy, 23 tháng 8, 2014

Tự viết plugin tìm kiếm cho Firefox

Firefox

Bạn nào dùng Firefox hẳn sẽ biết tới khung tìm kiếm nhỏ nằm cạnh thanh địa chỉ. Lúc mới càiFirefox sẽ cung cấp cho chúng ta một số plugin tìm kiếm từ Google (tìm kiếm mặc định),WikipediaEbay,...

Bài viết này sẽ hướng dẫn bạn tự viết thêm một plugin tìm kiếm cho Firefox mà bạn thích. Ví dụ trong bài viết chính là Juno_okyo's Blog luôn nhé ^^

Các bước thực hiện

Chuẩn bị một mẫu URL tìm kiếm (tìm thử trong trang web mà bạn muốn lấy làm plugin), ví dụ để tìm các bài viết về Facebook thì mình có cấu trúc URL như sau:
http://junookyo.blogspot.com/search?q=Facebook
Ta thấy từ khóa nằm sau tham số "q". Ta có cấu trúc URL sử dụng cho plugin như sau:
http://junookyo.blogspot.com/search?q={searchTerms}
Firefox sẽ tự động thay thế chuỗi {searchTerms} thành từ khóa do người dùng nhập vào từ khung tìm kiếm.

Plugin tìm kiếm của Firefox sẽ được viết trong 1 tệp XML, do vậy bạn có thể dùng Notepad hoặcNotepad++ hay bất kì trình soạn thảo nào bạn thích. Sau đó chép đoạn XML mẫu dưới đây:

Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/"xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
  2. <os:ShortName>Juno_okyo's Blog</os:ShortName>
  3. <os:Description>Tìm kiếm bài viết trên Juno_okyo's Blog</os:Description>
  4. <os:InputEncoding>UTF-8</os:InputEncoding>
  5. <os:Image width="16" height="16" type="image/x-icon">http://junookyo.blogspot.com/favicon.ico</os:Image>
  6. <os:Url type="text/html" method="GET"template="http://junookyo.blogspot.com/search?q={searchTerms}"resultDomain="junookyo.blogspot.com">
  7. </os:Url>
  8. </SearchPlugin>

Trong đó:

  • ShortName: tên plugin.
  • Description: mô tả.
  • Image: biểu tượng của plugin (nên lấy Favicon của trang mà bạn viết plugin).
  • Url: mục này bạn chỉ cần thay thuộc tính Template thành URL mẫu mà ta đã chuẩn bị phía trên.
Bạn lưu lại với tên tùy thích và chú ý định dạng XML (*.xml). Sao chép tệp này vào thư mục tại đường dẫn sau:
C:\Users\Notebok\AppData\Roaming\Mozilla\Firefox\Profiles\[XXXXXXXX]\searchplugins
Chú ý là phần màu đỏ là tên thư mục Profile, nó thay đổi với từng máy do đó bạn cần tự tìm theo đường dẫn để biết tên thư mục Profile của bạn.

Cuối cùng chỉ việc khởi động lại Firefox và xem kết quả (như hình ở đầu bài viết) ^^.
Bạn muốn tìm bài viết trong trang web đó chỉ việc nhập từ khóa vào khung tìm kiếm và Enter chứ không cần truy cập trực tiếp nữa.

Tài liệu tham khảo: https://developer.mozilla.org/en-US/Add-ons/Creating_OpenSearch_plugins_for_Firefox

Nguồn: http://junookyo.blogspot.com/2014/07/tu-viet-plugin-tim-kiem-cho-firefox.html
Publisher: Unknown - 23:54

Thứ Hai, 27 tháng 8, 2012

Xài ké internet

Thanks for choosing this epic thread.

If you want to continue you should need this:
1.a Brain
2.internet
3.A login page to your internet
4.no modem

If You have that you are luckey..You Can Get free internet.

Start it Hear:

Step 1.
Go dOWNLOAD tHIS:

Code:
http://www.colasoft.com/mac_scanner/index.php?act=mac_scanner
[Image: 16867715b.png]

Step 2.

Download This:
Code:
http://www.colasoft.com/ping_tool/
[Image: 35484636.png]

Step 3:
[Image: 70505404.png]
Code:
http://www.technitium.com/tmac/index.html

Step 4:
Open Mac scanner and Click on Scan
You will get some victims.
[Image: 49167300.png]

Step:5

Open TMAC And Chage mac to the victims Mac:
[Image: 37694329.png]
ps.options should be SaME.

Step 6:
[Image: 65465343544.png]

Go and Chage ip to The victims ip ....

To keep connection alive when you are idle keep pinging it with ping tool

thanks for reading.
Publisher: Unknown - 14:43

Tải 4shared không cần login

Giả sử có 1 link 4shared
thì mình xem link đổi chỗ /office/ thành /get/ là được
Done
Publisher: Unknown - 14:31

Thứ Hai, 20 tháng 8, 2012

Khóa thư mục = notepad


Hello guys, on this tutorial I will be showing you how to lock folders with a simple batch script.


Open Notepad from your Start -> All Programs -> Accessories -> Notepad


Step 1: Open notepad and copy and paste in this code


Step 2: Once the code in notepad save it as "FloderLock.bat"
[Image: folderlockb.png]

Step 3: You should now have a .bat file called "Folderlock" double click on it and within a second a new folder called "Locker" Should have been created. Now drop all the files you want like to lock away in "Locker"
[Image: folderlock2.png]

Step 4: When you've gotten all the files you want into lock away in "Locker" now to lock it, double click on "FolderLock.bat" and type "Y" when the command prompt comes up. Your folder will now be locked and will disappear.
[Image: folderlock3.png]

Step 5: To unlock the folder click on "FolderLock.bat' when the command prompt comes up type "Y". The folder "Locker" and all it's documents should be back in the same directory as "FolderLock"

Hope this tutorial will help out somenew and old members.
Publisher: Unknown - 13:30