💡 Add jshint to all user scripts
This commit is contained in:
parent
10d7bbc64a
commit
8766d09bc0
12 changed files with 34 additions and 18 deletions
|
|
@ -4,11 +4,12 @@
|
|||
// @description Allow removal of visited links on Amazon Giveaway Listing
|
||||
// @include https://smile.amazon.com/ga/giveaways*
|
||||
// @include https://www.amazon.com/ga/giveaways*
|
||||
// @version 1.9.1
|
||||
// @version 1.9.2
|
||||
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
|
||||
// ==/UserScript==
|
||||
|
||||
/* global jQuery */
|
||||
/* jshint esversion: 6 */
|
||||
|
||||
(function ($) {
|
||||
'use strict';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
// ==UserScript==
|
||||
// @name Comic Extra Scraper
|
||||
// @namespace danielrayjones
|
||||
// @version 0.0.4
|
||||
// @version 0.0.5
|
||||
// @description Scrape comics from comicextra.com
|
||||
// @author Dan Jones
|
||||
// @match https://www.comicextra.com/*
|
||||
|
|
@ -13,6 +13,7 @@
|
|||
// ==/UserScript==
|
||||
|
||||
/* global jQuery, JSZip */
|
||||
/* jshint esversion: 6 */
|
||||
|
||||
console.log('will scrape comics');
|
||||
|
||||
|
|
|
|||
|
|
@ -3,9 +3,11 @@
|
|||
// @namespace danielrayjones
|
||||
// @description Plays Cookie Clicker for you
|
||||
// @include http://orteil.dashnet.org/cookieclicker/
|
||||
// @version 0.0.3
|
||||
// @version 0.0.4
|
||||
// ==/UserScript==
|
||||
|
||||
/* jshint esversion: 6 */
|
||||
|
||||
let AutoClicker = {stop: false};
|
||||
unsafeWindow.AutoClicker = AutoClicker;
|
||||
|
||||
|
|
@ -28,7 +30,7 @@ window.addEventListener('load', function () {
|
|||
console.log('clicking', shimmer);
|
||||
shimmer.click();
|
||||
});
|
||||
})
|
||||
});
|
||||
});
|
||||
shimmerObserver.observe(shimmers, { childList: true});
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
// ==UserScript==
|
||||
// @name Full Comic Scraper
|
||||
// @namespace danielrayjones
|
||||
// @version 0.0.3
|
||||
// @version 0.0.4
|
||||
// @description Scrape comics from fullcomic.pro
|
||||
// @author Dan Jones
|
||||
// @match http://fullcomic.pro/*
|
||||
|
|
@ -13,6 +13,7 @@
|
|||
// ==/UserScript==
|
||||
|
||||
/* global jQuery, JSZip */
|
||||
/* jshint esversion: 6 */
|
||||
|
||||
console.log('will scrape comics');
|
||||
|
||||
|
|
|
|||
|
|
@ -3,11 +3,12 @@
|
|||
// @namespace danielrayjones
|
||||
// @description Remove stuff I don't like from Amazon Giveaway Listing
|
||||
// @include https://giveawaylisting.com/
|
||||
// @version 1.0
|
||||
// @version 1.0.1
|
||||
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
|
||||
// ==/UserScript==
|
||||
|
||||
/* global $ */
|
||||
/* jshint esversion: 6 */
|
||||
|
||||
var hide = function(text) {
|
||||
$('#giveaways a:contains("' + text +'")')
|
||||
|
|
|
|||
|
|
@ -3,10 +3,12 @@
|
|||
// @namespace danielrayjones
|
||||
// @description Allow removal of visited links on Amazon Giveaway Listing
|
||||
// @include https://giveawaylisting.com/
|
||||
// @version 1.3
|
||||
// @version 1.3.1
|
||||
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
|
||||
// ==/UserScript==
|
||||
|
||||
/* jshint esversion: 6 */
|
||||
|
||||
var checked = false;
|
||||
|
||||
var hideOne = function(el) {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
// ==UserScript==
|
||||
// @name Read Comic Online Scraper
|
||||
// @namespace danielrayjones
|
||||
// @version 0.0.2
|
||||
// @version 0.0.3
|
||||
// @description Scrape comics from readcomiconline.to
|
||||
// @author Dan Jones
|
||||
// @match https://readcomiconline.to/*
|
||||
|
|
@ -13,8 +13,7 @@
|
|||
// ==/UserScript==
|
||||
|
||||
/* global jQuery, JSZip */
|
||||
|
||||
//console.log('will scrape comics');
|
||||
/* jshint esversion: 6 */
|
||||
|
||||
(function($) {
|
||||
'use strict';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
// ==UserScript==
|
||||
// @name Trakt Show Picker
|
||||
// @namespace danielrayjones
|
||||
// @version 0.0.3
|
||||
// @version 0.0.4
|
||||
// @description Pick a show from progress page
|
||||
// @author Dan Jones
|
||||
// @match https://trakt.tv/users/*/progress*
|
||||
|
|
@ -11,6 +11,7 @@
|
|||
// ==/UserScript==
|
||||
|
||||
/* global $, compressedCache, localStorage */
|
||||
/* jshint esversion: 6 */
|
||||
|
||||
(function() {
|
||||
'use strict';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
// ==UserScript==
|
||||
// @name Trakt Scraper
|
||||
// @namespace danielrayjones
|
||||
// @version 0.0.5
|
||||
// @version 0.0.6
|
||||
// @description Scrape lists of shows/movies from Trakt and download a JSON file
|
||||
// @author Dan Jones
|
||||
// @match https://trakt.tv/*
|
||||
|
|
@ -11,6 +11,7 @@
|
|||
// ==/UserScript==
|
||||
|
||||
/* global $, compressedCache, localStorage */
|
||||
/* jshint esversion: 6 */
|
||||
|
||||
(function() {
|
||||
'use strict';
|
||||
|
|
|
|||
|
|
@ -2,13 +2,15 @@
|
|||
// ==UserScript==
|
||||
// @name Trakt Simplifier
|
||||
// @namespace danielrayjones
|
||||
// @version 0.0.2
|
||||
// @version 0.0.3
|
||||
// @description Strip out eps/movies from trakt lists based on a query string
|
||||
// @author Dan Jones
|
||||
// @match https://trakt.tv/*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
/* jshint esversion: 6 */
|
||||
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
// ==UserScript==
|
||||
// @name Viewcomic Scraper
|
||||
// @namespace danielrayjones
|
||||
// @version 0.0.8
|
||||
// @version 0.0.9
|
||||
// @description Scrape comics from viewcomic.com
|
||||
// @author Dan Jones
|
||||
// @match http://viewcomic.com/*
|
||||
|
|
@ -13,6 +13,7 @@
|
|||
// ==/UserScript==
|
||||
|
||||
/* global jQuery, JSZip */
|
||||
/* jshint esversion: 6 */
|
||||
|
||||
(function($) {
|
||||
'use strict';
|
||||
|
|
|
|||
|
|
@ -1,13 +1,15 @@
|
|||
// -*- tab-width: 4; js-indent-level: 4; -*-
|
||||
// ==UserScript==
|
||||
// @name WhenIWork True Total Worked
|
||||
// @namespace danielrayjones
|
||||
// @description Adds the Total hours worked, including today
|
||||
// @include https://app.wheniwork.com/payroll/
|
||||
// @version 0.2
|
||||
// @version 0.2.1
|
||||
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
|
||||
// ==/UserScript==
|
||||
|
||||
/* global $ */
|
||||
/* jshint esversion: 6 */
|
||||
|
||||
$(document).ready(function() {
|
||||
'use strict';
|
||||
|
|
@ -23,7 +25,7 @@ $(document).ready(function() {
|
|||
currentHourSum = hours;
|
||||
|
||||
let weekPlusDayTotal = $('#week-plus-day-total');
|
||||
let span = `<span class="hour-type-label">Total with Today</span>${hours}`
|
||||
let span = `<span class="hour-type-label">Total with Today</span>${hours}`;
|
||||
|
||||
if (weekPlusDayTotal.length === 0) {
|
||||
$('#header-summary-container .stats').append(
|
||||
|
|
@ -34,7 +36,7 @@ $(document).ready(function() {
|
|||
}
|
||||
|
||||
// In case this ran while the page was loading, let's try again in two seconds.
|
||||
setTimeout(addHours, 2000);
|
||||
return setTimeout(addHours, 2000);
|
||||
}
|
||||
|
||||
function addHours() {
|
||||
|
|
@ -52,8 +54,10 @@ $(document).ready(function() {
|
|||
if (currentHourSum === 0 && hourSum === 0) return setTimeout(addHours, 2000);
|
||||
|
||||
if (currentHourSum !== hourSum && hourSum > 0) {
|
||||
updateHours(hourSum);
|
||||
return updateHours(hourSum);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
// The hours don't show up until after an AJAX request completes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue