SwitchDD

Switch back deals with discussions

2020/06/14のページです。最新版はこちら

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         SwitchDD
// @namespace    https://greasyfork.org/en/users/2205-ryzhehvost
// @version      0.2
// @description  Switch back deals with discussions
// @author       Ryzhehvost
// @license      Apache-2.0
// @match        https://www.steamgifts.com/giveaways/*
// @match        https://www.steamgifts.com/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    let previews = document.querySelectorAll(".homepage_heading");
    let deals = previews[0].parentElement;
    let discussions = previews[1].parentElement;
    let newdeals=deals.cloneNode(true);
    let newdiscussions=discussions.cloneNode(true);
    deals.parentNode.replaceChild(newdiscussions, deals);
    discussions.parentNode.replaceChild(newdeals,discussions);
})();