Guest User

Shemmy Improved V1.1

a guest
Feb 1st, 2024
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.04 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Shemmy Improved
  3. // @namespace shemmy-x
  4. // @match http*://soygem.party/*
  5. // @version 0.9
  6. // @author Garteen
  7. // @license MIT
  8. // @icon https://booru.soy/_images/476f11d51ef81dbaac9a9c55c5bc35f1/28714%20-%20SoyBooru.jpg
  9. // @description General improvements for soygem.party
  10.  
  11. // ==/UserScript==
  12. const board = document.querySelector("form[name='post'] input[name='board']").value
  13. const postButton = document.querySelector("form[name='post'] input[name='post']")
  14. const autoButton = document.createElement('input')
  15. const diffDisplay = document.createElement('input')
  16. const latestDisplay = document.createElement('input')
  17.  
  18. let target = 0
  19. let latest
  20. let diff
  21.  
  22. addButtons()
  23. main()
  24.  
  25. async function main() {
  26. while(true) {
  27. poll()
  28. if (diff < 5 && diff > 0) {
  29. await sleep(200)
  30. }
  31. else if (diff > 25 || diff < 0){
  32. await sleep(3000)
  33. }
  34. else {
  35. await sleep(1000)
  36. }
  37. }
  38. }
  39.  
  40. async function autoPost() {
  41. if (autoButton.checked == true && diff == 1) {
  42. postButton.click()
  43. autoButton.checked = false
  44. console.log("posted, hopefully you got that GET")
  45. }
  46. }
  47.  
  48. async function poll() {
  49. latest = await getLatestPost(board)
  50. diff = target - latest
  51.  
  52. autoPost()
  53. updateUI()
  54. }
  55.  
  56. function updateUI() {
  57. latestDisplay.value = "No. " + latest
  58. if (target > latest) {
  59. diffDisplay.value = "Posts till GET: " + diff
  60. }
  61. else {
  62. diffDisplay.value = "Posts till GET: " + "N/A"
  63. }
  64. }
  65.  
  66.  
  67. async function getLatestPost(board) {
  68. let postNo = 0
  69.  
  70. const url = document.location.origin + "/" + board + "/" + "0.json"
  71. const response = await fetch(url)
  72.  
  73. data = await response.json()
  74. for (i = 0; i < data.threads.length - 1; i++) {
  75. const posts = data.threads[i].posts
  76. if (posts[posts.length - 1].no > postNo) {
  77. postNo = posts[posts.length - 1].no
  78. }
  79. else if (posts[0].sticky != 1) {
  80. break
  81. }
  82. }
  83.  
  84. return postNo
  85. }
  86.  
  87. function findNextRepeating(num, count) {
  88. num += 1
  89. const digits = getLastDigits(num, count)
  90. let repeating = true
  91. for (i = 0; i < digits.length-1; i++) {
  92. if (digits[i] != digits[i+1]) {
  93. repeating = false
  94. break
  95. }
  96. }
  97. if (repeating == false) {
  98. num = findNextRepeating(num, count)
  99. }
  100. return num
  101. }
  102.  
  103. function getLastDigits(num, count) {
  104. const digits = Array(count)
  105. for (i = 1; i <= count; i++) {
  106. let digit = num % (10**i)
  107. if (i > 1) {
  108. digit = digit / (10**(i-1))
  109. }
  110. digits[i-1] = Math.trunc(digit)
  111. }
  112. return digits
  113. }
  114.  
  115. function setRepeating(num) {
  116. target = findNextRepeating(latest, num)
  117. document.getElementById('target-input').value = target
  118. poll()
  119. }
  120.  
  121. function sleep(ms) {
  122. return new Promise(resolve => setTimeout(resolve, ms));
  123. }
  124.  
  125. function addButtons() {
  126. const postForm = document.getElementsByName('post')[0]
  127. const container = document.createElement('div')
  128. container.setAttribute('style', 'margin-left : 25%; width: 50%; text-align: center')
  129.  
  130. latestDisplay.setAttribute('id', 'latest-display')
  131. latestDisplay.setAttribute('readonly', true)
  132. latestDisplay.setAttribute('title', 'Latest post number')
  133. latestDisplay.value = "No. "
  134.  
  135. diffDisplay.setAttribute('id', 'diff-display')
  136. diffDisplay.setAttribute('readonly', true)
  137. diffDisplay.value = "Posts till GET: "
  138.  
  139. const targetInput = document.createElement('input')
  140. targetInput.setAttribute('name', 'target-input')
  141. targetInput.setAttribute('id', 'target-input')
  142. targetInput.setAttribute('type', 'number')
  143. targetInput.setAttribute('min', 1)
  144. targetInput.setAttribute('placeholder', 'Target Post Number')
  145. targetInput.addEventListener("input", function(){ target = targetInput.value; poll(); })
  146.  
  147. autoButton.setAttribute('name', 'auto-button')
  148. autoButton.setAttribute('id', 'auto-button')
  149. autoButton.setAttribute('type', 'checkbox')
  150. const autoLabel = document.createElement('label')
  151. autoLabel.setAttribute('for', 'auto-button')
  152. autoLabel.innerHTML = "Auto Post"
  153.  
  154. const dubsButton = document.createElement('input')
  155. dubsButton.setAttribute('id', 'dubs-button')
  156. dubsButton.setAttribute('type', 'button')
  157. dubsButton.setAttribute('value', 'Dubs')
  158. dubsButton.addEventListener("click", function(){ setRepeating(2); })
  159.  
  160. const tripsButton = document.createElement('input')
  161. tripsButton.setAttribute('id', 'trips-button')
  162. tripsButton.setAttribute('type', 'button')
  163. tripsButton.setAttribute('value', 'Trips')
  164. tripsButton.addEventListener("click", function(){ setRepeating(3); })
  165.  
  166. const quadsButton = document.createElement('input')
  167. quadsButton.setAttribute('id', 'quads-button')
  168. quadsButton.setAttribute('type', 'button')
  169. quadsButton.setAttribute('value', 'Quads')
  170. quadsButton.addEventListener("click", function(){ setRepeating(4); })
  171.  
  172. container.appendChild(latestDisplay)
  173. container.appendChild(diffDisplay)
  174.  
  175. container.appendChild(document.createElement('div'))
  176.  
  177. container.appendChild(dubsButton)
  178. container.appendChild(tripsButton)
  179. container.appendChild(quadsButton)
  180.  
  181. container.appendChild(targetInput)
  182. container.appendChild(autoButton)
  183. container.appendChild(autoLabel)
  184.  
  185. postForm.parentNode.insertBefore(container, postForm.nextSibling)
  186. }
  187.  
  188. // <reddit space
  189. // <reddit space
  190. // <reddit space
  191.  
  192. (function () {
  193. function insert_after(new_node, ref_node) {
  194. ref_node.parentNode.insertBefore(new_node, ref_node.nextSibling);
  195. }
  196. function mass_reply() {
  197. let form_textarea = document.getElementById('body');
  198.  
  199. let post_no_nodes = document.getElementsByClassName("post_no");
  200. for(const node of post_no_nodes) {
  201. let post_no_text = node.textContent;
  202. if(!post_no_text.includes("No")) {
  203. form_textarea.value += `>>${post_no_text}\n`;
  204. }
  205. }
  206. form_textarea.focus();
  207. }
  208.  
  209. function add_button() {
  210. let ref_node = document.querySelectorAll(".op .intro .post_no")[1];
  211. let button = document.createElement("input");
  212. button.type = "button";
  213. button.value = "Mass Reply";
  214. button.style.marginLeft = "5px";
  215. button.addEventListener("click", function() {
  216. mass_reply();
  217. }, false);
  218.  
  219. insert_after(button, ref_node);
  220. }
  221.  
  222. add_button();
  223. })();
  224.  
  225. // <reddit space
  226. // <reddit space
  227. // <reddit space
  228.  
  229. (function ShemmyX() {
  230. // true = hide posts where the e-mail is "sage".
  231. const _hideMailtoSage = true;
  232.  
  233. // true = scrub email, trip, and force all names to be "Chud".
  234. // - Emailfags and tripfags are already hidden.
  235. // - Namefags aren't hidden, but turning this on will anonymize them.
  236. // false = don't change posts (default).
  237. const _enableForcedAnonymity = false;
  238.  
  239. // Sets the limit for a post to be considered a flood post.
  240. // If one of the criteria is met, the post is hidden.
  241. const floodThresholdLines = 30;
  242. const floodThresholdCharacters = 3000;
  243.  
  244. hidePosts();
  245. forcedAnonymity(); // Must come AFTER hidePosts()
  246. highlightTripleParentheses();
  247. highlightDatamining();
  248. inlineYoutubePreviews();
  249. replaceCoalAndGemsWithIcon();
  250. replaceBumpAndSageWithIcons();
  251.  
  252. function hidePosts() {
  253. $(".post").each((i, el) => {
  254. const $el = $(el);
  255. const reasons = [];
  256.  
  257. const isOp = $el.hasClass("op");
  258.  
  259. if ($el.has(".trip").length) {
  260. reasons.push("tripfag");
  261. }
  262. if (_hideMailtoSage && $el.has('a.email[href^="mailto:sage"]').length) {
  263. reasons.push("sagefag");
  264. }
  265. if ($el.has('a.email:not([href^="mailto:sage"])').length) {
  266. reasons.push("emailfag");
  267. }
  268.  
  269. const body = $el.has(".body");
  270. const bodyLines = body.html().split("<br>").length;
  271. const bodyLength = body.text().length;
  272.  
  273. if (
  274. bodyLines > floodThresholdLines ||
  275. bodyLength > floodThresholdCharacters
  276. ) {
  277. reasons.push(
  278. `possible flooding: ${bodyLength} characters in ${bodyLines} lines`
  279. );
  280. }
  281.  
  282. if (reasons.length) {
  283. const $notice = $("<div>")
  284. .addClass(`post ${isOp ? "op" : "reply"}`)
  285. .html(
  286. `<div class='body'><em>Post hidden (${reasons.join(
  287. ", "
  288. )}). Click to show.</em></div>`
  289. )
  290. .after($("<br>"));
  291. $notice.click(() => {
  292. $el.show();
  293. if (isOp) $el.prev(".files").show();
  294. $notice.hide();
  295. });
  296. $el.after($notice);
  297. $el.hide();
  298. if (isOp) $el.prev(".files").hide();
  299. }
  300. });
  301. }
  302.  
  303. function forcedAnonymity() {
  304. if (!_enableForcedAnonymity) return;
  305. // Remove all emails.
  306. $("a.email").prop("outerHTML", "<span class='name'>Chud</span>");
  307. // Remove all tripcodes.
  308. $(".trip").prop("outerHTML", "");
  309. // Set all names to Chud.
  310. // Make sure not to overwrite (You)'s.
  311. $(".name")
  312. .filter((i, el) => !$(el).has(".own_post").length)
  313. .text("Chud");
  314. }
  315.  
  316. function replaceWordWithIcon(re, icon) {
  317. const matchesRe = (index, post) => $(post).html().match(re);
  318.  
  319. const template = (match) =>
  320. `<img src="${icon}" style="max-height:2em; vertical-align:middle">`;
  321.  
  322. const applyTemplate = (index, post) => {
  323. const $post = $(post);
  324. const html = $post.html();
  325. $post.html(html.replace(re, template));
  326. };
  327.  
  328. $("div.body").filter(matchesRe).each(applyTemplate);
  329. }
  330.  
  331. function replaceCoalAndGemsWithIcon() {
  332. replaceWordWithIcon(/coal/gi, "https://i.imgur.com/O9iRcRv.png");
  333. replaceWordWithIcon(/gems?/gi, "https://i.imgur.com/BvjFdau.png");
  334. }
  335.  
  336. function replaceBumpAndSageWithIcons() {
  337. // replaceWordWithIcon(/bump/gi, "https://i.imgur.com/zM2xOGh.png");
  338. // replaceWordWithIcon(/sage/gi, "https://i.imgur.com/2bsauzj.png");
  339. replaceWordWithIcon(/bump/gi, "https://i.imgur.com/Y7cpsW0.png");
  340. replaceWordWithIcon(/\bsage\b/gi, "https://i.imgur.com/ZarQtY3.png");
  341. }
  342.  
  343. function highlightTripleParentheses() {
  344. const re = /\(\(\(.+?\)\)\)/g;
  345. const hasRe = (i, post) => post.innerHTML.match(re);
  346.  
  347. const template = (match) =>
  348. `<span style='background-color:white;color:#0038B8;font-family:monospace;'>${match}</span>`;
  349. const applyTemplate = (i, post) => {
  350. post.innerHTML = post.innerHTML.replace(re, template);
  351. };
  352.  
  353. $("div.body").filter(hasRe).each(applyTemplate);
  354. }
  355.  
  356. function highlightDatamining() {
  357. const reGlowie =
  358. /data(\s*|-)min(ing|er|ed)|(sell|selling|sold)\s+(my|our)?\s+data|cuckflare|cloudflare|cloud fleur/i;
  359. const hasReGlowie = (i, post) => post.innerHTML.match(reGlowie);
  360. const applyTemplate = (i, post) =>
  361. $(post).css({
  362. backgroundColor: "#D7EFD7",
  363. boxShadow: "#66FF66 0 0 2rem 0",
  364. });
  365. $(".reply").filter(hasReGlowie).each(applyTemplate);
  366. }
  367.  
  368. function inlineYoutubePreviews() {
  369. const re = /(?:youtu\.be\/|\/watch\?v=)(.{11})/;
  370. const previewTemplate = (videoId) =>
  371. `<a href="https://youtube.com/watch?v=${videoId}">https://youtube.com/watch?v=${videoId}</a><br><img style="max-width:255px;max-height:255px" src="https://i.ytimg.com/vi/${videoId}/hqdefault.jpg" /><br><em>Watch on <a href="https://yewtu.be/${videoId}">Invidious</a> (less datamining)</em><br>`;
  372. $(".body a")
  373. .filter(function (i) {
  374. return $(this).prop("href").match(re);
  375. })
  376. .each(function (i) {
  377. $(this).prop("outerHTML", previewTemplate(this.href.match(re)[1]));
  378. });
  379. }
  380. })();
  381.  
  382. // <reddit space
  383. // <reddit space
  384. // <reddit space
  385.  
  386. const version = "v1.0";
  387. console.log(`Garty Themes ${version}`);
  388.  
  389. const namespace = "GartyThemes.";
  390. function setValue(key, value) {
  391. if (key == "hiddenthreads" || key == "hiddenimages") {
  392. if (typeof GM_setValue == "function") {
  393. GM_setValue(key, value);
  394. }
  395. localStorage.setItem(key, value);
  396. } else {
  397. if (typeof GM_setValue == "function") {
  398. GM_setValue(namespace + key, value);
  399. } else {
  400. localStorage.setItem(namespace + key, value);
  401. }
  402. }
  403. }
  404.  
  405. function getValue(key) {
  406. if (key == "hiddenthreads" || key == "hiddenimages") {
  407. if (typeof GM_getValue == "function" && GM_getValue(key)) {
  408. localStorage.setItem(key, GM_getValue(key).toString());
  409. }
  410. return localStorage.getItem(key);
  411. }
  412. if (typeof GM_getValue == "function") {
  413. return GM_getValue(namespace + key);
  414. } else {
  415. return localStorage.getItem(namespace + key);
  416. }
  417. }
  418.  
  419. function themeEnabled(key) {
  420. let value = getValue(key);
  421. if (value == null) {
  422. value = optionsEntries[key][2];
  423. setValue(key, value);
  424. }
  425. return value.toString() == "true";
  426. }
  427.  
  428. function getNumber(key) {
  429. let value = parseInt(getValue(key));
  430. if (Number.isNaN(value)) {
  431. value = 0;
  432. }
  433. return value;
  434. }
  435.  
  436. function getJson(key) {
  437. let value = getValue(key);
  438. if (value == null) {
  439. value = "{}";
  440. }
  441. return JSON.parse(value);
  442. }
  443.  
  444. function addToJson(key, jsonKey, value) {
  445. let json = getJson(key);
  446. let parent = json;
  447. jsonKey.split(".").forEach((e, index, array) => {
  448. if (index < array.length - 1) {
  449. if (!parent.hasOwnProperty(e)) {
  450. parent[e] = {};
  451. }
  452. parent = parent[e];
  453. } else {
  454. parent[e] = value;
  455. }
  456. });
  457. setValue(key, JSON.stringify(json));
  458. return json;
  459. }
  460.  
  461. function removeFromJson(key, jsonKey) {
  462. let json = getJson(key);
  463. let parent = json;
  464. jsonKey.split(".").forEach((e, index, array) => {
  465. if (index < array.length - 1) {
  466. parent = parent[e];
  467. } else {
  468. delete parent[e];
  469. }
  470. });
  471. setValue(key, JSON.stringify(json));
  472. return json;
  473. }
  474.  
  475. function customAlert(a) {
  476. document.body.insertAdjacentHTML("beforeend", `
  477. <div id="alert_handler">
  478. <div id="alert_background" onclick="this.parentNode.remove()"></div>
  479. <div id="alert_div">
  480. <a id='alert_close' href="javascript:void(0)" onclick="this.parentNode.parentNode.remove()"><i class='fa fa-times'></i></a>
  481. <div id="alert_message">${a}</div>
  482. <button class="button alert_button" onclick="this.parentNode.parentNode.remove()">OK</button>
  483. </div>
  484. </div>`);
  485. }
  486.  
  487.  
  488. const optionsEntries = {
  489.  
  490. "underwater": ["checkbox", "Underwater Theme", false],
  491. "soot": ["checkbox", "Soot Theme", false],
  492. "cia": ["checkbox", "CIA Theme", false],
  493. "colorjak": ["checkbox", "Colorjak Theme", false],
  494. "cafe": ["checkbox", "Crystal Theme", false],
  495. "calm": ["checkbox", "Calm Theme", false],
  496. }
  497.  
  498. let options = Options.add_tab("garty-themes", "gear", "Shemmy Themes").content[0];
  499.  
  500.  
  501. let optionsHTML = `<span style="display: block; text-align: center">${version}</span>`;
  502. optionsHTML += `<span style="display: block; text-align: center"><h1></h1></span>`;
  503. for ([optKey, optValue] of Object.entries(optionsEntries)) {
  504. optionsHTML += `<input type="${optValue[0]}" id="${optKey}" name="${optKey}"><label for="${optKey}">${optValue[1]}</label><br>`;
  505. }
  506. options.insertAdjacentHTML("beforeend", optionsHTML);
  507.  
  508. options.querySelectorAll("input[type=checkbox]").forEach(e => {
  509. e.checked = themeEnabled(e.id);
  510. e.addEventListener("change", e => {
  511. setValue(e.target.id, e.target.checked);
  512. });
  513. });
  514.  
  515.  
  516.  
  517.  
  518. document.head.insertAdjacentHTML("beforeend", `
  519. <style>
  520.  
  521.  
  522. ${themeEnabled("calm") ? `
  523. html, body {
  524. background: #fafcff;
  525. background-image: url(https://file.garden/ZCftkBQZY2RSmYgu/sdjasd);
  526. background-position: bottom right;
  527. background-repeat: no-repeat;
  528. background-attachment: fixed;
  529. background-size: 200px;
  530.  
  531. }
  532.  
  533. div.post.reply {
  534. background: #fafcff url('/stylesheets/img/fade-blue.png') margin: 0.3em 6px;
  535. padding: 0.2em 0.3em 0.5em 0.6em;
  536. border-width: 1px;
  537. border-style: none solid solid none;
  538. border-radius: 0.7em;
  539. box-shadow: 0.1rem 0.2rem 0.1rem 0.02rem rgba(1,2,3,.5)
  540. margin-top 20px;
  541. }
  542.  
  543. div.post.reply div.body {
  544. overflow-y: auto;
  545. max-height: 70vh;
  546.  
  547.  
  548. }
  549.  
  550. .intro span.name {
  551. font-style: italic;
  552. color: rgb(129, 123, 204);
  553. }
  554.  
  555. .post-image {
  556. box-shadow: 0.1rem 0.2rem 0.1rem 0.03rem rgba(0,0,0,.2);
  557. }
  558.  
  559. h1 {
  560. font-family: tahoma;
  561. letter-spacing: -2px;
  562. font-size: 20pt;
  563. margin: 0;
  564. text-shadow: 20px;
  565.  
  566. }
  567.  
  568. header div.subtitle, h1 {
  569. color: #9cc3ff;
  570. text-align: center;
  571. text-shadow: 20px;
  572. font-family: Arial, Helvetica, sans-serif;
  573.  
  574.  
  575. }
  576.  
  577. span.heading {
  578. color: #9a2ea1;
  579. font-size: 11pt;
  580. font-weight: bold;
  581. }
  582.  
  583. div.blotter {
  584. color: #9cc3ff;
  585. text-align: center;
  586. }
  587. ` : ""}
  588.  
  589.  
  590. ${themeEnabled("underwater") ? `
  591.  
  592. a:link, a:visited {
  593. text-decoration: none;
  594. color: #00637B;
  595. }
  596.  
  597. a:link:hover, a:visited:hover {
  598. color: #DD0000;
  599. }
  600.  
  601. a.post_no {
  602. color: #000033;
  603. }
  604.  
  605. .intro a.email span.name {
  606. color: #0093AB;
  607. }
  608.  
  609. .intro a.email:hover span.name {
  610. color: #DD0000;
  611. }
  612.  
  613. h2, div.title, h1 {
  614. color: #800000;
  615. }
  616.  
  617. form table tr th {
  618. background: #95D2D3;
  619. }
  620.  
  621. div.banner {
  622. background-color: #E04000;
  623. }
  624.  
  625. div.post.op hr {
  626. border-color: #B7C9D5;
  627. }
  628.  
  629. .intro span.subject {
  630. color: #117743;
  631. font-weight: 800;
  632. }
  633.  
  634. .intro span.name {
  635. color: #117743;
  636. font-weight: 800;
  637. }
  638.  
  639. div.post.reply.highlighted {
  640. background: #a9d8ff;
  641. }
  642.  
  643. div.post.reply {
  644. background: #B6DDDE;
  645. border-color: #8FCCCD;
  646. }
  647.  
  648. div.ban {
  649. border: 1px solid #0093AB;
  650. }
  651.  
  652. div.ban h2 {
  653. background: #B6DDDE;
  654. color: #0093AB;
  655. }
  656.  
  657. div.pages {
  658. color: #8899AA;
  659. background: #B6DDDE;
  660. border-right: 1px solid #8FCCCD;
  661. border-bottom: 1px solid #8FCCCD;
  662. }
  663.  
  664. hr {
  665. border-color: #B7D9C5;
  666. }
  667.  
  668. div.boardlist {
  669. color: #0093AB;
  670. background-color: rgba(65%, 85%, 95%, 0.2);
  671. }
  672.  
  673. .desktop-style div.boardlist:nth-child(1) {
  674. text-shadow: #D2FFEE 1px 1px 1px, #D2FFEE -1px -1px 1px;
  675. }
  676. * {
  677. background-image: url('https://files.catbox.moe/hp03xs.png');
  678. }
  679.  
  680. .soifish {
  681. background-image: url('https://files.catbox.moe/rxmvyr.png');
  682. position: fixed;
  683. pointer-events: none;
  684. -webkit-animation: moveX 30s linear 0s infinite alternate, moveY 30s linear 0s infinite alternate;
  685. -moz-animation: moveX 30s linear 0s infinite alternate, moveY 30s linear 0s infinite alternate;
  686. -o-animation: moveX 30s linear 0s infinite alternate, moveY 30s linear 0s infinite alternate;
  687. animation: moveX 30s linear 0s infinite alternate, moveY 30s linear 0s infinite alternate;
  688. }
  689.  
  690. @-webkit-keyframes moveX {
  691. from { left: 0; } to { left: 100%; }
  692. }
  693. @-moz-keyframes moveX {
  694. from { left: 0; } to { left: 100%; }
  695. }
  696. @-o-keyframes moveX {
  697. from { left: 0; } to { left: 100%; }
  698. }
  699. @keyframes moveX {
  700. from { left: 0; } to { left: 100%; }
  701. }
  702.  
  703. @-webkit-keyframes moveY {
  704. from { top: 0; } to { top: 100%; }
  705. }
  706. @-moz-keyframes moveY {
  707. from { top: 0; } to { top: 100%; }
  708. }
  709. @-o-keyframes moveY {
  710. from { top: 0; } to { top: 100%; }
  711. }
  712. @keyframes moveY {
  713. from { top: 0; } to { top: 100%; }
  714. }
  715.  
  716.  
  717.  
  718. .post.reply .body a:hover:after {
  719. content: url(https://soyjak.download/f.php?h=0lnyi5TW&p=1);
  720. display: block;
  721. position: absolute;
  722. left: 20px;
  723. top: -255px;
  724. pointer-events: none;
  725. z-index: 999;
  726. }
  727.  
  728. .post.reply .body a:hover {
  729. position: relative;
  730. }
  731.  
  732. body:after {
  733. content: url(https://soyjak.download/f.php?h=3EFSgyRY&p=1);
  734. display: block;
  735. position: fixed;
  736. bottom: 0px;
  737. right: 0px;
  738. pointer-events: none;
  739.  
  740. .desktop-style div.boardlist:nth-child(1):hover, .desktop-style div.boardlist:nth-child(1).cb-menu {
  741. background-color: rgba(70%, 95%, 100%, 0.45);
  742. }` : ""}
  743.  
  744.  
  745. ${themeEnabled("soot") ? `
  746. @import url("/stylesheets/dark.css");
  747. /*soot theme*/
  748.  
  749. .name {
  750. color: #FDD73A !important;
  751. }
  752.  
  753. body {
  754. background: black url(https://i.imgur.com/FeQmhfL.png) right bottom no-repeat fixed;
  755. }
  756.  
  757. div.post.reply {
  758. background-color: #646464 !important;
  759. color: black;
  760. border-radius:0;
  761. }
  762.  
  763. div#post-moderation-fields , div#style-select {
  764. padding:4px;
  765. background-color:rgba(0,0,0,28);
  766. }
  767.  
  768. span.heading {
  769. color: #FF565C !important;
  770. }
  771.  
  772. .remove-btn {
  773. color: rgba(255,255,255,128) !important;
  774. }
  775.  
  776. hr {
  777. border-color:transparent;
  778. }
  779.  
  780. ` : ""}
  781.  
  782.  
  783. ${themeEnabled("colorjak") ? `
  784.  
  785. *{
  786. background-image: url('https://soyjak.download/f.php?h=0ubQjIwX&p=1');
  787. }
  788.  
  789. .soifish {
  790. background-image: ('https//files.catbox.moe/rxmvyr.png');
  791. position: absolute;
  792. -webkit-animation: moveX 30s linear 0s infinite alternate, moveY 30s linear 0s infinite alternate;
  793. -moz-animation: moveX 30s linear 0s infinite alternate, moveY 30s linear 0s infinite alternate;
  794. -o-animation: moveX 30s linear 0s infinite alternate, moveY 30s linear 0s infinite alternate;
  795. animation: moveX 30s linear 0s infinite alternate, moveY 30s linear 0s infinite alternate;
  796. }
  797.  
  798. @-webkit-keyframes moveX {
  799. from { left: 0; } to { left: 100%; }
  800. }
  801. @-moz-keyframes moveX {
  802. from { left: 0; } to { left: 100%; }
  803. }
  804. @-o-keyframes moveX {
  805. from { left: 0; } to { left: 100%; }
  806. }
  807. @keyframes moveX {
  808. from { left: 0; } to { left: 100%;}
  809. }
  810.  
  811. @-webkit-keyframes moveY {
  812. from { top: 0; } to { top: 100%; }
  813. }
  814. @-moz-keyframes moveY {
  815. from { top: 0; } to { top: 100%; }
  816. }
  817. @-o-keyframes moveY {
  818. from { top: 0; } to { top: 100%; }
  819. }
  820. @keyframes moveY {
  821. from { top: 0; } to { top: 100%; }
  822. }
  823.  
  824. ` : ""}
  825.  
  826.  
  827. ${themeEnabled("cafe") ? `
  828. body{background:#fdfdfe;color:#666;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;margin:0 8px;padding-left:5px;padding-right:5px}table *{margin:0}a,a:visited{text-decoration:none;color:#2b0f51!important}a.post_no{text-decoration:none;margin:0;padding:0}p.intro a.post_no{color:inherit}p.intro a.post_no,p.intro a.email{margin:0}p.intro a.email span.name{color:#34345c}p.intro a.email:hover span.name{color:red}p.intro label{display:inline}p.intro time,p.intro a.ip-link,p.intro a.capcode{direction:ltr;unicode-bidi:embed}h2{color:#af0a0f;font-size:11pt;margin:0;padding:0}header{margin:1em 0}h1{font-family:tahoma;letter-spacing:-2px;font-size:20pt;margin:0}header div.subtitle,h1{color:#af0a0f;text-align:center}header div.subtitle{font-size:8pt}form{margin-bottom:2em!important}form table{margin:auto}form table input{height:auto}input[type=text],input[type=password],textarea{border:1px solid #a9a9a9;text-indent:0;text-shadow:none;text-transform:none;word-spacing:normal}form table tr td{text-align:left;margin:0;padding:0}form table.mod tr td{padding:2px}form table tr th{text-align:left;padding:4px}form table tr th{background:#98e}form table tr td div{text-align:center;float:left;padding-left:3px}form table tr td div input{display:block;margin:2px auto 0}form table tr td div label{font-size:10px}.unimportant,.unimportant *{font-size:10px}p.fileinfo{display:block;margin:0;padding-right:7em}div.banner{background-color:#ffb0aa;text-align:center;font-size:12pt;font-weight:700;text-align:center;margin:1em 0;padding-bottom:2px}div.banner,div.banner a{color:#fff}div.banner a:hover{color:#eef2ff;text-decoration:none}img.banner{display:block;width:300px;height:100px;border:1px solid #a9a9a9;margin:20px auto 0}img.post-image{display:block;float:left;margin:10px 20px;border:none}div.post img.post-image{padding:5px;margin:5px 20px 0 0}div.post img.icon{display:inline;margin:0 5px;padding:0}div.post i.fa{margin:0 4px;font-size:16px}div.post.op{margin-right:20px;margin-bottom:5px}div.post.op hr{border-color:#d9bfb7}p.intro{margin:.5em 0;padding:0;padding-bottom:.2em}input.delete{float:left;margin:1px 6px 0 0}p.intro span.subject{color:#0f0c5d;font-weight:700}p.intro span.name{color:#117743;font-weight:700}p.intro span.capcode,p.intro a.capcode,p.intro a.nametag{color:#f00000;margin-left:0}p.intro a{margin-left:8px}div.delete{float:right}div.post.reply p{margin:.3em 0 0}div.post.reply div.body{margin-left:1.8em;margin-top:.8em;padding-right:3em;padding-bottom:.3em}div.post.reply.highlighted{background:#d6bad0}div.post.reply div.body a{color:#d00}div.post{max-width:97%}div.post div.body{word-wrap:break-word;white-space:pre-wrap}div.post.reply{background:#d6daf0;margin:.2em 16px;padding:.2em .3em .5em .7em;border-width:1px;border-style:none solid solid none;border-color:#b7c5d9;display:inline-block}span.trip{color:#228854}span.quote{color:#789922}span.omitted{display:block;margin-top:1em}br.clear{clear:left;display:block}span.controls{float:right;margin:0;padding:0;font-size:80%}span.controls.op{float:none;margin-left:10px}span.controls a{margin:0}div#wrap{width:900px;margin:0 auto}div.ban{background:#fff;border:1px solid #98e;max-width:700px;margin:30px auto}div.ban p,div.ban h2{padding:3px 7px}div.ban h2{background:#98e;color:#000;font-size:12pt}div.ban p{font-size:12px;margin-bottom:12px}div.ban p.reason{font-weight:700}span.heading{color:#af0a0f;font-size:11pt;font-weight:700}span.spoiler{background:#000;color:#000;padding:0 1px}div.post.reply div.body span.spoiler a{color:#000}span.spoiler:hover,div.post.reply div.body span.spoiler:hover a{color:#fff}div.styles{float:right;padding-bottom:20px}div.styles a{margin:0 10px}div.styles a.selected{text-decoration:none}table.test{width:100%}table.test td,table.test th{text-align:left;padding:5px}table.test tr.h th{background:#98e}table.test td img{margin:0}fieldset label{display:block}div.pages{color:#89a;background:#d6daf0;display:inline;padding:8px;border-right:1px solid #b7c5d9;border-bottom:1px solid #b7c5d9}div.pages.top{display:block;padding:5px 8px;margin-bottom:5px;position:fixed;top:0;right:0;opacity:.9}@media screen and (max-width:800px){div.pages.top{display:none!important}}div.pages a.selected{color:#000;font-weight:bolder}div.pages a{text-decoration:none}div.pages form{margin:0;padding:0;display:inline}div.pages form input{margin:0 5px;display:inline}hr{border:none;border-top:1px solid #b7c5d9;height:0;clear:left}div.boardlist{color:#89a;font-size:9pt;margin-top:3px}div.boardlist.bottom{margin-top:30px!important}div.boardlist a{text-decoration:none}div.report{color:#333}table.modlog{margin:auto;width:100%}table.modlog tr td{text-align:left;margin:0;padding:4px 15px 0 0}table.modlog tr th{text-align:left;padding:4px 15px 5px 5px;white-space:nowrap}table.modlog tr th{background:#98e}td.minimal,th.minimal{width:1%;white-space:nowrap}div.top_notice{text-align:center;margin:5px auto}span.public_ban{display:block;color:red;font-weight:700;margin-top:15px}span.toolong{display:block;margin-top:15px}div.blotter{color:red;font-weight:700;text-align:center}table.mod.config-editor{font-size:9pt;width:100%}table.mod.config-editor td{text-align:left;padding:5px;border-bottom:1px solid #98e}table.mod.config-editor input[type=text]{width:98%}p.intro.thread-hidden{margin:0;padding:0}form.ban-appeal{margin:9px 20px}form.ban-appeal textarea{display:block}.theme-catalog div.thread img{float:none!important;margin:auto;margin-bottom:12px;max-height:150px;max-width:200px;box-shadow:0 0 4px rgba(0,0,0,.55);border:2px solid transparent}.theme-catalog div.thread{display:inline-block;vertical-align:top;margin-bottom:25px;margin-left:20px;margin-right:15px;text-align:center;font-weight:400;width:205px;overflow:hidden;position:relative;font-size:11px;padding:15px;max-height:300px;background:rgba(182,182,182,.12);border:2px solid rgba(111,111,111,.34)}.theme-catalog div.thread strong{display:block}.compact-boardlist{padding:3px;padding-bottom:0}.compact-boardlist .cb-item{display:inline-block;vertical-align:middle}.compact-boardlist .cb-icon{padding-bottom:1px}.compact-boardlist .cb-fa{font-size:21px;padding:2px;padding-top:0}.compact-boardlist .cb-cat{padding:5px 6px 8px}.cb-menuitem{display:table-row}.cb-menuitem span{padding:5px;display:table-cell;text-align:left;border-top:1px solid rgba(0,0,0,.5)}.cb-menuitem span.cb-uri{text-align:right}.boardlist:not(.compact-boardlist) #watch-pinned::before{content:" [ "}.boardlist:not(.compact-boardlist) #watch-pinned::after{content:" ] "}.boardlist:not(.compact-boardlist) #watch-pinned{display:inline}.boardlist:not(.compact-boardlist) #watch-pinned a{margin-left:3pt}.boardlist:not(.compact-boardlist) #watch-pinned a:first-child{margin-left:0}.compact-boardlist #watch-pinned{display:inline-block;vertical-align:middle}video.post-image{display:block;float:left;margin:10px 20px;border:none}div.post video.post-image{padding:0;margin:10px 25px 5px 5px}span.settings{display:inline;float:right;margin-left:10px;margin-top:30px}.archive-link{font-weight:700;margin-left:5px;color:#1100c0!important}.blinker{color:#ff0404;font-family:comic sans ms;font-size:115%}.mentioned{word-wrap:break-word}.yt-dl-link{font-weight:700}.yt-dl-embed{float:left;clear:both;margin:5px 0 12px 5px}.video-container+.body{clear:left}.label-block{margin:10px 10px 0 5px}.label-img{display:inline-block;padding:5px;max-height:90px}.capcode-owner{color:#9370db!important;font-weight:700}#canvas-loading{display:none;background-image:url(https://i.imgur.com/c7z4Rx0.gif);width:20px;height:20px}#canvas-box{display:none}#literally-canvas{height:500px;width:600px}.canvas-button{cursor:pointer}#show-oekaki{cursor:pointer}.lol{cursor:pointer}#search-bar{width:25%;padding-top:10px;margin-bottom:25px;margin-left:5px}.forum-using{padding-left:3px;font-style:italic}.use-button{margin-left:2px}.reset-button{margin-left:5px}.avatar.forum{display:none}.signature.forum{display:none}.signature-text-forum{display:none}#chatango-prompt{margin-top:35px;margin-bottom:45px;margin-left:63px;width:160px;cursor:pointer;font-weight:700}.hide-chatango iframe[width='75px']{display:none!important}body{background-image:url(https://i.imgur.com/P31ggRr.png);color:#666;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;margin:0 8px;padding-left:5px;padding-right:5px}hr{border:none;border-top:1px solid #649e66;height:0;clear:left}div.pages.top{display:block;padding:5px 8px;margin-bottom:5px;position:fixed;top:3px;right:3px;opacity:.9;border-radius:5px}div.pages{color:#6d6d6d;background:#ffd0cd;display:inline;padding:8px;border-right:1px solid #da7c75;border-bottom:1px solid #c17b76;border-radius:5px}form table tr th{padding:3px 5px 4px 4px!important;font-size:97%!important;background:rgba(34,228,85,.16);border-radius:7px}div.post.reply{background:#d7ffd8;margin:.2em 16px;padding:.2em .3em .5em .7em!important;border-width:1px;border-style:none solid solid none;border-color:#6cce70;display:inline-block;border-radius:10px}div.post.reply.highlighted{background:#ffd2cf;border-color:#e69994}div.blotter{color:#af0a0f;font-weight:700;text-align:center}header div.subtitle,h1{color:##b1362d;text-align:center}p.intro span.subject{color:#fd4b4b;font-weight:700}#spoiler{padding-left:3px;margin-left:3px;margin-right:3px}#sage{padding-left:3px;margin-left:3px;margin-right:3px}.sage-tip{font-size:85%;color:#a8ada8}.post-arrow{font-size:12px!important;margin-left:0!important}a.arrow-post-options:hover{color:#4e366f!important}.date-link{color:#807e7e!important;font-size:11.5px;margin-right:6px!important}a.date-link:hover{color:#807e7e!important;text-decoration:underline}.thread-hide-button{margin-right:1px;font-size:95%}.fileinfo a{font-size:85%}.fileinfo.reply{margin-left:3px!important}.boardlist{text-align:center!important;font-size:9.3pt!important;margin-top:6px!important;margin-bottom:24px!important}.scroll-button{color:#1a4c0a!important}
  829.  
  830. .desktop-style div.boardlist:nth-child(1) {
  831. background-color: rgba(255,0,0,0);
  832. }
  833.  
  834.  
  835. ` : ""}
  836.  
  837. ${themeEnabled("cia") ? `
  838. @import url("/stylesheets/dark.css");
  839. /*cia theme*/
  840.  
  841.  
  842. .post {
  843. background-color: #a0ecae;
  844. box-shadow: rgb(102, 255, 102) 0px 0px 2rem 10px;
  845. }
  846.  
  847. ` : ""}
  848.  
  849.  
  850. </style>
  851. `);
  852.  
  853.  
  854.  
  855.  
  856. initFixes();
  857.  
  858.  
Add Comment
Please, Sign In to add comment