Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- // Alterar links de download
- // Para http://www.piratatorrentsbr.com/
- // Por Bruno da Silva
- var DIVS = document.getElementsByTagName("div");
- for (var j=0; j< DIVS.length ; j++){
- // pegar todos links da div
- var LINKS = DIVS[j].getElementsByTagName('a');
- var k = 0;
- while ( k < LINKS.length && LINKS[k].href.search("tiny") != -1) { k++; }
- k--;
- if(!isset (LINKS[k]) || !isset (LINKS[k].href) ) continue;
- var str = LINKS[k].href;
- if(str.search("tiny") != -1) { // caso tiver algum Tiny na URL, é link para download
- var download = str; // parte que muda para RBM
- DIVS[j].innerHTML = "<br/><a href='"+download+"'><img src='http://4.bp.blogspot.com/-VZ_pIC6vVvw/Ukh0iQAtHOI/AAAAAAAABCI/eO8W_JgBVpg/s1600/images.png'/></a><br/><font size=1><a href='"+str+"'>Download sem gerenciador</a></font>";
- }
- }
- function isset () {
- // http://kevin.vanzonneveld.net
- var a = arguments,
- l = a.length,
- i = 0,
- undef;
- if (l === 0) {
- throw new Error('Empty isset');
- }
- while (i !== l) {
- if (a[i] === undef || a[i] === null) {
- return false;
- }
- i++;
- }
- return true;
- }
- </script>
Add Comment
Please, Sign In to add comment