Skip to content

Instantly share code, notes, and snippets.

@RealDyllon
Last active December 21, 2021 23:16
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RealDyllon/91d8b20cf014e6230e732bf3513222bd to your computer and use it in GitHub Desktop.
Save RealDyllon/91d8b20cf014e6230e732bf3513222bd to your computer and use it in GitHub Desktop.
Enhance Pandora via Tampermonkey / Greasemonkey
// ==UserScript==
// @name Pandora Enhancer
// @namespace https://www.pandora.com/
// @version 1.0
// @description hides perma-sidebar for ads
// @author www.github.com/RealDyllon
// @match https://www.pandora.com/*
// @icon https://www.google.com/s2/favicons?domain=pandora.com
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant GM_addStyle
// ==/UserScript==
//- The @grant directives are needed to restore the proper sandbox.
/* global $, waitForKeyElements */
(function() {
'use strict';
GM_addStyle(`
.region-main--rightRail {
width: 100% !important;
}`);
GM_addStyle(`
.region-bottomBar--rightRail {
width: 100% !important;
}`);
GM_addStyle(`
.region-topBar--rightRail {
width: 100% !important;
}`);
GM_addStyle(`
.ButtonLink--nav--upgrade--darkTheme {
display: none;
}`);
waitForKeyElements(".DisplayAdController", killNode);
function killNode (jNode) {
jNode.remove ();
}
console.log('Pandora Enhancer ran successfully!');
})();
// ==UserScript==
// @name Pandora Enhancer
// @namespace https://www.pandora.com/
// @version 1.0
// @description hides perma-sidebar for ads
// @author www.github.com/RealDyllon
// @match https://www.pandora.com/*
// @icon https://www.google.com/s2/favicons?domain=pandora.com
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant GM_addStyle
// ==/UserScript==
(function() {
'use strict';
GM_addStyle(`
.region-main--rightRail {
width: 100% !important;
}`);
GM_addStyle(`
.region-bottomBar--rightRail {
width: 100% !important;
}`);
GM_addStyle(`
.region-topBar--rightRail {
width: 100% !important;
}`);
GM_addStyle(`
.ButtonLink--nav--upgrade--darkTheme {
display: none;
}`);
console.log('Pandora Enhancer ran successfully!');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment