Enable Songsterr Plus

Enable songsterr Plus

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Enable Songsterr Plus
// @version      1.0
// @description  Enable songsterr Plus
// @author       CageistArc
// @grant        none
// @include *songsterr.com*
// @include songsterr.com*
// @include *songsterr.com
// @include songsterr.com
// @include www.songsterr.com*
// @include http://songsterr.com/*
// @include https://songsterr.com/*
// @include http://*.songsterr.com/*
// @include https://*.songsterr.com/*
// @namespace https://greasyfork.org/users/1403103
// ==/UserScript==

(function () {
    'use strict';
    const a = document.body.querySelector('#state');
    a.textContent = a.textContent.replace('hasPlus":false', 'hasPlus":true');

    //window.addEventListener('load', () => {
        //const b = document.body.querySelector(navigator.userAgentData.mobile ? '#showroom_header' : '#showroom');
        //b?.removeAttribute('id');
        //b?.removeAttribute('class');
    //});

    setTimeout(function() {
        const tablatureElement = document.body.querySelector('#showroom > #tablature');
        const apptabElement = document.body.querySelector('#apptab');

        if (tablatureElement && apptabElement) {
            apptabElement.prepend(tablatureElement);
        }
    }, 2000);
})();