FireFox: วิธีทำ auto ดาวโหลด .torrent แบบ Magnet และ Torrage

Post Reply
tong
Site Admin
Posts: 2387
Joined: Fri 01 May 2009 8:55 pm

FireFox: วิธีทำ auto ดาวโหลด .torrent แบบ Magnet และ Torrage

Post by tong »

สร้าง bookmark ดังนี้

Code: Select all

Name: Magnet
Location: javascript:location.assign('magnet:?xt=urn:btih:'+document.getSelection());

Name: Torrage
Location: javascript:location.assign('http://torrage.com/torrent/'+document.getSelection()+'.torrent');
m.png t.png เวลาใช้ให้ hilight Hash number แล้วคลิกปุ่ม bookmark แต่ละแบบตามต้องการ
tong
Site Admin
Posts: 2387
Joined: Fri 01 May 2009 8:55 pm

Re: FireFox: วิธีทำ auto ดาวโหลด .torrent แบบ Magnet และ Torrage

Post by tong »

window.getSelection()

Summary

Returns a Selection object representing the range of text selected by the user or the current position of the caret.
document.getSelection() is identically to the window.getSelection() method.

Syntax

Code: Select all

selection = window.getSelection();
The return is a Selection object. When cast to string, either by appending an empty string ("") or using String.toString().

Example

Code: Select all

var selObj = window.getSelection(); 
var selText = window.getSelection() + ''; 
var selText = window.getSelection().toString();
tong
Site Admin
Posts: 2387
Joined: Fri 01 May 2009 8:55 pm

Re: FireFox: วิธีทำ auto ดาวโหลด .torrent แบบ Magnet และ Torrage

Post by tong »

Bookmark auto search JAV

Code: Select all

javascript:location='https://sukebei.nyaa.se/?page=search&cats=8_30&term='+window.getSelection().toString().replace(/([a-z]+)\W?(\d+)/i,"$1+$2");
tong
Site Admin
Posts: 2387
Joined: Fri 01 May 2009 8:55 pm

Re: FireFox: วิธีทำ auto ดาวโหลด .torrent แบบ Magnet และ Torrage

Post by tong »

Bookmark auto magnet link

Code: Select all

javascript:location='magnet:?xt=urn:btih:'+window.getSelection();
Post Reply