Bandcamp Volume Bar

Adds a volume bar to Bandcamp

< 腳本Bandcamp Volume Bar的回應

評論:正評 - 腳本一切正常

§
發表於:2020-04-21

How to set the background color?

I like the blue, wanna use that.

Redcrafter作者
§
發表於:2020-04-21

The background color of what the button or the slider?

§
發表於:2020-04-22

Both. As seen on the description page. I thought you can color a box surrounding both bars.

Redcrafter作者
§
發表於:2020-04-22
編輯:2020-04-22

No that's the custom color of the Bandcamp page. For example https://danimalcannon.bandcamp.com/ I could add that but i feel like that's outside the scope of what the extension should do.

Redcrafter作者
§
發表於:2020-04-22

If you want a custom box here you go

var testDiv = document.createElement("div");
testDiv.style.position = "absolute";
testDiv.style.width = "392px";
testDiv.style.height = "132px";
testDiv.style.top = "-8px";
testDiv.style.left = "-8px";
testDiv.style.backgroundColor = "#4AC2E6";

var ins = document.querySelector("#trackInfoInner");
ins.style.position = "relative";
ins.insertBefore(testDiv, ins.children[0]);

Just put that into the script in front of the style. You can use any color you want. Note that the box will still be there on pages with different background colors.

§
發表於:2020-05-01

@Redcrafter said: No that's the custom color of the Bandcamp page. For example https://danimalcannon.bandcamp.com/ ahh, now I get it. Nice.

@Redcrafter said: If you want a custom box here you go... Thanks!

發表回覆

登入以回復