Cleaning up premium subscribe buttons

This commit is contained in:
Samuel Clay 2022-05-18 11:27:31 -04:00
parent 9a4d23e2f2
commit e1605bc232
2 changed files with 9 additions and 7 deletions

View file

@ -10652,9 +10652,11 @@ form.opml_import_form input {
flex-grow: 1; flex-grow: 1;
width: 50%; width: 50%;
font-size: 0.7em; font-size: 0.7em;
text-transform: uppercase;
color: #838b82; color: #838b82;
} }
.NB-modal-feedchooser .NB-provider-text {
text-transform: uppercase;
}
.NB-modal-feedchooser .NB-provider-main .NB-modal-submit-button, .NB-modal-feedchooser .NB-provider-main .NB-modal-submit-button,
.NB-modal-feedchooser .NB-provider-alternate .NB-modal-submit-button { .NB-modal-feedchooser .NB-provider-alternate .NB-modal-submit-button {
padding-top: 12px; padding-top: 12px;

View file

@ -131,7 +131,7 @@ _.extend(NEWSBLUR.ReaderFeedchooser.prototype, {
]), ]),
$.make('div', { className: 'NB-feedchooser-or-bar' }), $.make('div', { className: 'NB-feedchooser-or-bar' }),
$.make("div", { className: "NB-provider-alternate" }, [ $.make("div", { className: "NB-provider-alternate" }, [
"subscribe with ", $.make('span', { className: "NB-provider-text" }, "subscribe with "),
$.make("div", { className: "NB-splash-link NB-paypal-button", "data-plan": "premium" }, "") $.make("div", { className: "NB-splash-link NB-paypal-button", "data-plan": "premium" }, "")
]) ])
])), ])),
@ -157,7 +157,7 @@ _.extend(NEWSBLUR.ReaderFeedchooser.prototype, {
]), ]),
$.make('div', { className: 'NB-feedchooser-or-bar' }), $.make('div', { className: 'NB-feedchooser-or-bar' }),
$.make("div", { className: "NB-provider-alternate" }, [ $.make("div", { className: "NB-provider-alternate" }, [
(NEWSBLUR.Globals.active_provider != "paypal" && "subscribe with "), (NEWSBLUR.Globals.active_provider != "paypal" && $.make('span', { className: "NB-provider-text" }, "subscribe with ")),
(NEWSBLUR.Globals.active_provider != "paypal" && $.make("div", { className: "NB-splash-link NB-paypal-button", "data-plan": "premium" }, "")), (NEWSBLUR.Globals.active_provider != "paypal" && $.make("div", { className: "NB-splash-link NB-paypal-button", "data-plan": "premium" }, "")),
(NEWSBLUR.Globals.active_provider == "paypal" && $.make("div", { className: "NB-stripe-button-switch-premium NB-modal-submit-button NB-modal-submit-green" }, "Switch to Credit Card")), (NEWSBLUR.Globals.active_provider == "paypal" && $.make("div", { className: "NB-stripe-button-switch-premium NB-modal-submit-button NB-modal-submit-green" }, "Switch to Credit Card")),
(NEWSBLUR.Globals.active_provider == "paypal" && $creditcards.clone()) (NEWSBLUR.Globals.active_provider == "paypal" && $creditcards.clone())
@ -173,7 +173,7 @@ _.extend(NEWSBLUR.ReaderFeedchooser.prototype, {
]), ]),
$.make('div', { className: 'NB-feedchooser-or-bar' }), $.make('div', { className: 'NB-feedchooser-or-bar' }),
$.make("div", { className: "NB-provider-alternate" }, [ $.make("div", { className: "NB-provider-alternate" }, [
(NEWSBLUR.Globals.active_provider != "paypal" && "subscribe with "), (NEWSBLUR.Globals.active_provider != "paypal" && $.make('span', { className: "NB-provider-text" }, "subscribe with ")),
(NEWSBLUR.Globals.active_provider != "paypal" && $.make("div", { className: "NB-splash-link NB-paypal-button", "data-plan": "premium" }, "")), (NEWSBLUR.Globals.active_provider != "paypal" && $.make("div", { className: "NB-splash-link NB-paypal-button", "data-plan": "premium" }, "")),
(NEWSBLUR.Globals.active_provider == "paypal" && $.make("div", { className: "NB-stripe-button-switch-premium NB-modal-submit-button NB-modal-submit-green" }, "Switch to Credit Card")), (NEWSBLUR.Globals.active_provider == "paypal" && $.make("div", { className: "NB-stripe-button-switch-premium NB-modal-submit-button NB-modal-submit-green" }, "Switch to Credit Card")),
(NEWSBLUR.Globals.active_provider == "paypal" && $creditcards.clone()) (NEWSBLUR.Globals.active_provider == "paypal" && $creditcards.clone())
@ -229,7 +229,7 @@ _.extend(NEWSBLUR.ReaderFeedchooser.prototype, {
]), ]),
$.make('div', { className: 'NB-feedchooser-or-bar' }), $.make('div', { className: 'NB-feedchooser-or-bar' }),
$.make("div", { className: "NB-provider-alternate" }, [ $.make("div", { className: "NB-provider-alternate" }, [
(NEWSBLUR.Globals.active_provider != "paypal" && "subscribe with "), (NEWSBLUR.Globals.active_provider != "paypal" && $.make('span', { className: "NB-provider-text" }, "subscribe with ")),
(NEWSBLUR.Globals.active_provider != "paypal" && $.make("div", { className: "NB-splash-link NB-paypal-button", "data-plan": "archive" }, "")), (NEWSBLUR.Globals.active_provider != "paypal" && $.make("div", { className: "NB-splash-link NB-paypal-button", "data-plan": "archive" }, "")),
(NEWSBLUR.Globals.active_provider == "paypal" && $.make("div", { className: "NB-stripe-button-switch-archive NB-modal-submit-button NB-modal-submit-green" }, "Switch to Credit Card")), (NEWSBLUR.Globals.active_provider == "paypal" && $.make("div", { className: "NB-stripe-button-switch-archive NB-modal-submit-button NB-modal-submit-green" }, "Switch to Credit Card")),
(NEWSBLUR.Globals.active_provider == "paypal" && $creditcards) (NEWSBLUR.Globals.active_provider == "paypal" && $creditcards)
@ -257,7 +257,7 @@ _.extend(NEWSBLUR.ReaderFeedchooser.prototype, {
]), ]),
$.make('div', { className: 'NB-feedchooser-or-bar' }), $.make('div', { className: 'NB-feedchooser-or-bar' }),
$.make("div", { className: "NB-provider-alternate" }, [ $.make("div", { className: "NB-provider-alternate" }, [
(NEWSBLUR.Globals.active_provider != "paypal" && "subscribe with "), (NEWSBLUR.Globals.active_provider != "paypal" && $.make('span', { className: "NB-provider-text" }, "subscribe with ")),
(NEWSBLUR.Globals.active_provider != "paypal" && $.make("div", { className: "NB-splash-link NB-paypal-button", "data-plan": "archive" }, "")), (NEWSBLUR.Globals.active_provider != "paypal" && $.make("div", { className: "NB-splash-link NB-paypal-button", "data-plan": "archive" }, "")),
(NEWSBLUR.Globals.active_provider == "paypal" && $.make("div", { className: "NB-stripe-button-switch-archive NB-modal-submit-button NB-modal-submit-green" }, "Switch to Credit Card")), (NEWSBLUR.Globals.active_provider == "paypal" && $.make("div", { className: "NB-stripe-button-switch-archive NB-modal-submit-button NB-modal-submit-green" }, "Switch to Credit Card")),
(NEWSBLUR.Globals.active_provider == "paypal" && $creditcards.clone()) (NEWSBLUR.Globals.active_provider == "paypal" && $creditcards.clone())
@ -273,7 +273,7 @@ _.extend(NEWSBLUR.ReaderFeedchooser.prototype, {
]), ]),
$.make('div', { className: 'NB-feedchooser-or-bar' }), $.make('div', { className: 'NB-feedchooser-or-bar' }),
$.make("div", { className: "NB-provider-alternate" }, [ $.make("div", { className: "NB-provider-alternate" }, [
(NEWSBLUR.Globals.active_provider != "paypal" && "subscribe with "), (NEWSBLUR.Globals.active_provider != "paypal" && $.make('span', { className: "NB-provider-text" }, "subscribe with ")),
(NEWSBLUR.Globals.active_provider != "paypal" && $.make("div", { className: "NB-splash-link NB-paypal-button", "data-plan": "archive" }, "")), (NEWSBLUR.Globals.active_provider != "paypal" && $.make("div", { className: "NB-splash-link NB-paypal-button", "data-plan": "archive" }, "")),
(NEWSBLUR.Globals.active_provider == "paypal" && $.make("div", { className: "NB-stripe-button-switch-archive NB-modal-submit-button NB-modal-submit-green" }, "Switch to Credit Card")), (NEWSBLUR.Globals.active_provider == "paypal" && $.make("div", { className: "NB-stripe-button-switch-archive NB-modal-submit-button NB-modal-submit-green" }, "Switch to Credit Card")),
(NEWSBLUR.Globals.active_provider == "paypal" && $creditcards.clone()) (NEWSBLUR.Globals.active_provider == "paypal" && $creditcards.clone())