Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Commit

Permalink
Updated jquery+parseTorrent, should be working now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Niamor committed Dec 13, 2016
1 parent 4c6e464 commit 6dddfd1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 19 deletions.
7 changes: 4 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@

'use strict';

/* global $, parseTorrent, browser */

$(() => {
/* global $, parseTorrent, chrome */
const url = document.URL;

if (url.indexOf('page=search') !== -1 ||
Expand All @@ -33,7 +34,7 @@ $(() => {
title: 'Magnet',
href: '#'
}).append($('<img/>', {
src: chrome.extension.getURL('icons/magnet-16.png'),
src: browser.extension.getURL('icons/magnet-16.png'),
alt: 'Magnet'
})).click((event) => {
event.preventDefault();
Expand All @@ -55,7 +56,7 @@ $(() => {
title: 'Magnet',
href: '#'
}).append($('<img/>', {
src: chrome.extension.getURL('icons/magnet-26.png'),
src: browser.extension.getURL('icons/magnet-26.png'),
alt: 'Magnet'
}))).click((event) => {
event.preventDefault();
Expand Down
4 changes: 0 additions & 4 deletions lib/jquery-2.2.2.min.js

This file was deleted.

4 changes: 4 additions & 0 deletions lib/jquery-3.1.1.slim.min.js

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions lib/parse-torrent.min.js

Large diffs are not rendered by default.

11 changes: 2 additions & 9 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
{
"manifest_version": 2,
"name": "Nyaa Magnet Links",
"version": "0.2.0",
"version": "0.2.1",

"description": "Add magnet links on NyaaTorrents",
"homepage_url": "https://github.com/Niamor/nyaa-magnet-links",
"icons": {
"48": "icons/magnet-48.png"
},

"applications": {
"gecko": {
"id": "@nyaa-magnet-links",
"strict_min_version": "45.0"
}
},

"content_scripts": [{
"matches": ["*://*.nyaa.se/*"],
"js": ["lib/jquery-2.2.2.min.js", "lib/parse-torrent.min.js", "index.js"]
"js": ["lib/jquery-3.1.1.slim.min.js", "lib/parse-torrent.min.js", "index.js"]
}],

"web_accessible_resources": ["icons/magnet-16.png", "icons/magnet-26.png"]
Expand Down

0 comments on commit 6dddfd1

Please sign in to comment.