Steam Link Regular

regular links with end /[appid]/ & print at console

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği yüklemek için Tampermonkey gibi bir uzantı yüklemeniz gerekir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

Bu stili yüklemek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için Stylus gibi bir uzantı kurmanız gerekir.

Bu stili yükleyebilmek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı kurmanız gerekir.

Bu stili yükleyebilmek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Steam Link Regular
// @description  regular links with end /[appid]/ & print at console
// @author       desc_inno
// @namespace    https://github.com/desc70865/Steam-Link-Regular
// @supportURL   https://github.com/desc70865/Steam-Link-Regular/issues
// @version      0.7
// @icon         https://keylol.com/favicon.ico
// @match        https://keylol.com/*
// @require      https://cdn.staticfile.org/jquery/1.12.4/jquery.min.js
// ==/UserScript==

(function() {
    'use strict';
    print();
    jQuery('body').on("click", "#threadindex > div > ul > li",()=>{
        $('.t_f').ready(()=>setTimeout(()=>{print().then(unauto())},1000))
    });
})();

function print(){
    var table = [],
        name = [];
    setTimeout(3000);
    document.querySelectorAll('.steam-info-link').forEach(function(x){
        var not_language = x.href.match(/(\/\?l)/g) == null,
            not_client = x.href.match(/(\/\?cc)/g) == null,
            appid = x.href.match(/(?<=\/app\/)(\d{3,7})/g);
        if (not_language && not_client && appid != null){
            x.setAttribute("href", "https://store.steampowered.com/app/" + appid + "/");
        }
        name.push(x.outerText)
        table.push(x.href)
    })
    console.log(name.join('\n'))
    console.log(table.join('\n'))
}

function unauto(){
    $('.plc div.authi>a[rel=nofollow]').eq(0).after(`<span class="pipe">|</span><a href="javascript:void(0);" id="unauto_tab">标记</a>`);
    $('#unauto_tab').click(()=>print())
}