Skip to content

Instantly share code, notes, and snippets.

@po5
Last active May 6, 2019 02:54
Show Gist options
  • Save po5/1d5ca39ea14aa9de904f80c5fcf5684d to your computer and use it in GitHub Desktop.
Save po5/1d5ca39ea14aa9de904f80c5fcf5684d to your computer and use it in GitHub Desktop.

Revisions

  1. po5 revised this gist May 6, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions collage-direct-links.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Collage direct links
    // @namespace https://github.com/ewasion
    // @version 0.1.9
    // @version 0.1.10
    // @description Lets you directly access torrent groups in collages
    // @author Eva
    // @homepage https://animebytes.tv/forums.php?action=viewthread&threadid=24213
    @@ -21,7 +21,7 @@

    document.querySelectorAll('#collage_table a[href^="#group_"]').forEach(link => {
    link.children[0].setAttribute('hash', link.hash);
    link.href = document.querySelector(link.hash + ' a[title]').href
    link.href = document.querySelector(link.hash + ' a[title="View Torrent"]').href
    link.addEventListener('click', event => {
    if(event.which == 1 && !event.ctrlKey) {
    window.location.hash = event.target.getAttribute('hash');
  2. po5 revised this gist Jan 25, 2019. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions collage-direct-links.user.js
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,11 @@
    // ==UserScript==
    // @name Collage direct links
    // @namespace https://github.com/ewasion
    // @version 0.1.8
    // @version 0.1.9
    // @description Lets you directly access torrent groups in collages
    // @author Eva
    // @homepage https://animebytes.tv/forums.php?action=viewthread&threadid=24213
    // @icon https://animebytes.tv/favicon.ico
    // @icon https://ptpimg.me/868r51.png
    // @updateURL https://gist.github.com/po5/1d5ca39ea14aa9de904f80c5fcf5684d/raw/collage-direct-links.user.js
    // @downloadURL https://gist.github.com/po5/1d5ca39ea14aa9de904f80c5fcf5684d/raw/collage-direct-links.user.js
    // @grant none
    @@ -14,6 +14,7 @@
    // @match https://animebytes.tv/company.php?*
    // @match https://animebytes.tv/studio.php?*
    // @match https://animebytes.tv/bookmarks.php*
    // @match https://awesome-hd.me/bookmarks.php*
    // @license GPL-3.0
    // @run-at document-end
    // ==/UserScript==
  3. po5 revised this gist Oct 25, 2018. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions collage-direct-links.user.js
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,13 @@
    // ==UserScript==
    // @name Collage direct links
    // @namespace https://github.com/ewasion
    // @version 0.1.7
    // @version 0.1.8
    // @description Lets you directly access torrent groups in collages
    // @author Eva
    // @homepage https://animebytes.tv/forums.php?action=viewthread&threadid=24213
    // @icon https://animebytes.tv/favicon.ico
    // @updateURL https://gist.github.com/ewasion/1d5ca39ea14aa9de904f80c5fcf5684d/raw/collage-direct-links.user.js
    // @downloadURL https://gist.github.com/ewasion/1d5ca39ea14aa9de904f80c5fcf5684d/raw/collage-direct-links.user.js
    // @updateURL https://gist.github.com/po5/1d5ca39ea14aa9de904f80c5fcf5684d/raw/collage-direct-links.user.js
    // @downloadURL https://gist.github.com/po5/1d5ca39ea14aa9de904f80c5fcf5684d/raw/collage-direct-links.user.js
    // @grant none
    // @match https://animebytes.tv/collage.php?*
    // @match https://animebytes.tv/artist.php?*
  4. po5 revised this gist Oct 19, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion collage-direct-links.user.js
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    // ==UserScript==
    // @name Collage direct links
    // @namespace https://github.com/po5
    // @namespace https://github.com/ewasion
    // @version 0.1.7
    // @description Lets you directly access torrent groups in collages
    // @author Eva
  5. po5 revised this gist Oct 19, 2018. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions collage-direct-links.user.js
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,10 @@
    // @version 0.1.7
    // @description Lets you directly access torrent groups in collages
    // @author Eva
    // @homepage https://animebytes.tv/forums.php?action=viewthread&threadid=24213
    // @icon https://animebytes.tv/favicon.ico
    // @updateURL https://gist.github.com/ewasion/1d5ca39ea14aa9de904f80c5fcf5684d/raw/collage-direct-links.user.js
    // @downloadURL https://gist.github.com/ewasion/1d5ca39ea14aa9de904f80c5fcf5684d/raw/collage-direct-links.user.js
    // @grant none
    // @match https://animebytes.tv/collage.php?*
    // @match https://animebytes.tv/artist.php?*
  6. po5 created this gist Oct 19, 2018.
    27 changes: 27 additions & 0 deletions collage-direct-links.user.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    // ==UserScript==
    // @name Collage direct links
    // @namespace https://github.com/po5
    // @version 0.1.7
    // @description Lets you directly access torrent groups in collages
    // @author Eva
    // @icon https://animebytes.tv/favicon.ico
    // @grant none
    // @match https://animebytes.tv/collage.php?*
    // @match https://animebytes.tv/artist.php?*
    // @match https://animebytes.tv/company.php?*
    // @match https://animebytes.tv/studio.php?*
    // @match https://animebytes.tv/bookmarks.php*
    // @license GPL-3.0
    // @run-at document-end
    // ==/UserScript==

    document.querySelectorAll('#collage_table a[href^="#group_"]').forEach(link => {
    link.children[0].setAttribute('hash', link.hash);
    link.href = document.querySelector(link.hash + ' a[title]').href
    link.addEventListener('click', event => {
    if(event.which == 1 && !event.ctrlKey) {
    window.location.hash = event.target.getAttribute('hash');
    event.preventDefault();
    }
    });
    });