├── .gitignore ├── GooglePirateExtendedv4.user.js ├── LICENSE.md ├── README.md └── dist ├── GooglePirateExtendedv4.meta.js └── GooglePirateExtendedv4.user.js /.gitignore: -------------------------------------------------------------------------------- 1 | # experiments 2 | /experiments 3 | # Some NODEJS 4 | /node_modules 5 | -------------------------------------------------------------------------------- /GooglePirateExtendedv4.user.js: -------------------------------------------------------------------------------- 1 | /** 2 | The MIT License (MIT) 3 | 4 | Copyright (c) 2014 Jeppe Rune Mortensen 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | the Software, and to permit persons to whom the Software is furnished to do so, 11 | subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | **/ 23 | // ==UserScript== 24 | // @id GooglePirateExtendedv4 25 | // @name GooglePirateExtendedv4 26 | // @namespace https://openuserjs.org/scripts/teocci/GooglePirateExtendedv4 27 | // @description Use Google to find free music, tv shows, movies, anime, torrents, comics, books and other files stored publicly online. 28 | // @version 4.0.1 29 | // @author Jorge Frisancho 30 | // @include http://*.google.*/* 31 | // @include https://*.google.*/* 32 | // @include http://*.google.*/webhp* 33 | // @include https://*.google.*/webhp* 34 | // @include http://*.google.*/search* 35 | // @include https://*.google.*/search* 36 | // @include https://encrypted.google.*/search* 37 | // @include https://encrypted.google.*/ 38 | // @include *google.*/firefox* 39 | // @exclude *images.google* 40 | // @exclude *video.google* 41 | // @grant none 42 | // @updateURL https://openuserjs.org/scripts/teocci/GooglePirateExtendedv4.user.js 43 | // @downloadURL https://openuserjs.org/scripts/teocci/GooglePirateExtendedv4.user.js 44 | // @run-at document-start 45 | // @priority 9001 46 | // @contributionURL https://github.com/teocci/GooglePirateExtended/wiki/Donate 47 | // @license MIT 48 | // ==/UserScript== 49 | 50 | function addNewRadio(nametext, dorkvalue){ 51 | var search = document.getElementsByName('f')[0]; 52 | var newText = document.createTextNode(nametext); 53 | var newRadio = document.createElement('input'); 54 | var breakup = document.createElement('br'); 55 | newRadio.setAttribute('type', 'radio'); 56 | newRadio.setAttribute('name', 'q'); 57 | newRadio.setAttribute('value', dorkvalue); 58 | if (nametext==='Web'){ 59 | newRadio.setAttribute('checked', 'checked'); 60 | } 61 | search.appendChild(breakup); 62 | search.appendChild(newRadio); 63 | search.appendChild(newText); 64 | } 65 | 66 | function newselect(nametext, dork){ 67 | var newoption = document.createElement('option'); 68 | newoption.setAttribute('value', dork); 69 | newoption.innerHTML=nametext; 70 | s.appendChild(newoption); 71 | } 72 | 73 | if((document.title==='Google') || (document.title==='Mozilla Firefox Start Page')){ 74 | document.getElementsByName('q')[0].focus(); 75 | addNewRadio('Web', ' '); 76 | addNewRadio('Wordreference', 'site:wordreference.com'); 77 | addNewRadio('Youtube', 'site:youtube.com'); 78 | addNewRadio('Music', 'intitle:"music" (mp3|aac|flac|wav) "Parent Directory" -htm -html -asp -php -listen77 -idmusic -airmp3 -shexy -vmp3'); 79 | addNewRadio('Movies/TV', '(avi|mpg|wmv|mpeg|divx) "Parent Directory" -"Trailer" -cdkey -asp -torrent -html -web-shelf -zoozle -jsp -htm -listen77 -idmovies -shexy -eucontest -0x7'); 80 | addNewRadio('Anime', 'intitle:"anime" (avi|mpg|wmv|mpeg|mkv|ogm) +ddl -animefield.is-there.net -torrent -torrents'); 81 | addNewRadio('FTP Folder', '"Parent Directory" intitle:"index.of" "Name" "Last modified" "Size" "Description" -inurl:htm -inurl:html -inurl:php -xxx -shtml -opendivx -md5 -md5sums -asp'); 82 | addNewRadio('Torrents', '+torrent -trailer -blogspot -proxy'); 83 | addNewRadio('EBooks/Comics', '(chm|pdf|cbr|nfo) -torrents -torrent -md5 -md5sums -idpdf'); 84 | addNewRadio('RAR/Zip Archives', '(rar|zip|tar|7zip|iso|cso|gz) -torrent +intitle:"index.of"'); 85 | }else{ 86 | var s = document.createElement('select'); 87 | s.setAttribute('name', 'q'); 88 | s.setAttribute('onchange', 'window.location.href=window.location.href.split("&q=")[0]+"&q="+window.location.href.split("&q=")[1].split("&")[0]+"&q="+this.value'); 89 | document.getElementById('prs').appendChild(s); 90 | newselect('Web', ''); 91 | newselect('Youtube', 'site:youtube.com'); 92 | newselect('Music', 'intitle:"music" (mp3|aac|flac|wav) "Parent Directory" -htm -html -asp -php -listen77 -idmusic -airmp3 -shexy -vmp3'); 93 | newselect('Movies/TV', '(avi|mpg|wmv|mpeg|divx) "Parent Directory" -"Trailer" -torrent -serial -cdkey -web-shelf -asp -html -zoozle -jsp -htm -listen77 -idmovies -shexy -eucontest -0x7'); 94 | newselect('Anime', 'intitle:"anime" (avi|mpg|wmv|mpeg|mkv|ogm) +ddl -animefield.is-there.net -torrent -torrents'); 95 | newselect('FTP Folder', '"Parent Directory" intitle:"index.of" "Name" "Last modified" "Size" "Description" -inurl:htm -inurl:html -inurl:php -idftp -xxx -shtml -opendivx -md5 -md5sums -asp'); 96 | newselect('Torrents', '+torrent -trailer -blogspot -proxy"'); 97 | newselect('EBooks/Comics', '(chm|pdf|cbr|nfo) -torrents -torrent -md5 -md5sums -idpdf'); 98 | newselect('RAR/Zip Archives', '(rar|zip|tar|7zip|iso|cso|gz) -torrent +intitle:"index.of"'); 99 | if(window.location.href.search('idmusic')>0){s.options[1].defaultSelected='true';} 100 | if(window.location.href.search('idmovies')>0){s.options[2].defaultSelected='true';} 101 | if(window.location.href.search('idftp')>0){s.options[3].defaultSelected='true';} 102 | if(window.location.href.search('torrent')>0){s.options[4].defaultSelected='true';} 103 | if(window.location.href.search('idpdf')>0){s.options[5].defaultSelected='true';} 104 | var i = 1; 105 | while (i 8 | // @include http://*.google.*/* 9 | // @include https://*.google.*/* 10 | // @include http://*.google.*/webhp* 11 | // @include https://*.google.*/webhp* 12 | // @include http://*.google.*/search* 13 | // @include https://*.google.*/search* 14 | // @include https://encrypted.google.*/search* 15 | // @include https://encrypted.google.*/ 16 | // @include *google.*/firefox* 17 | // @exclude *images.google* 18 | // @exclude *video.google* 19 | // @grant none 20 | // @updateURL https://raw.githubusercontent.com/teocci/GooglePirateExtended/master/dist/GooglePirateExtendedv4.meta.js 21 | // @downloadURL https://raw.githubusercontent.com/teocci/GooglePirateExtended/master/dist/GooglePirateExtendedv4.user.js 22 | // @run-at document-start 23 | // @updateVersion 15 24 | // @priority 9001 25 | // @contributionURL https://github.com/teocci/GooglePirateExtended/wiki/Donate 26 | // @license MIT 27 | // ==/UserScript== 28 | -------------------------------------------------------------------------------- /dist/GooglePirateExtendedv4.user.js: -------------------------------------------------------------------------------- 1 | /** 2 | The MIT License (MIT) 3 | 4 | Copyright (c) 2014 Jeppe Rune Mortensen 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | the Software, and to permit persons to whom the Software is furnished to do so, 11 | subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | **/ 23 | // ==UserScript== 24 | // @id GooglePirateExtendedv4 25 | // @name GooglePirateExtendedv4 26 | // @namespace https://openuserjs.org/scripts/teocci/GooglePirateExtendedv4 27 | // @description Use Google to find free music, tv shows, movies, anime, torrents, comics, books and other files stored publicly online. 28 | // @version 4.0.1 29 | // @author Jorge Frisancho 30 | // @include http://*.google.*/* 31 | // @include https://*.google.*/* 32 | // @include http://*.google.*/webhp* 33 | // @include https://*.google.*/webhp* 34 | // @include http://*.google.*/search* 35 | // @include https://*.google.*/search* 36 | // @include https://encrypted.google.*/search* 37 | // @include https://encrypted.google.*/ 38 | // @include *google.*/firefox* 39 | // @exclude *images.google* 40 | // @exclude *video.google* 41 | // @grant none 42 | // @updateURL https://raw.githubusercontent.com/teocci/GooglePirateExtended/master/dist/GooglePirateExtendedv4.meta.js 43 | // @downloadURL https://raw.githubusercontent.com/teocci/GooglePirateExtended/master/dist/GooglePirateExtendedv4.user.js 44 | // @run-at document-start 45 | // @updateVersion 15 46 | // @priority 9001 47 | // @contributionURL https://github.com/teocci/GooglePirateExtended/wiki/Donate 48 | // @license MIT 49 | // ==/UserScript== 50 | 51 | function addNewRadio(nametext, dorkvalue){ 52 | var search = document.getElementsByName('f')[0]; 53 | var newText = document.createTextNode(nametext); 54 | var newRadio = document.createElement('input'); 55 | var breakup = document.createElement('br'); 56 | newRadio.setAttribute('type', 'radio'); 57 | newRadio.setAttribute('name', 'q'); 58 | newRadio.setAttribute('value', dorkvalue); 59 | if (nametext==='Web'){ 60 | newRadio.setAttribute('checked', 'checked'); 61 | } 62 | search.appendChild(breakup); 63 | search.appendChild(newRadio); 64 | search.appendChild(newText); 65 | } 66 | 67 | function newselect(nametext, dork){ 68 | var newoption = document.createElement('option'); 69 | newoption.setAttribute('value', dork); 70 | newoption.innerHTML=nametext; 71 | s.appendChild(newoption); 72 | } 73 | 74 | if((document.title==='Google') || (document.title==='Mozilla Firefox Start Page')){ 75 | document.getElementsByName('q')[0].focus(); 76 | addNewRadio('Web', ' '); 77 | addNewRadio('Wordreference', 'site:wordreference.com'); 78 | addNewRadio('Youtube', 'site:youtube.com'); 79 | addNewRadio('Music', 'intitle:"music" (mp3|aac|flac|wav) "Parent Directory" -htm -html -asp -php -listen77 -idmusic -airmp3 -shexy -vmp3'); 80 | addNewRadio('Movies/TV', '(avi|mpg|wmv|mpeg|divx) "Parent Directory" -"Trailer" -cdkey -asp -torrent -html -web-shelf -zoozle -jsp -htm -listen77 -idmovies -shexy -eucontest -0x7'); 81 | addNewRadio('Anime', 'intitle:"anime" (avi|mpg|wmv|mpeg|mkv|ogm) +ddl -animefield.is-there.net -torrent -torrents'); 82 | addNewRadio('FTP Folder', '"Parent Directory" intitle:"index.of" "Name" "Last modified" "Size" "Description" -inurl:htm -inurl:html -inurl:php -xxx -shtml -opendivx -md5 -md5sums -asp'); 83 | addNewRadio('Torrents', '+torrent -trailer -blogspot -proxy'); 84 | addNewRadio('EBooks/Comics', '(chm|pdf|cbr|nfo) -torrents -torrent -md5 -md5sums -idpdf'); 85 | addNewRadio('RAR/Zip Archives', '(rar|zip|tar|7zip|iso|cso|gz) -torrent +intitle:"index.of"'); 86 | }else{ 87 | var s = document.createElement('select'); 88 | s.setAttribute('name', 'q'); 89 | s.setAttribute('onchange', 'window.location.href=window.location.href.split("&q=")[0]+"&q="+window.location.href.split("&q=")[1].split("&")[0]+"&q="+this.value'); 90 | document.getElementById('prs').appendChild(s); 91 | newselect('Web', ''); 92 | newselect('Youtube', 'site:youtube.com'); 93 | newselect('Music', 'intitle:"music" (mp3|aac|flac|wav) "Parent Directory" -htm -html -asp -php -listen77 -idmusic -airmp3 -shexy -vmp3'); 94 | newselect('Movies/TV', '(avi|mpg|wmv|mpeg|divx) "Parent Directory" -"Trailer" -torrent -serial -cdkey -web-shelf -asp -html -zoozle -jsp -htm -listen77 -idmovies -shexy -eucontest -0x7'); 95 | newselect('Anime', 'intitle:"anime" (avi|mpg|wmv|mpeg|mkv|ogm) +ddl -animefield.is-there.net -torrent -torrents'); 96 | newselect('FTP Folder', '"Parent Directory" intitle:"index.of" "Name" "Last modified" "Size" "Description" -inurl:htm -inurl:html -inurl:php -idftp -xxx -shtml -opendivx -md5 -md5sums -asp'); 97 | newselect('Torrents', '+torrent -trailer -blogspot -proxy"'); 98 | newselect('EBooks/Comics', '(chm|pdf|cbr|nfo) -torrents -torrent -md5 -md5sums -idpdf'); 99 | newselect('RAR/Zip Archives', '(rar|zip|tar|7zip|iso|cso|gz) -torrent +intitle:"index.of"'); 100 | if(window.location.href.search('idmusic')>0){s.options[1].defaultSelected='true';} 101 | if(window.location.href.search('idmovies')>0){s.options[2].defaultSelected='true';} 102 | if(window.location.href.search('idftp')>0){s.options[3].defaultSelected='true';} 103 | if(window.location.href.search('torrent')>0){s.options[4].defaultSelected='true';} 104 | if(window.location.href.search('idpdf')>0){s.options[5].defaultSelected='true';} 105 | var i = 1; 106 | while (i