Iwara UI Fix + 1-Click Filter Xtension

An extension to 天音's Iwara 1-Click Filter script, also works as a standalone

Tính đến 01-03-2020. Xem phiên bản mới nhất.

  1. // ==UserScript==
  2. // @name Iwara UI Fix + 1-Click Filter Xtension
  3. // @namespace none
  4. // @version 1.1
  5. // @description An extension to 天音's Iwara 1-Click Filter script, also works as a standalone
  6. // @author Nothson
  7. // @license CC BY-NC
  8. // @resource https://creativecommons.org/licenses/by-nc/4.0/
  9. // @match https://*.iwara.tv/*
  10. // @grant none
  11. // @run-at document-start
  12. // ==/UserScript==
  13.  
  14. /*
  15. --- Iwara UI Fix + 1-Click Filter Xtension by Nothson : https://iwara.tv/users/Nothson ---
  16.  
  17. Mainly for scratching the Iwara's UI/UX itches I have.
  18. I'm not a senior web dev so plz don't scold me if the code below looks messy to you.
  19.  
  20. 1 Mar 2020
  21.  
  22. - Added like percentage
  23. - Polaroid print style for video/image cards
  24. - Repositioned the card stats & icons
  25. - Added flairs, shown on the right of the card stats
  26. - Fire Icon: % like reaches the threshold (based on view count) + 200 views or more
  27. - Star Icon: % like reaches the threshold + 20k views or more
  28. - Lock Icon: Private video
  29. - Grid Icon: Multiple images
  30. - Screen Icon: External player (YouTube, Vimeo, etc.)
  31. - Card transitions on hover + extra transitions for some flairs
  32. - Added block backgrounds on many regions + made paddings and margins consistent
  33. - Fixed video player seek head
  34. - Changed forum post timestamp text color
  35. - Fixed user profile background, user lists (following/followers), and layout
  36. - Perhaps a few more things I did but couldn't remember, idk
  37.  
  38. Expected to run after Erono's Iwara 1-Click Filter Script: https://greasyfork.org/scripts/393957
  39. However, this script works as a standalone UI fix as well
  40. Tested on the latest version of Firefox & Chrome, plus responsive
  41. */
  42.  
  43. if (!window.location.href.match('://i.iwara.tv')) {
  44. document.body.setAttribute('hidden', '');
  45. }
  46.  
  47. window.addEventListener('load', async function() {
  48. if (!window.location.href.match('://i.iwara.tv')) {
  49. let timestamp = new Date().getTime(); // Debug
  50. let baseScriptRecommended = false;
  51. if (!document.head.querySelector('#css_custom')) { // 1-Click Filter not installed, add required CSS rules
  52. baseScriptRecommended = true;
  53. let baseCSS = document.createElement('style');
  54. baseCSS.innerHTML = `
  55. /* ads */
  56. /*
  57. .block-extra-content, .extra-content-block {display: none;}
  58. */
  59.  
  60. /* fix page */
  61. body {background-color: #eee;}
  62. section#content > .container {background-color: #eee; padding: 10px;}
  63. .container {width: unset;}
  64. @media (min-width: 1300px) {.container {width: 1300px;}}
  65.  
  66. /* fix overflow */
  67. #block-system-main, .row {margin-left: 0; margin-right: 0;}
  68. .col-sm-3, .col-sm-6, .col-sm-9, .col-xs-6, .col-sm-12 {padding-left: 0; padding-right: 0;}
  69. .view-videos .view-content .views-row, .view-images .view-content .views-row {padding-bottom: 0px;}
  70.  
  71. /* compact page */
  72. .view-content .col-sm-3, .view-content .col-sm-6 {width: 50%; float: left;}
  73. @media (min-width: 768px) {
  74. .view-content .col-sm-3 {width: 25%;}
  75. }
  76.  
  77. /* card style */
  78. .node.node-teaser {background-color: #ffffff; border: 1px solid #ccc; border-radius: 4px; padding: 5px; margin: 4px;}
  79. .node.node-teaser .icon-bg, .node.node-teaser .private-video {width: calc(100% - 10px);}
  80. .node.node-teaser .icon-bg .likes-icon {filter: drop-shadow(0px 0px 2px #000);}
  81. .node.node-teaser h3.title {font-size: 1em; line-height: 1em; height: 3em; margin-bottom: 0px; overflow: hidden;}
  82. .node.node-teaser .username {display: block; white-space: nowrap; overflow: hidden;}
  83. .node.node-teaser .field-item {min-height: 2em;}
  84. .node.node-video .content {margin: 4px;}
  85. .sidebar .block.block-views,
  86. .sidebar .block.block-facetapi,
  87. .sidebar .block.block-mainblocks {background-color: #fafafa; border: 1px solid #ccc; border-radius: 4px; padding: 8px; margin: 4px 4px 8px 4px;}
  88. .sidebar .node.node-sidebar_teaser {background-color: #ffffff; border: 1px solid #ccc; border-radius: 2px; padding: 4px; margin: 2px;}
  89. .sidebar .node.node-sidebar_teaser .icon-bg, .node.node-sidebar_teaser .private-video {width: calc(100% - 8px);}
  90. .sidebar .node.node-sidebar_teaser .icon-bg .likes-icon {filter: drop-shadow(0px 0px 2px #000);}
  91. .item-list ul.pager li {margin: 0; padding: 0;}
  92. .item-list ul.pager li.pager-current,
  93. .item-list ul.pager li.pager-ellipsis,
  94. .item-list ul.pager li > a {background: #fafafa; border: 1px solid #ccc; border-radius: 8px; padding: 4px 16px; margin: 0px; display: inline-block;}
  95.  
  96. /* video style for external link (youtube) */
  97. /*
  98. .node.node-teaser .field-type-video-embed-field {border: 4px solid #c33; background-color: #000;}
  99. .node.node-teaser .field-type-video-embed-field .field-items {overflow: hidden;}
  100. .node.node-teaser .field-type-video-embed-field .field-items .field-item {margin: -4px;}
  101. */
  102.  
  103. /* image style in subscriptions page */
  104. .view-subscriptions .field-type-image {border: 1px solid #ccc; background-color: #fff; padding: 5px;}
  105. .view-subscriptions .field-type-image .field-items {overflow: hidden;}
  106. .view-subscriptions .field-type-image .field-items .field-item {margin: -6px;}
  107.  
  108. /* search and playist */
  109. .node-wide_teaser {background-color: #fafafa; border: 1px solid #ccc; border-radius: 4px; padding: 4px; margin: 4px;}
  110. .node-wide_teaser {width: unset; word-break: break-all; min-height: 170px;}
  111. .node-wide_teaser .col-sm-2 {width: 230px; padding: 4px;}
  112. .node-wide_teaser .col-sm-10 {width: calc(100% - 230px); padding: 4px;}
  113. .node-wide_teaser .field-name-field-video {border: 1px solid #999;}
  114. .node-wide_teaser .field-name-field-video-url {border: 1px solid #999; position: absolute; top: 0px; left: -230px; margin: 4px;}
  115. @media (max-width: 768px) {.node-wide_teaser .field-name-field-video-url {display: none;}}
  116. .node-wide_teaser .field-name-field-images .field-item {display: unset;}
  117. .node-wide_teaser .field-name-field-images .field-item > a > img {width: calc(100%/3 - 8px); border: 1px solid #aaa; padding: 4px; margin: 4px;}
  118. .node-wide_teaser .field-name-field-images .field-item > video {width: calc(100%/1 - 8px); margin: 4px; border: 1px solid #aaa; padding: 4px; height: auto;}
  119. .node-wide_teaser .node-info {padding: 4px;}
  120. .node-wide_teaser .node-info .submitted {display: inline-block; width: 100%;}
  121. .node-wide_teaser .node-info .submitted h1.title {font-size: 28px; position: unset; margin: unset;}
  122. ul.facetapi-facetapi-tagcloud li > a {white-space: normal;}
  123. ul.facetapi-facetapi-tagcloud .element-invisible {display: none;}
  124.  
  125. /* footer */
  126. #wrapper {margin-bottom: unset; padding-bottom: unset;}
  127. footer {height: unset;}
  128. footer .block {width: 25%; float: left;}
  129. footer .block.block-forum {width: 50%;}
  130. footer .copyright {float: unset;}
  131.  
  132. /* video player */
  133. /* expand volume and seekbar height */
  134. .video-js .vjs-volume-bar {margin: 1em 0em;}
  135. .video-js .vjs-volume-bar.vjs-slider-horizontal, .video-js .vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level {height: 1em;}
  136. .video-js .vjs-progress-holder, .video-js .vjs-progress-holder .vjs-load-progress, .video-js .vjs-progress-holder .vjs-play-progress {height: 1em;}
  137. `;
  138. baseCSS.id = 'css_custom';
  139. document.head.appendChild(baseCSS);
  140. }
  141. let cards = document.querySelectorAll('.node-teaser, .node-sidebar_teaser');
  142. Math.logn = function logn (val, base) {
  143. return Math.log(val) / Math.log(base);
  144. }
  145. function kilo2Number (text) {
  146. if (text.match('k') == null) {
  147. return {value: parseInt(text), isKilo: false};
  148. }
  149. else {
  150. return {value: parseFloat(text.replace('k', '')) * 1000, isKilo: true};
  151. }
  152. }
  153. function getFlair (viewCount, likePercentage, card) {
  154. if (card.querySelector('.private-video')) {
  155. return 'lock';
  156. }
  157. else if ((card.className.match('node-sidebar_teaser') && card.children.length > 2) || card.children.length > 4) {
  158. return 'share';
  159. }
  160. else {
  161. let viewPower = Math.logn(viewCount, 6);
  162. let likeThreshold = 8 - viewPower;
  163. if (viewCount < 200) {
  164. return '';
  165. }
  166. else if (viewCount < 20000) {
  167. return (likePercentage > likeThreshold) ? 'fire' : '';
  168. }
  169. else {
  170. return (likePercentage > likeThreshold) ? 'star' : '';
  171. }
  172. }
  173. }
  174.  
  175. // HTML Mod
  176. cards.forEach(card => {
  177. let icons = card.querySelector('.icon-bg');
  178. if (icons) { // Rearrange stat icons, add like percentage and flairs
  179. if ((card.className.match('node-sidebar_teaser') && card.children.length > 1) || card.children.length > 3) {
  180. card.insertBefore(icons, card.children[2]);
  181. }
  182. else {
  183. card.insertBefore(icons, card.children[1]);
  184. }
  185. if (card.className.match('node-image') && icons.children.length == 3) {
  186. icons.appendChild(icons.children[1]);
  187. icons.appendChild(icons.children[0]);
  188. }
  189. else if (icons.children.length == 2) {
  190. icons.appendChild(icons.children[0]);
  191. }
  192.  
  193. let likeNode = icons.querySelector('.glyphicon-heart');
  194. if (likeNode && !(card.className.match('node-image') && card.className.match('node-sidebar_teaser'))) {
  195. likeNode = likeNode.nextSibling;
  196. let viewNode = icons.querySelector('.glyphicon-eye-open').nextSibling;
  197. let likeTxt = likeNode.wholeText.trim();
  198. let like = kilo2Number(likeTxt);
  199. let viewCount = kilo2Number(viewNode.wholeText.trim());
  200. let likePercentage = (viewCount == 0) ? 0 : parseFloat(like.value / viewCount.value * 100).toFixed(2);
  201. if (!card.className.match('node-sidebar_teaser')) {
  202. likeNode.nodeValue = ' ' + likeTxt;
  203. let likePercentageHTML = document.createElement('div');
  204. likePercentageHTML.className += 'right-icon likes-icon like-percentage';
  205. if (like.isKilo || viewCount.isKilo) {
  206. likePercentageHTML.innerText = '(~' + likePercentage + '%)';
  207. }
  208. else {
  209. likePercentageHTML.innerText = '(' + likePercentage + '%)';
  210. }
  211. likeNode.parentElement.parentElement.appendChild(likePercentageHTML);
  212. }
  213. if (card.className.match('node-video')) {
  214. let flair = getFlair(viewCount.value, likePercentage, card);
  215. if (flair) {
  216. card.className += ' flair-' + flair;
  217. let flairNode = document.createElement('div');
  218. flairNode.setAttribute('class', 'left-icon flair-icon');
  219. flairNode.innerHTML = '<i class="glyphicon glyphicon-' + flair + '" title="Flair"></i>';
  220. icons.appendChild(flairNode);
  221. }
  222. }
  223. }
  224. }
  225. else {
  226. let blankFooter = document.createElement('div');
  227. blankFooter.setAttribute('class', 'icon-bg');
  228. card.appendChild(blankFooter);
  229. }
  230.  
  231. let thumbnail = card.querySelector('a > img');
  232. if (!thumbnail) { // Fix inconsistent height of the cards with no thumbnail
  233. let title = card.querySelector('.title > a');
  234. let blankImage = document.createElement('a');
  235. let url = title.getAttribute('href');
  236. if (url) {
  237. blankImage.setAttribute('href', url);
  238. }
  239. blankImage.setAttribute('title', title.innerText);
  240. blankImage.className += 'blankimg';
  241. if (card.className.match('node-sidebar_teaser')) {
  242. blankImage.innerHTML = '<img width="141" height="84"></img>';
  243. }
  244. else if (card.className.match('node-teaser')) {
  245. blankImage.innerHTML = '<img width="220" height="150"></img>';
  246. }
  247. card.querySelector('.field-items > .field-item').appendChild(blankImage);
  248. }
  249. });
  250.  
  251. let contentInfo = document.querySelector('body.node-type-video .node.node-video .node-info .node-views, body.node-type-image .node.node-image .node-info .node-views');
  252. if (contentInfo) { // Add like percentage for a video/image page
  253. let heartIcon = contentInfo.querySelector('.glyphicon.glyphicon-heart');
  254. if (heartIcon) {
  255. let eyeIcon = contentInfo.querySelector('.glyphicon.glyphicon-eye-open');
  256. let viewCount = parseInt(eyeIcon.nextSibling.nodeValue.replace(',', ''));
  257. let like = parseInt(heartIcon.nextSibling.nodeValue.replace(',', ''));
  258. let likePercentage = (viewCount == 0) ? 0 : parseFloat(like / viewCount * 100).toFixed(4);
  259. heartIcon.nextSibling.nodeValue = ' ' + like + ' (' + likePercentage + '%)';
  260. contentInfo.appendChild(contentInfo.querySelector('.glyphicon.glyphicon-heart'));
  261. contentInfo.appendChild(contentInfo.querySelector('.glyphicon.glyphicon-eye-open').previousSibling);
  262. }
  263. }
  264.  
  265. let copyrightNode = document.querySelector('footer .copyright');
  266. if (copyrightNode) { // Add script credits
  267. let innerHTMLExt = '<br><u><b><a href="https://ecchi.iwara.tv/images/iwara-1-click-filter">Iwara 1-Click Filter</a></b></u> by <u><b><a href="https://iwara.tv/users/erono">Erono</a></b></u> + <b>Xtension</b> by <u><b><a href="https://iwara.tv/users/nothson">Nothson</a></b></u>';
  268. if (baseScriptRecommended) {
  269. innerHTMLExt = '<br><b>Iwara UI Fix</b> by <u><b><a href="https://iwara.tv/users/nothson">Nothson</a></b></u><br><b>Note:</b> Iwara 1-Click Filter is not installed, disabled, or it was set to run after this script. Check out <u><b><a href="https://ecchi.iwara.tv/images/iwara-1-click-filter">this page</a></b></u> or <b>script execution order</b>.';
  270. }
  271. copyrightNode.innerHTML = copyrightNode.firstChild.nodeValue + innerHTMLExt;
  272. }
  273. let addForumCommentElement = document.querySelectorAll('#forum-comments h2.comment-form, #forum-comments noscript, #forum-comments #comment-form');
  274. if (addForumCommentElement.length > 0) { // Wrap forum's "Add new comment" section in a block
  275. let commentBlock = document.createElement('div');
  276. commentBlock.id = 'add-forum-comment-block';
  277. addForumCommentElement.forEach(elem => {
  278. commentBlock.appendChild(elem);
  279. });
  280. document.getElementById('forum-comments').appendChild(commentBlock);
  281. }
  282. // CSS Override
  283. let styleOverride = document.createElement('style');
  284. styleOverride.id = 'xtension-css';
  285. styleOverride.innerHTML = `
  286. .node.node-teaser,
  287. .node.node-sidebar_teaser,
  288. .node.node-teaser i,
  289. .node.node-sidebar_teaser i,
  290. .node.node-teaser img,
  291. .node.node-sidebar_teaser img {
  292. transition: 0.15s!important;
  293. }
  294.  
  295. /*
  296. .node.node-teaser img,
  297. .node.node-sidebar_teaser img {
  298. filter: contrast(0)!important;
  299. }
  300. */
  301.  
  302. .node.node-teaser h3.title,
  303. .node.node-sidebar_teaser h3.title {
  304. height: auto!important;
  305. white-space: nowrap!important;
  306. text-overflow: ellipsis!important;
  307. }
  308.  
  309. .node.node-teaser:hover,
  310. .node.node-sidebar_teaser:hover {
  311. box-shadow: 3pt 12pt 12pt -6pt #0004;
  312. transform: rotate3d(0.9, -0.1, 0.1, 3deg) scale(1.02);
  313. z-index: 42;
  314. }
  315.  
  316. .node.node-teaser.flair-fire:hover,
  317. .node.node-sidebar_teaser.flair-fire:hover {
  318. border-color: #f40a;
  319. }
  320.  
  321. .node.node-teaser.flair-star:hover,
  322. .node.node-sidebar_teaser.flair-star:hover {
  323. transform: rotate3d(-0.9, 0.1, -0.2, 4.5deg) scale(1.04);
  324. filter: drop-shadow(-0.2em -0.2em 2em #ffe8);
  325. outline: 0.32em solid #fe8;
  326. border: 0;
  327. }
  328.  
  329. .views-responsive-grid.views-responsive-grid-horizontal.views-columns-2 > * {
  330. margin-bottom: 0;
  331. }
  332.  
  333. .node.node-teaser .icon-bg,
  334. .node.node-sidebar_teaser .icon-bg {
  335. width: 100%!important;
  336. position: unset;
  337. margin-top: 0.4em;
  338. padding: 0;
  339. }
  340.  
  341. .node.node-sidebar_teaser .icon-bg {
  342. min-height: 1.35em;
  343. }
  344.  
  345. .node:hover .icon-bg {
  346. background: unset!important;
  347. }
  348.  
  349. .node.node-teaser .left-icon,
  350. .node.node-sidebar_teaser .left-icon {
  351. color: inherit;
  352. margin-left: 0.1em;
  353. font-size: 0.8em;
  354. filter: unset!important;
  355.  
  356. }
  357.  
  358. .node.node-teaser .right-icon,
  359. .node.node-sidebar_teaser .right-icon {
  360. float: left!important;
  361. color: inherit;
  362. margin-left: 0.5em;
  363. font-size: 0.8em;
  364. filter: unset!important;
  365. }
  366.  
  367. .node-image.node-sidebar_teaser .right-icon:first-of-type {
  368. margin-left: 0;
  369. }
  370.  
  371. .node.node-teaser .left-icon.multiple-icon,
  372. .node.node-sidebar_teaser .left-icon.multiple-icon {
  373. float: right!important;
  374. color: inherit;
  375. margin-left: 0.5em;
  376. font-size: 0.8em;
  377. filter: unset!important;
  378. }
  379.  
  380. .node.node-teaser .left-icon.flair-icon,
  381. .node.node-sidebar_teaser .left-icon.flair-icon {
  382. float: right!important;
  383. color: inherit;
  384. margin-right: 0.1em;
  385. font-size: 0.8em;
  386. filter: unset!important;
  387. }
  388.  
  389. .node.node-teaser .right-icon.like-percentage,
  390. .node.node-sidebar_teaser .right-icon.like-percentage {
  391. margin-left: 0.3em;
  392. }
  393.  
  394. .node.node-teaser h3.title {
  395. width: 100%;
  396. height: 2em;
  397. }
  398.  
  399. .node.node-teaser.flair-lock:hover [title="Flair"],
  400. .node.node-sidebar_teaser.flair-lock:hover [title="Flair"] {
  401. color: #bbbf;
  402. }
  403.  
  404. .node.node-teaser.flair-fire:hover [title="Flair"],
  405. .node.node-sidebar_teaser.flair-fire:hover [title="Flair"] {
  406. color: #f40f;
  407. filter: drop-shadow(0.12em -0.16em 0 #f806) drop-shadow(-0.12em -0.04em 0.06em #fd08);
  408. }
  409.  
  410. .node.node-teaser.flair-star:hover [title="Flair"] {
  411. color: #fd4f;
  412. transform: rotate(18deg) scale(3.2);
  413. filter: drop-shadow(1pt 0.5pt 0.5pt #0002) drop-shadow(-0.04em -0.04em 0.1em #ffd8) drop-shadow(0.08em 0.08em 0.02em #fb0f);
  414. }
  415.  
  416. .node.node-sidebar_teaser.flair-star:hover [title="Flair"] {
  417. color: #fd4f;
  418. transform: rotate(18deg) scale(2.4);
  419. filter: drop-shadow(1pt 0.5pt 0.5pt #0002) drop-shadow(-0.04em -0.04em 0.1em #ffd8) drop-shadow(0.12em 0.12em 0.01em #fb0f);
  420. }
  421.  
  422. .node.node-video.node-teaser.flair-lock:hover > div > div div > a > img,
  423. .node.node-video.node-sidebar_teaser.flair-lock:hover > div div > div > a > img {
  424. filter: grayscale(1);
  425. }
  426.  
  427. .node.node-video.node-teaser.flair-fire:hover > div > div div > a > img,
  428. .node.node-video.node-sidebar_teaser.flair-fire:hover > div > div div > a > img {
  429. filter: sepia(0.3) contrast(1.25) hue-rotate(-15deg) saturate(1.25);
  430. }
  431.  
  432. .node.node-video.node-teaser.flair-star:hover > div > div div > a > img,
  433. .node.node-video.node-sidebar_teaser.flair-star:hover > div > div div > a > img {
  434. filter: sepia(0.5) brightness(1.1) contrast(1.25) saturate(1.5);
  435. }
  436.  
  437. .node.node-teaser .blankimg,
  438. .node.node-sidebar_teaser .blankimg {
  439. display: block;
  440. border: #ccc 0.5pt dashed;
  441. }
  442.  
  443. .node.node-teaser .blankimg > img,
  444. .node.node-sidebar_teaser .blankimg > img {
  445. filter: opacity(0);
  446. }
  447.  
  448. .video-js .vjs-play-progress:before {
  449. top: -40%;
  450. color: #fffd;
  451. font-size: 1.8em;
  452. box-shadow: 0 8pt 8pt -4pt #0006;
  453. }
  454.  
  455. .video-js .vjs-volume-level:before {
  456. display: none;
  457. }
  458.  
  459. body.front #wrapper > section > .container,
  460. body.page-node-add form,
  461. body.page-node-edit form,
  462. body.page-user-friends #content > .container,
  463. body.page-user-liked #content > .container,
  464. body.page-subscriptions #content > .container,
  465. body.page-my-content #content > .container,
  466. body.page-messages #content > .container,
  467. body.page-user-edit form,
  468. body.page-comment #content > .container,
  469. body.page-forum #content > .container,
  470. body.node-type-video .node.node-video > .content,
  471. body.node-type-image .node.node-image > .content,
  472. #comments,
  473. #add-forum-comment-block,
  474. .region.region-content .view-id-profile,
  475. .node.node-journal,
  476. [class*="block-views"],
  477. .sidebar .block.block-facetapi,
  478. .sidebar .block.block-mainblocks {
  479. background-color: #fafafa;
  480. border: 1px solid #ccc;
  481. border-radius: 4px!important;
  482. padding: 0.8em!important;
  483. margin: 0.5em 0.5em 1em 0.5em!important;
  484. }
  485.  
  486. body.page-user #content {
  487. background-attachment: fixed;
  488. }
  489.  
  490. body.page-user- #content > .container {
  491. background-color: #eee8;
  492. }
  493.  
  494. body.page-user [class*="block-views"],
  495. body.page-user .sidebar .block.block-views,
  496. #block-mainblocks-user-connect,
  497. body.page-user #comments {
  498. background-color: #fafafad0;
  499. }
  500.  
  501. body.page-node-add form,
  502. body.page-node-edit form {
  503. background-color: #ffffff;
  504. }
  505.  
  506. body.front #wrapper > section > .container,
  507. body.page-user-friends #content > .container,
  508. body.page-user-liked #content > .container,
  509. body.page-subscriptions #content > .container,
  510. body.page-my-content #content > .container,
  511. body.page-messages #content > .container,
  512. body.page-user-edit form,
  513. body.page-comment #content > .container,
  514. body.page-forum #content > .container {
  515. margin-left: auto!important;
  516. margin-right: auto!important;
  517. }
  518.  
  519. body.node-type-video .node.node-video .node-info .node-views .glyphicon.glyphicon-heart,
  520. body.node-type-image .node.node-image .node-info .node-views .glyphicon.glyphicon-heart {
  521. margin-left: 0.5em;
  522. }
  523.  
  524. .node.node-wide_teaser {
  525. padding: 0.8em!important;
  526. margin: 0.5em 0.5em 1em 0.5em!important;
  527. }
  528.  
  529. .forum-post {
  530. margin: 0.5em 0.5em 1em 0.5em!important;
  531. }
  532.  
  533. .forum-post > .panel-heading > .text-muted {
  534. color: #0008;
  535. }
  536.  
  537. body.node-type-video .node.node-video > .content,
  538. body.node-type-image .node.node-image > .content {
  539. padding: 0!important;
  540. }
  541.  
  542. body.node-type-video .node.node-video > .content > .node-buttons,
  543. body.node-type-image .node.node-image > .content > .node-buttons {
  544. margin-bottom: 0;
  545. }
  546.  
  547. body.node-type-video .node.node-video > .content > .well {
  548. max-width: 100%!important;
  549. margin: 0;
  550. }
  551.  
  552. .node-journal #comments {
  553. border: unset;
  554. }
  555.  
  556. .view-profile.view-display-id-block {
  557. background-color: unset;
  558. padding: unset;
  559. box-shadow: unset;
  560. }
  561.  
  562. #block-views-profile-block {
  563. background-color: #fafafa;
  564. box-shadow: 2pt 8pt 8pt -4pt #0004;
  565. }
  566.  
  567. .region.region-sidebar .view-id-profile .views-responsive-grid > .views-row > div img,
  568. .region.region-content .view-id-profile .views-responsive-grid > .views-row > div img {
  569. border-radius: 50%;
  570. overflow: hidden;
  571. border: #0001 0.2em solid;
  572. }
  573.  
  574. h1 {
  575. padding: 0.25em;
  576. margin: 0;
  577. }
  578.  
  579. #comments > h2.title {
  580. padding: 0.4em;
  581. margin-bottom: 0.8em;
  582. }
  583. #add-forum-comment-block > h2 {
  584. padding: 0.4em 0;
  585. }
  586. `;
  587. document.head.appendChild(styleOverride);
  588. }
  589. document.body.removeAttribute('hidden');
  590. }, true);