Post links to your code here (or heck, post the whole code if it fits).
A Warning to new users. Scripts can contain bugs. Scripts can be malicious. Inspect scripts yourself for suspicious content before use.
Post links to your code here (or heck, post the whole code if it fits).
A Warning to new users. Scripts can contain bugs. Scripts can be malicious. Inspect scripts yourself for suspicious content before use.
var imageBlacklist = [] ;
function loadImageBlacklist() { JSON.parse(localStorage.imageBlacklist || "[]").forEach(addToImageBlaclist); }
function saveImageBlacklist() { localStorage.imageBlacklist = JSON.stringify(imageBlacklist); }
function addToImageBlaclist(md5) { if (md5 && -1 === imageBlacklist.indexOf(md5)) imageBlacklist.push(md5); }
function blacklistPostImages(post) { $(post).find('img.post-image').each(function (i, el) { var md5 = el.getAttribute('data-md5'); addToImageBlaclist(md5); el.remove(); }); }
function removeBlacklistedImages() { var removed = 0; $('img.post-image').each(function (i, el) { if (-1 !== imageBlacklist.indexOf(el.getAttribute('data-md5'))) { el.remove(); removed += 1; } }); return removed; }
function onNopeClicked(event) { event.preventDefault(); event.stopPropagation(); loadImageBlacklist(); var post = $(event.target).closest('.post'); blacklistPostImages(post); removeBlacklistedImages(); saveImageBlacklist(); }
function addNopeButtons() { $('.post').each(function(i, post) { if ($(post).find('.nope').length === 0) { $(post).prepend("<input type='button' class='nope' onClick='onNopeClicked(event)' value='Nope'></input>"); } }) }
setInterval(function () { loadImageBlacklist(); removeBlacklistedImages(); addNopeButtons(); }, 500);
Toastmaster 1.1.0 (too big to paste)
https://pastebin.com/eM106zgK
Toastmaster finds the bread so you don't have to visit the catalog or scroll.
Also lets you know if the bread is full (usually)
Does anyone have the script for the QR board's CSS?
It can be reproduced by pulling it through your browser.
but luckily, that was also me, so….
/ Enter here your own CSS rules... // If you want to make a redistributable style, be sure tohave a Yotsuba B theme selected. // These will be applied on top of whatever theme you choose below. // You can include CSS files from remote servers, for example: // @import "https://example.com/style.css"; //------------------------------------------------------ * Fake yous are obvious ------------------------------------------------------/small { font-weight:bold; color:black;}small:hover { color:#11bb11;}/------------------------------------------------------ * The only real trips are Patriot Trips ------------------------------------------------------/.name { font-size:16px;}time:before, span.trip::before{ font-size:18px; content:" "; color:#bbbbff;}time::after, span.trip::after { font-size:18px; content: " "; color:#bbbbff;}span.trip, span.capcode{padding:1px 3px 1px 3px;background-color:black;border-radius:8px;border:1px solid #bbbbee;color:gold;background: linear-gradient(300deg, #ff0000, #ff0000, #ffffff, #ffffff, #0000ff, #0000ff, #ffffff, #ffffff);background-size: 1600% 1600%;-webkit-animation: Patriot 30s ease infinite;-moz-animation: Patriot 30s ease infinite;-o-animation: Patriot 30s ease infinite;animation: Patriot 30s ease infinite; -webkit-text-fill-color: transparent; background: -o-linear-gradient(transparent, transparent); -webkit-background-clip: text;}@-webkit-keyframes Patriot { 0%{background-position:0% 19%} 50%{background-position:100% 82%} 100%{background-position:0% 19%}}@-moz-keyframes Patriot { 0%{background-position:0% 19%} 50%{background-position:100% 82%} 100%{background-position:0% 19%}}@-o-keyframes Patriot { 0%{background-position:0% 19%} 50%{background-position:100% 82%} 100%{background-position:0% 19%}}@keyframes Patriot { 0%{background-position:0% 19%} 50%{background-position:100% 82%} 100%{background-position:0% 19%}}
oops that was an earlier version
/------------------------------------------------------ * Don't hide post count ------------------------------------------------------/.posts_by_id{ display:initial!important; font-weight:bold;}/------------------------------------------------------ * Fake yous are obvious ------------------------------------------------------/.body small { font-weight:bold; color: #117743; text-shadow: #ffffff 0 0 8px;}.body small:hover { color:#11bb11;}/------------------------------------------------------ * The only real trips are Patriot Trips ------------------------------------------------------*/time:before, span.trip::before{ font-size:18px; content:" "; color:#bbbbff;}time::after, span.trip::after { font-size:18px; content: " "; color:#bbbbff;}span.trip, span.capcode{padding:1px 3px 1px 3px;background-color:black;border-radius:8px;border:1px solid #bbbbee;color:gold;background: linear-gradient(300deg, #ff0000, #ff0000, #ff0000, #bbbbbb, #4444ff);background-size: 1800% 1800%;-webkit-animation: Patriot 6s ease infinite;-moz-animation: Patriot 6s ease infinite;-o-animation: Patriot 6s ease infinite;animation: Patriot 6s ease infinite; -webkit-text-fill-color: transparent; background: -o-linear-gradient(transparent, transparent); -webkit-background-clip: text;}@-webkit-keyframes Patriot { 0%{background-position:0% 19%} 50%{background-position:100% 82%} 100%{background-position:0% 19%}}@-moz-keyframes Patriot { 0%{background-position:0% 19%} 50%{background-position:100% 82%} 100%{background-position:0% 19%}}@-o-keyframes Patriot { 0%{background-position:0% 19%} 50%{background-position:100% 82%} 100%{background-position:0% 19%}}@keyframes Patriot { 0%{background-position:0% 19%} 50%{background-position:100% 82%} 100%{background-position:0% 19%}}
Resolved! Thanks anon!!!
I've made a few changes to the anonsw use javascript, mainly because I don't like the colors or the fade feature. I also prefer that spammers just disappear. Likewise with namefags. Thanks to anonsw for the awesome script.
1) You'll never see a Namefag again.
2) Spammers disappear @ 15 posts.
3) Highlights Q's posts and your replies.
4) Incorporates Nope Button to filter porn / gore / muh dick
5) Slimmed down the Navigation Bar @ right of page.
6) Changed Highlight Colors Back To Yellow.
Just copy / paste into your options ~ user javascript.
https://anonfile.com/sbl5Hff5ba/newuserjs.txt
An anon last night said this messed up his computer – careful of clickbait anons!
Bullshit!
Indeed. I've been running both of these since the catalog broke.
How do I turn this post count display on?
Post rate display
That script doesn't show the post count anon, I'll try to add that feature as it would be super handy for bakers. Thanks for the idea. God bless.
Perusers of this thread may also be interested in the QAnon programming thread, found here:
https://8ch.net/qresearch/res/2352371.html
Link to HunterKiller Bot code (uses python to identify dubious non-bread threads, prototypal for programmer hacks to modify, repurpose. Requires BeautifulSoup and Mechanize libraries be installed, Linux users can use apt-get install for both, use apt-cache search to find them).
HKBot:
https://pastebin.com/LmPFhtXm