Add steamgriddb_downloads.user.js
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
// ==UserScript==
|
||||
// @name SteamGridDB Download
|
||||
// @namespace BigDuckie.SteamGridDBDownload
|
||||
// @version 2025.1.13
|
||||
// @description Adds download attribute to download buttons on SteamGridDB.
|
||||
// @icon https://www.google.com/s2/favicons?sz=64&domain=steamgriddb.com
|
||||
// @author Big Duckie
|
||||
// @copyright 2025, Big Duckie (https://bigduckie.dev)
|
||||
// @license MIT
|
||||
// @match https://www.steamgriddb.com/search/*
|
||||
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js
|
||||
// @require https://raw.githubusercontent.com/pie6k/jquery.initialize/master/jquery.initialize.min.js
|
||||
// @grant GM_download
|
||||
// ==/UserScript==
|
||||
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
jQuery.noConflict();
|
||||
|
||||
jQuery.initialize(".btn-download>a", function() {
|
||||
jQuery(this).attr("download", "").attr("target", null);
|
||||
});
|
||||
})();
|
||||
Reference in New Issue
Block a user