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