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
// @license GPL-2.0-only | |
!function() { | |
"use strict"; | |
let rules = [ | |
{ | |
matchRegex: RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/((?!test)[a-z]+)\.?m?\.wikipedia\.org\/(?:[a-z]+|wiki)\/(?!Special:Search)(.*?)(?:$|\/RK=.*|&sa=.*)/), | |
replaceWith: "https://www.wikiwand.com/$1/$2" | |
}, | |
{ |
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
class AsyncLeakyBucket(base): | |
"""A leaky bucket rate limiter. | |
Allows up to max_rate / time_period acquisitions before blocking. | |
time_period is measured in seconds; the default is 60. | |
rate_sec: Rate which the message should be allowed after limit | |
""" |
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
.multi-label--accordion-content-tip-body { | |
color: #4a4a4a; | |
font-size: 12px; | |
margin-bottom: 20px; | |
margin-top: 0; | |
} | |
.multi-label { | |
margin-bottom: 20px; | |
} | |
.multi-label--tabs.tabs { |
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
function scrollIt(destination, duration = 200, easing = 'linear', callback) { | |
const easings = { | |
linear(t) { | |
return t; | |
}, | |
easeInQuad(t) { | |
return t * t; | |
}, | |
easeOutQuad(t) { |