Should have been regex
This commit is contained in:
parent
2e19d46f81
commit
6273ddd66e
1 changed files with 2 additions and 1 deletions
|
|
@ -1,7 +1,8 @@
|
||||||
javascript: (function() {
|
javascript: (function() {
|
||||||
window.bookmarkver = '1.4';
|
window.bookmarkver = '1.4';
|
||||||
var isReddit = document.location.hostname.split('.').slice(-2).join('.') === 'reddit.com';
|
var isReddit = document.location.hostname.split('.').slice(-2).join('.') === 'reddit.com';
|
||||||
var isOverview = document.location.href.match('/overview\b');
|
var isOverview = document.location.href.match(/\/overview\b/);
|
||||||
|
debugger;
|
||||||
if (isReddit && isOverview) {
|
if (isReddit && isOverview) {
|
||||||
var cachBustUrl = 'https://raw.githubusercontent.com/j0be/PowerDeleteSuite/master/powerdeletesuite.js?' + (new Date().getDate());
|
var cachBustUrl = 'https://raw.githubusercontent.com/j0be/PowerDeleteSuite/master/powerdeletesuite.js?' + (new Date().getDate());
|
||||||
fetch(cachBustUrl).then(function(response) {
|
fetch(cachBustUrl).then(function(response) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue