<commit_before>// ==UserScript==
// @name           Torrentz.eu Customized
// @description    Links to torrent sites open in the same window, and kickass.to is automatically chosen if available
// @namespace      http://patik.com/code/user-scripts/
// @match          https://torrentz.eu/*
// @match          http://torrentz.eu/*
// @version        1.0.1
// @lastupdated    2014-10-20
// ==/UserScript==

(function _torrentz_customized() {
    // Find all links to other torrent sites
    [].slice.call(document.querySelectorAll('a[rel="e"]')).forEach(function(a) {
        var linkTitle;

        // Make them open in the same window
        a.removeAttribute('target');

        // Auto navigate to kickass.to
        linkTitle = a.querySelector('.u');
        if (linkTitle && /\bkickass\.to\b/i.test(linkTitle.innerHTML)) {
            window.location.href = a.href;
        }
    });
}());
<commit_msg>Fixed Kickass.xx domain<commit_after>// ==UserScript==
// @name           Torrentz.eu Customized
// @description    Links to torrent sites open in the same window, and kickass.to is automatically chosen if available
// @namespace      http://patik.com/code/user-scripts/
// @match          https://torrentz.eu/*
// @match          http://torrentz.eu/*
// @version        1.0.2
// @lastupdated    2015-02-01
// ==/UserScript==

(function _torrentz_customized() {
    // Find all links to other torrent sites
    [].slice.call(document.querySelectorAll('a[rel="e"]')).forEach(function(a) {
        var linkTitle;

        // Make them open in the same window
        a.removeAttribute('target');

        // Auto navigate to kickass.to
        linkTitle = a.querySelector('.u');
        if (linkTitle && /\bkickass\.\w\w\b/i.test(linkTitle.innerHTML)) {
            window.location.href = a.href;
        }
    });
}());

{'fraction_non_alphanumeric': 0.15085287846481876, 'fraction_numerical': 0.011727078891257996, 'mean_word_length': 2.066993464052288, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3918656', 'n_tokens_mistral': 597, 'n_tokens_neox': 565, 'n_words': 130}