Skip to content

Commit

Permalink
Add userscript for IMDB
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon committed Oct 29, 2023
1 parent bffdfb3 commit 6299b5e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
6 changes: 0 additions & 6 deletions apps/client/src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,5 @@ func main() {
}

torrentClient = MakeTorrentclient()

// run every 30 seconds
// for range time.Tick(5 * time.Second) {
torrentClient.Add("magnet:?xt=urn:btih:0A62A7B53706DC91589763FBA8CD431C4371FE53&dn=160+Excel+Exercises+With+Solutions+And+Comments+-+Excel+Workbook&tr=udp%3A%2F%2Fcoppersurfer.tk%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.open-internet.nl%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.internetwarriors.net%3A1337%2Fannounce&tr=udp%3A%2F%2F9.rarbg.me%3A2850%2Fannounce&tr=udp%3A%2F%2F9.rarbg.to%3A2720%2Fannounce&tr=udp%3A%2F%2F9.rarbg.me%3A2810%2Fannounce&tr=udp%3A%2F%2F9.rarbg.to%3A2890%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.trackerfix.com%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.fatkhoala.org%3A13790%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=http%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce&tr=udp%3A%2F%2Fopentracker.i2p.rocks%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.internetwarriors.net%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969%2Fannounce&tr=udp%3A%2F%2Fcoppersurfer.tk%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.zer0day.to%3A1337%2Fannounce")
// torrentClient.Add("magnet:?xt=urn:btih:ba6991a33859e509b0629f9eb89adc0b3d61e0df&tr=https://ipleak.net/announce.php%3Fh%3Dba6991a33859e509b0629f9eb89adc0b3d61e0df&dn=ipleak.net+torrent+detection")
//}
ServeApi()
}
1 change: 0 additions & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ services:
- media-server
ports:
- 8080:80
- "9955:9955/udp"
volumes:
- ./:/app
- "$OUTPUT_PATH:/data"
Expand Down
18 changes: 18 additions & 0 deletions scripts/userscript.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// ==UserScript==
// @name freeflix IMDB userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description freeflix
// @author You
// @match https://www.imdb.com/title/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @require http://code.jquery.com/jquery-3.4.1.min.js
// @grant none
// ==/UserScript==

(function($) {
'use strict';
const host = "example.com"
const name = $('h1 span').html()
$('h1').append($(`<a href="${host}/?query=${name}">+</a>`))
})($);

0 comments on commit 6299b5e

Please sign in to comment.