Advertisement
Guest User

Untitled

a guest
Aug 10th, 2018
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         emuparadise cache
  3. // @namespace    Violentmonkey Scripts
  4. // @match        *://www.emuparadise.me/*
  5. // @grant        none
  6. // ==/UserScript==
  7.  
  8. (function() {
  9.     'use strict';
  10.  
  11.     function addDownload(dict){
  12.         for (var i = 0; i < dict.length; i++){
  13. //            dict[i].href += '-download'; //uncomment this line if you want to use it for games instead
  14.             dict[i].href = 'http://webcache.googleusercontent.com/search?q=cache:' + dict[i].href;
  15.         }
  16.     }
  17.  
  18.     // finds all links that lead to a rom page
  19.     var links = document.querySelectorAll('a.index');
  20.     // appends them to go to the download page instead. Simple! :)
  21.     addDownload(links);
  22. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement