您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds Buttons to your favorite playlists.
当前为
- // ==UserScript==
- // @name playlists buttons
- // @version 1.2
- // @description Adds Buttons to your favorite playlists.
- // @author Bliwi
- // @match https://soundcloud.com/*
- // @grant none
- // @run-at document-end
- // @noframes
- // @license MIT
- // @namespace https://greasyfork.org/users/943433
- // ==/UserScript==
- (function() {
- 'use strict';
- /* Injects Button into the page once it has loaded,
- then tries to re-add it if it disappears due to page change
- */
- function playlistsLoad() {
- insertButton('Subscribe!','PLAYLIST LINK');
- insertButton('Bangers','PLAYLIST LINK');
- insertButton('Favorites','PLAYLIST LINK');
- insertButton('Wowk and Focus','PLAYLIST LINK');
- insertButton('Anime Music','PLAYLIST LINK');
- }
- setTimeout(playlistsLoad, 500);
- function insertButton(playlistname,playlistlink) {
- let playlist = document.createElement('Button');
- let header = document.querySelector('.header__middle');
- playlist.innerHTML = playlistname;
- playlist.onclick = function(){location.href = playlistlink;};
- playlist.className = 'playlist-button';
- if (header) {
- header.insertBefore(playlist, header.children[2]);
- } else {setTimeout(playlistsLoad, 1000);}
- }
- })();