This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (userContextId in this._identitiesState) { | |
return; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if message == 'stripe_info_verify' %} | |
Speical markup with al ink to verify blah blah | |
{% else %} | |
<div class="callout warning expanded" data-closable> | |
<button class="close-button" data-close>×</button> | |
<p class="alert {% if message.tags %}alert-{{ message.tags }}{% endif %}">{{ message }}</p> | |
</div> | |
{% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib import messages | |
def stripe_identity_check(get_response): | |
def middleware(request): | |
if request.user.needs_stripe_identity_stuff(): | |
messages.warning('stripe_info_verify') | |
response = get_response(request) | |
return response |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.querySelector('#sort-containers-link').addEventListener('click', ()=> { | |
const sortedTabsArray = []; | |
browser.contextualIdentities.query({}).then(identities=> { | |
identities.unshift({cookieStoreId: 'firefox-default'}); | |
console.log('identities: ', identities); | |
const tabsArray = browser.tabs.query({}).then(tabsArray); | |
identities.forEach(identity=> { | |
tabsArray.forEach(tab=> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Shim Tealium utag.js functionality to see if shimming even works | |
if ( | |
requestTopHost === 'tags.tiqcdn.com' && | |
requestURL.href.endsWith('utag.js') | |
) { | |
// Return a no-op shim of utag.js to prevent error while | |
// (maybe) preserving functionality | |
let redirect = { | |
redirectUrl: 'js/utag-shim.js' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if not previous_offers: | |
self.offer = offer_amount | |
self.save() | |
else: | |
for offer in previous_offers: | |
payments.refund(offer) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const studyConfig = { | |
name: self.addonId, | |
duration: 7, | |
surveyUrls: { | |
'end-of-study': 'some/url', | |
'user-ended-study': 'some/url', | |
'ineligible': null | |
}, | |
variations: { | |
'control': () => {}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_context_data(self, **kwargs): | |
claim = None | |
vote = None | |
try: | |
claim = Claim.objects.get(pk=self.kwargs['pk']) | |
vote = Vote.objects.get(claim=claim, user=self.request.user) | |
total_payout = 0 | |
total_codesy_fees = 0 | |
total_stripe_fees = 0 | |
for payout in claim.successful_payouts.all(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="/css/foundation.min.css"> | |
<link rel="stylesheet" href="/css/popup.css"> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const title = createClass({ | |
displayName: "Title", | |
render: () => { | |
let {disabled} = this.props | |
let titleText = 'Blok is blocking tracker requests on this site.' | |
if (disabled) { | |
titleText = 'Parts of this site may be tracking your activity.' | |
} | |