Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Roms43 Downloader
- // @namespace http://roms43.com/
- // @version 1.0
- // @description Generates direct download links on roms43
- // @author Huntereb
- // @match *roms43.com/download/*
- // @grant none
- // ==/UserScript==
- /* jshint -W097 */
- 'use strict';
- var dlbut = document.createElement('button');
- dlbut.innerHTML = 'Download';
- dlbut.setAttribute('type', 'button');
- dlbut.setAttribute('onclick', "window.open(tr_download_url);");
- dlbut.name = 'dlbut';
- var trash = document.getElementsByClassName('btn btn-danger btn-lg margin download_link');
- trash[0].parentNode.removeChild(trash[0]);
- document.getElementsByClassName('media text-center margin20')[0].appendChild(dlbut);
Add Comment
Please, Sign In to add comment