1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +02:00

Safari: fix tooltips for dynamic filtering

This commit is contained in:
Deathamns 2014-12-08 08:18:13 +01:00
parent 25cf80838b
commit 326ed213b0
2 changed files with 7 additions and 7 deletions

View File

@ -36,7 +36,7 @@ self.vAPI = self.vAPI || {};
var setScriptDirection = function(language) {
document.body.setAttribute(
'dir',
~['ar', 'he', 'fa', 'ps', 'ur'].indexOf(language) ? 'rtl' : 'ltr'
['ar', 'he', 'fa', 'ps', 'ur'].indexOf(language) !== -1 ? 'rtl' : 'ltr'
);
};
@ -78,11 +78,11 @@ vAPI.getURL = function(path) {
// first language is the default
vAPI.i18nData = [
'en', 'ar', 'cs', 'da', 'de', 'el', 'es', 'et', 'fi', 'fil', 'fr', 'he',
'hi', 'hr', 'hu', 'id', 'it', 'ja', 'mr', 'nb', 'nl', 'pl', 'pt_BR',
'pt_PT', 'ro', 'ru', 'sv', 'tr', 'uk', 'vi', 'zh_CN'
'hi', 'hr', 'hu', 'id', 'it', 'ja', 'mr', 'nb', 'nl', 'pl', 'pt-BR',
'pt-PT', 'ro', 'ru', 'sv', 'tr', 'uk', 'vi', 'zh-CN'
];
vAPI.i18n = navigator.language.replace('-', '_');
vAPI.i18n = navigator.language;
if (vAPI.i18nData.indexOf(vAPI.i18n) === -1) {
vAPI.i18n = vAPI.i18n.slice(0, 2);

View File

@ -84,14 +84,14 @@ p {
background-color: #fffff4;
border: 1px solid #888;
border-radius: 5px;
bottom: 20vh;
bottom: 20%;
box-shadow: 1px 1px 2px 0 rgba(0,0,0,0.8);
display: none;
font-size: small;
left: 8vw;
left: 8%;
padding: 0.25em;
position: fixed;
right: 8vw;
right: 8%;
text-align: center;
}
.dynamicFiltering div:not(.blocked):hover > .tip:nth-of-type(1) {