Pen with Bootstrap CDN Links
A Pen by Miguel Ángel Pérez on CodePen.
/** | |
* Replace jQuery's $.fn.ready() function with a mod exec | |
* | |
* Sites that make heavy use of the $(document).ready function | |
* are generally incompatable with asynchrounous content. The | |
* the $.fn.ready function only runs once. This script replaces | |
* the ready function with a module execution controller that | |
* let's us register functions and execute all of the functions | |
* as we need them. This is useful after HTML gets injected on the | |
* page and we want to rebind functionally to the new content. |
Pen with Bootstrap CDN Links
A Pen by Miguel Ángel Pérez on CodePen.
// IIFE for protection | |
;(function(win, doc, $){ | |
var | |
newStyles = [ | |
'<style>', | |
'.home .navbar-inverse .navbar-nav > li a:hover {', | |
'background-color: #f56226;', | |
'transition: background-color ease-in-out 0.5s;', | |
'}', |
// Run this in your console on the match page | |
var count = 0, | |
repeat = 3, // total number of times the script will repeat | |
matchTolerance = 60; // match percent tolerance | |
// Master Loop | |
function cardLoop() { | |
console.log('Start Loop'); | |
count ++; |
// Run in console while a boost is active. | |
var autoVisitMatches = function(){ | |
jQuery('#spotlight .thumbs .match').each(function(){ | |
var match = jQuery(this), | |
url = match.attr('href'), | |
popup = window.open(url); | |
// Removes Matches I have already Opened | |
match.remove(); |
Questions? Hit me up: @Tayokoart
Questions? Hit me up: @Tayokoart
Questions? Hit me up: @Tayokoart
Questions? Hit me up: @Tayokoart
Questions? Hit me up: @Tayokoart