Steam Community - Wishlist Exporter

Export your wishlist in a text list

目前为 2017-10-28 提交的版本。查看 最新版本

// ==UserScript==
// @name         Steam Community - Wishlist Exporter
// @namespace    Royalgamer06
// @version      1.1
// @description  Export your wishlist in a text list
// @author       Royalgamer06
// @include      *://steamcommunity.com/*/wishlist*
// @grant        unsafeWindow
// @run-at       document-idle
// ==/UserScript==

jQuery("#wishlist_sort_options").after('<div class="sort_options" id="wishlist_sort_options">Export&nbsp;<a href="javascript:exportWishlist()"><span>Wishlist</span></a></div>');

unsafeWindow.exportWishlist = function() {
    var win = window.open("", "", "width=480,height=640");
    var wishlist = jQuery("h4:visible");
    for (var i = 0; i < wishlist.length;i++) win.document.write(wishlist[i].innerHTML + "<br>");
    var range = win.document.createRange();
    range.selectNodeContents(win.document.body);
    var selection = win.window.getSelection();
    selection.removeAllRanges();
    selection.addRange(range);
};