Sleazy Fork is available in English.

Iwara UI Fix + 1-Click Filter Xtension

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

目前为 2020-03-01 提交的版本。查看 最新版本

  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') && document.body) {
  44. document.body.hidden = true;
  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 = null;
  236. if (title) {
  237. url = title.getAttribute('href');
  238. blankImage.setAttribute('title', title.innerText);
  239. }
  240. if (url) {
  241. blankImage.setAttribute('href', url);
  242. }
  243. blankImage.className += 'blankimg';
  244. if (card.className.match('node-sidebar_teaser')) {
  245. blankImage.innerHTML = '<img width="141" height="84"></img>';
  246. }
  247. else if (card.className.match('node-teaser')) {
  248. blankImage.innerHTML = '<img width="220" height="150"></img>';
  249. }
  250. card.querySelector('.field-items > .field-item').appendChild(blankImage);
  251. }
  252. });
  253.  
  254. 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');
  255. if (contentInfo) { // Add like percentage for a video/image page
  256. let heartIcon = contentInfo.querySelector('.glyphicon.glyphicon-heart');
  257. if (heartIcon) {
  258. let eyeIcon = contentInfo.querySelector('.glyphicon.glyphicon-eye-open');
  259. let viewCount = parseInt(eyeIcon.nextSibling.nodeValue.replace(',', ''));
  260. let like = parseInt(heartIcon.nextSibling.nodeValue.replace(',', ''));
  261. let likePercentage = (viewCount == 0) ? 0 : parseFloat(like / viewCount * 100).toFixed(4);
  262. heartIcon.nextSibling.nodeValue = ' ' + like + ' (' + likePercentage + '%)';
  263. contentInfo.appendChild(contentInfo.querySelector('.glyphicon.glyphicon-heart'));
  264. contentInfo.appendChild(contentInfo.querySelector('.glyphicon.glyphicon-eye-open').previousSibling);
  265. }
  266. }
  267.  
  268. let copyrightNode = document.querySelector('footer .copyright');
  269. if (copyrightNode) { // Add script credits
  270. 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>';
  271. if (baseScriptRecommended) {
  272. 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>.';
  273. }
  274. copyrightNode.innerHTML = copyrightNode.firstChild.nodeValue + innerHTMLExt;
  275. }
  276. let addForumCommentElement = document.querySelectorAll('#forum-comments h2.comment-form, #forum-comments noscript, #forum-comments #comment-form');
  277. if (addForumCommentElement.length > 0) { // Wrap forum's "Add new comment" section in a block
  278. let commentBlock = document.createElement('div');
  279. commentBlock.id = 'add-forum-comment-block';
  280. addForumCommentElement.forEach(elem => {
  281. commentBlock.appendChild(elem);
  282. });
  283. document.getElementById('forum-comments').appendChild(commentBlock);
  284. }
  285. // CSS Override
  286. let styleOverride = document.createElement('style');
  287. styleOverride.id = 'xtension-css';
  288. styleOverride.innerHTML = `
  289. .node.node-teaser,
  290. .node.node-sidebar_teaser,
  291. .node.node-teaser i,
  292. .node.node-sidebar_teaser i,
  293. .node.node-teaser img,
  294. .node.node-sidebar_teaser img {
  295. transition: 0.15s!important;
  296. }
  297.  
  298. /*
  299. .node.node-teaser img,
  300. .node.node-sidebar_teaser img {
  301. filter: contrast(0)!important;
  302. }
  303. */
  304.  
  305. .node.node-teaser h3.title,
  306. .node.node-sidebar_teaser h3.title {
  307. height: auto!important;
  308. white-space: nowrap!important;
  309. text-overflow: ellipsis!important;
  310. }
  311.  
  312. .node.node-teaser:hover,
  313. .node.node-sidebar_teaser:hover {
  314. box-shadow: 3pt 12pt 12pt -6pt #0004;
  315. transform: rotate3d(0.9, -0.1, 0.1, 3deg) scale(1.02);
  316. z-index: 42;
  317. }
  318.  
  319. .node.node-teaser.flair-fire:hover,
  320. .node.node-sidebar_teaser.flair-fire:hover {
  321. transform: rotate3d(0.9, -0.1, 0.1, -4.5deg) scale(1.02);
  322. border-color: #f40a;
  323. }
  324.  
  325. .node.node-teaser.flair-star:hover,
  326. .node.node-sidebar_teaser.flair-star:hover {
  327. transform: rotate3d(-0.9, 0.1, -0.2, 4.5deg) scale(1.04);
  328. filter: drop-shadow(-0.2em -0.2em 2em #ffe8);
  329. outline: 0.32em solid #fe8;
  330. border: 0;
  331. }
  332.  
  333. .views-responsive-grid.views-responsive-grid-horizontal.views-columns-2 > * {
  334. margin-bottom: 0;
  335. }
  336.  
  337. .node.node-teaser .icon-bg,
  338. .node.node-sidebar_teaser .icon-bg {
  339. width: 100%!important;
  340. position: unset;
  341. margin-top: 0.4em;
  342. padding: 0;
  343. }
  344.  
  345. .node.node-sidebar_teaser .icon-bg {
  346. min-height: 1.35em;
  347. }
  348.  
  349. .node:hover .icon-bg {
  350. background: unset!important;
  351. }
  352.  
  353. .node.node-teaser .left-icon,
  354. .node.node-sidebar_teaser .left-icon {
  355. color: inherit;
  356. margin-left: 0.1em;
  357. font-size: 0.8em;
  358. filter: unset!important;
  359.  
  360. }
  361.  
  362. .node.node-teaser .right-icon,
  363. .node.node-sidebar_teaser .right-icon {
  364. float: left!important;
  365. color: inherit;
  366. margin-left: 0.5em;
  367. font-size: 0.8em;
  368. filter: unset!important;
  369. }
  370.  
  371. .node-image.node-sidebar_teaser .right-icon:first-of-type {
  372. margin-left: 0;
  373. }
  374.  
  375. .node.node-teaser .left-icon.multiple-icon,
  376. .node.node-sidebar_teaser .left-icon.multiple-icon {
  377. float: right!important;
  378. color: inherit;
  379. margin-left: 0.5em;
  380. font-size: 0.8em;
  381. filter: unset!important;
  382. }
  383.  
  384. .node.node-teaser .left-icon.flair-icon,
  385. .node.node-sidebar_teaser .left-icon.flair-icon {
  386. float: right!important;
  387. color: inherit;
  388. margin-right: 0.1em;
  389. font-size: 0.8em;
  390. filter: unset!important;
  391. }
  392.  
  393. .node.node-teaser .right-icon.like-percentage,
  394. .node.node-sidebar_teaser .right-icon.like-percentage {
  395. margin-left: 0.3em;
  396. }
  397.  
  398. .node.node-teaser h3.title {
  399. width: 100%;
  400. height: 2em;
  401. }
  402.  
  403. .node.node-teaser.flair-lock:hover [title="Flair"],
  404. .node.node-sidebar_teaser.flair-lock:hover [title="Flair"] {
  405. color: #bbbf;
  406. }
  407.  
  408. .node.node-teaser.flair-fire:hover [title="Flair"],
  409. .node.node-sidebar_teaser.flair-fire:hover [title="Flair"] {
  410. color: #f40f;
  411. filter: drop-shadow(0.12em -0.16em 0 #f806) drop-shadow(-0.12em -0.04em 0.06em #fd08);
  412. }
  413.  
  414. .node.node-teaser.flair-star:hover [title="Flair"] {
  415. color: #fd4f;
  416. transform: rotate(18deg) scale(3.2);
  417. 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);
  418. }
  419.  
  420. .node.node-sidebar_teaser.flair-star:hover [title="Flair"] {
  421. color: #fd4f;
  422. transform: rotate(18deg) scale(2.4);
  423. 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);
  424. }
  425.  
  426. .node.node-video.node-teaser.flair-lock:hover > div > div div > a > img,
  427. .node.node-video.node-sidebar_teaser.flair-lock:hover > div div > div > a > img {
  428. filter: grayscale(1);
  429. }
  430.  
  431. .node.node-video.node-teaser.flair-fire:hover > div > div div > a > img,
  432. .node.node-video.node-sidebar_teaser.flair-fire:hover > div > div div > a > img {
  433. filter: sepia(0.3) contrast(1.25) hue-rotate(-15deg) saturate(1.25);
  434. }
  435.  
  436. .node.node-video.node-teaser.flair-star:hover > div > div div > a > img,
  437. .node.node-video.node-sidebar_teaser.flair-star:hover > div > div div > a > img {
  438. filter: sepia(0.5) brightness(1.1) contrast(1.25) saturate(1.5);
  439. }
  440.  
  441. .node.node-teaser .blankimg,
  442. .node.node-sidebar_teaser .blankimg {
  443. display: block;
  444. border: #ccc 0.5pt dashed;
  445. }
  446.  
  447. .node.node-teaser .blankimg > img,
  448. .node.node-sidebar_teaser .blankimg > img {
  449. filter: opacity(0);
  450. }
  451.  
  452. .video-js .vjs-play-progress:before {
  453. top: -40%;
  454. color: #fffd;
  455. font-size: 1.8em;
  456. box-shadow: 0 8pt 8pt -4pt #0006;
  457. }
  458.  
  459. .video-js .vjs-volume-level:before {
  460. display: none;
  461. }
  462.  
  463. body.front #wrapper > section > .container,
  464. body.page-node-add form,
  465. body.page-node-edit form,
  466. body.page-user-friends #content > .container,
  467. body.page-user-liked #content > .container,
  468. body.page-subscriptions #content > .container,
  469. body.page-my-content #content > .container,
  470. body.page-messages #content > .container,
  471. body.page-user-edit form,
  472. body.page-comment #content > .container,
  473. body.page-forum #content > .container,
  474. body.node-type-video .node.node-video > .content,
  475. body.node-type-image .node.node-image > .content,
  476. #comments,
  477. #add-forum-comment-block,
  478. .region.region-content .view-id-profile,
  479. .node.node-journal,
  480. [class*="block-views"],
  481. .sidebar .block.block-facetapi,
  482. .sidebar .block.block-mainblocks {
  483. background-color: #fafafa;
  484. border: 1px solid #ccc;
  485. border-radius: 4px!important;
  486. padding: 0.8em!important;
  487. margin: 0.5em 0.5em 1em 0.5em!important;
  488. }
  489.  
  490. body.page-user #content {
  491. background-attachment: fixed;
  492. }
  493.  
  494. body.page-user- #content > .container {
  495. background-color: #eee8;
  496. }
  497.  
  498. body.page-user [class*="block-views"],
  499. body.page-user .sidebar .block.block-views,
  500. #block-mainblocks-user-connect,
  501. body.page-user #comments {
  502. background-color: #fafafad0;
  503. }
  504.  
  505. body.page-node-add form,
  506. body.page-node-edit form {
  507. background-color: #ffffff;
  508. }
  509.  
  510. body.front #wrapper > section > .container,
  511. body.page-user-friends #content > .container,
  512. body.page-user-liked #content > .container,
  513. body.page-subscriptions #content > .container,
  514. body.page-my-content #content > .container,
  515. body.page-messages #content > .container,
  516. body.page-user-edit form,
  517. body.page-comment #content > .container,
  518. body.page-forum #content > .container {
  519. margin-left: auto!important;
  520. margin-right: auto!important;
  521. }
  522.  
  523. body.node-type-video .node.node-video .node-info .node-views .glyphicon.glyphicon-heart,
  524. body.node-type-image .node.node-image .node-info .node-views .glyphicon.glyphicon-heart {
  525. margin-left: 0.5em;
  526. }
  527.  
  528. .node.node-wide_teaser {
  529. padding: 0.8em!important;
  530. margin: 0.5em 0.5em 1em 0.5em!important;
  531. }
  532.  
  533. .forum-post {
  534. margin: 0.5em 0.5em 1em 0.5em!important;
  535. }
  536.  
  537. .forum-post > .panel-heading > .text-muted {
  538. color: #0008;
  539. }
  540.  
  541. body.node-type-video .node.node-video > .content,
  542. body.node-type-image .node.node-image > .content {
  543. padding: 0!important;
  544. }
  545.  
  546. body.node-type-video .node.node-video > .content > .node-buttons,
  547. body.node-type-image .node.node-image > .content > .node-buttons {
  548. margin-bottom: 0;
  549. }
  550.  
  551. body.node-type-video .node.node-video > .content > .well {
  552. max-width: 100%!important;
  553. margin: 0;
  554. }
  555.  
  556. .node-journal #comments {
  557. border: unset;
  558. }
  559.  
  560. .view-profile.view-display-id-block {
  561. background-color: unset;
  562. padding: unset;
  563. box-shadow: unset;
  564. }
  565.  
  566. #block-views-profile-block {
  567. background-color: #fafafa;
  568. box-shadow: 2pt 8pt 8pt -4pt #0004;
  569. }
  570.  
  571. .region.region-sidebar .view-id-profile .views-responsive-grid > .views-row > div img,
  572. .region.region-content .view-id-profile .views-responsive-grid > .views-row > div img {
  573. border-radius: 50%;
  574. overflow: hidden;
  575. border: #0001 0.2em solid;
  576. }
  577.  
  578. h1 {
  579. padding: 0.25em;
  580. margin: 0;
  581. }
  582.  
  583. #comments > h2.title {
  584. padding: 0.4em;
  585. margin-bottom: 0.8em;
  586. }
  587. #add-forum-comment-block > h2 {
  588. padding: 0.4em 0;
  589. }
  590. `;
  591. document.head.appendChild(styleOverride);
  592. }
  593. document.body.hidden = false;
  594. }, true);