From 47a9a98dd7c101ff04f8920470d85af09adf135c Mon Sep 17 00:00:00 2001 From: Hedgehog Date: Wed, 16 Apr 2014 21:51:48 +0400 Subject: [PATCH] bug fixes --- css/style.css | 3 +++ js/twister_formatpost.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/css/style.css b/css/style.css index 20685a8..f4d7186 100644 --- a/css/style.css +++ b/css/style.css @@ -532,6 +532,9 @@ input.userMenu-search-field:focus::-ms-input-placeholder { color: rgba( 0, 0, 0, .7 ); padding: 0 75px 0 15px; } +.config-menu { + right: 0; +} /*********************************** ********************* MINI PROFILE ***********************************/ diff --git a/js/twister_formatpost.js b/js/twister_formatpost.js index 732cea8..096b3ae 100644 --- a/js/twister_formatpost.js +++ b/js/twister_formatpost.js @@ -105,7 +105,7 @@ function postToElem( post, kind ) { var previewContainer = elem.find('.preview-container'), postText = elem.find(".post-text"); var postLink = postText.find("a[rel='nofollow']")[0] ? postText.find("a[rel='nofollow']")[0].href : ''; var ytRegExp = /(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?/i; - var vimeoRegExp = /http:\/\/(www\.)?vimeo.com\/(\d+)($|\/)/i; + var vimeoRegExp = /http[s]?:\/\/(www\.)?vimeo.com\/(\d+)($|\/)/i; if (postLink && localStorage['imagesPreview'] == 'enable' && (/(\.jpg)|(\.gif)|(\.png)|(\.jpeg)|(\.jpe)/i.test(postLink) || /https:\/\/img.bi/i.test(postLink))){ previewContainer.show();