// ==UserScript== // @name Douban2Piratebay // @namespace https://github.com/bitdust/Douban2Piratebay/ // @version 0.3 // @description And direct link to piratebay from douban movie page. // @author bitdust // @match https://movie.douban.com/subject/* // @updateURL https://github.com/bitdust/Douban2Piratebay/raw/master/Douban2Piratebay.meta.js // @downloadURL https://github.com/bitdust/Douban2Piratebay/raw/master/Douban2Piratebay.user.js // @grant none // ==/UserScript== (function() { 'use strict'; // Your code here... function insertAfter(newNode, referenceNode) { referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling); } var links = document.querySelectorAll ( "#info > a" ); var imdblink = null; var imdbRe = new RegExp("tt[0-9]{4,}"); for (var i=0;i