diff --git a/steamgriddb_downloads.user.js b/steamgriddb_downloads.user.js new file mode 100644 index 0000000..5bab874 --- /dev/null +++ b/steamgriddb_downloads.user.js @@ -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); + }); +})(); \ No newline at end of file