Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // Displayable Name of your script
- // @name FoolX
- // Brief description
- // @description Enhances functionality of FoolFuuka boards
- // Your name, copyright
- // @author aBox
- // @copyright 2013+, aBox
- // Version Number
- // @version 0.7
- // Urls process this user script on
- // You can add board name between / * to limit script to certain boards.
- // Change include to match to make it work even on 4chan archive (not much tested)
- // @include http://*loveisover.me/*
- // @include http://*imcute.yt/*
- // @include http://nsfw.foolz.us/*
- // @include http://archive.foolz.us/*
- // @include https://nsfw.foolz.us/*
- // @include https://archive.foolz.us/*
- // Add any library dependencies here, so they are loaded before your script is loaded.
- // @require https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js
- // ==/UserScript==
- Posts = $('.post').length
- PostIcon = "http://i.imgur.com/bSofxjz.jpg"
- DocumentTitle = document.title
- NewPostCount = 0
- RulesBox = $(".rules_box").html();
- function ThreadUpdate() {
- $(function(){
- $('.pull-left').removeClass('stub')
- });
- $(".rules_box").html("<h6>Posts: " + Posts + "/400</h6>" + RulesBox)
- if ($('.post').length > Posts)
- {
- NewPostCount = $('.post').length - Posts -1
- if (NewPostCount % 2 !== 0) NewPostCount = NewPostCount - 1
- document.title = '(' + NewPostCount + ') ' + DocumentTitle
- }
- if (focus == true)
- {
- document.title = DocumentTitle
- NewPostCount = 0
- Posts = $('.post').length
- }
- }
- $(document).ready(function(){
- focus = true;
- $(window).focus(function(){
- focus = true;
- });
- $(window).blur(function(){
- focus = false;
- });
- });
- ThreadUpdate();
- window.setInterval( function(){ ThreadUpdate(); }, 1000 );
Advertisement
Add Comment
Please, Sign In to add comment