From fb256e2d7d9dedea6df019061efc56a812009424 Mon Sep 17 00:00:00 2001 From: Big Duckie Date: Mon, 13 Jan 2025 09:38:17 -0700 Subject: [PATCH] Add steamgriddb_downloads.user.js --- steamgriddb_downloads.user.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 steamgriddb_downloads.user.js 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