Win / GreatAwakening
GreatAwakening
Sign In
DEFAULT COMMUNITIES All General AskWin Funny Technology Animals Sports Gaming DIY Health Positive Privacy
Reason: None provided.

For those of you in the know, here is a handy TamperMonkey script I made that makes viewing PDW sooo much better. It removes all posts older than 5h, removes duplicate posts too, and adding your own keywords is easily done at the top of the script. The keywords are not case sensitive. Enjoy.


// ==UserScript== // @name Block Posts by Keywords and Age // @namespace http://tampermonkey.net/ // @version 0.5 // @description Block posts based on keywords and age // @author You // @match ://patriots.win/ // @grant none // ==/UserScript==

(function() { 'use strict';

// =================== KEYWORDS ===================
const keywords = [
    'Jesus',
    'Hannity',
    'Pence',
    'God wins'
].map(keyword => keyword.toLowerCase());
// ================================================

// Create a set to keep track of processed posts
const processedPosts = new Set();

// Toggle button
let toggleButton = document.createElement('button');
toggleButton.innerHTML = 'Toggle Post Blocking';
toggleButton.onclick = () => {
    toggleButton.active = !toggleButton.active;
    localStorage.setItem('toggleState', toggleButton.active);
    toggleButton.style.color = toggleButton.active ? 'green' : 'red';
    processPosts(); // Trigger post processing when toggled
};
toggleButton.active = localStorage.getItem('toggleState') === 'true';
toggleButton.style.color = toggleButton.active ? 'green' : 'red';
toggleButton.style.position = 'fixed';
toggleButton.style.top = '1in';
toggleButton.style.right = '1in';
toggleButton.style.zIndex = '9999';
toggleButton.draggable = true;

toggleButton.ondragend = () => {
    localStorage.setItem('toggleButtonPosition', JSON.stringify({
        right: toggleButton.style.right,
        top: toggleButton.style.top
    }));
};

const savedPosition = localStorage.getItem('toggleButtonPosition');
if (savedPosition) {
    const position = JSON.parse(savedPosition);
    toggleButton.style.right = position.right;
    toggleButton.style.top = position.top;
}

document.body.appendChild(toggleButton);

// Function to process posts
const processPosts = () => {
    if (!toggleButton.active) return;

    document.querySelectorAll('.post').forEach(post => {
        const postId = post.getAttribute('data-id');
        if (processedPosts.has(postId)) return;
        processedPosts.add(postId);

        // Check age
        const ageElement = post.querySelector('.timeago');
        if (ageElement) {
            const ageText = ageElement.textContent || '';
            const ageMatch = ageText.match(/(\d+) (hours?|days?) ago/);
            if (ageMatch) {
                const numericValue = parseInt(ageMatch[1], 10);
                if (ageMatch[2].toLowerCase() === 'hour' && numericValue > 5) {
                    post.style.display = 'none';
                    return;
                } else if (ageMatch[2].toLowerCase() === 'day' && numericValue > 1) {
                    post.style.display = 'none';
                    return;
                }
            }
        }

        // Check keywords
        const titleElement = post.querySelector('.top .title');
        if (titleElement) {
            const titleText = titleElement.textContent.toLowerCase();
            if (keywords.some(keyword => titleText.includes(keyword))) {
                post.style.display = 'none';
            }
        }
    });
};

// Initial run and set interval
processPosts();
setInterval(processPosts, 6000); // 6 seconds

})();

254 days ago
8 score
Reason: None provided.

For those of you in the know, here is a handy TamperMonkey script I made that makes viewing PDW sooo much better. It removes all posts older than 5h, removes duplicate posts too, and adding your own keywords is easily done at the top of the script. The keywords are not case sensitive. Enjoy.


// ==UserScript== // @name Block Posts by Keywords and Age // @namespace http://tampermonkey.net/ // @version 0.4 // @description Block posts based on keywords and age // @author You // @match ://patriots.win/ // @grant none // ==/UserScript==

(function() { 'use strict';

// =================== KEYWORDS ===================
const keywords = [
    'Jesus',
    'Hannity',
    'Pence',
    'God',
    'Verse',
    'Righteousness',
].map(keyword => keyword.toLowerCase());
// ================================================

// Create a set to keep track of processed posts
const processedPosts = new Set();

// Toggle button
let toggleButton = document.createElement('button');
toggleButton.innerHTML = 'Toggle Post Blocking';
toggleButton.onclick = () => {
    toggleButton.active = !toggleButton.active;
    localStorage.setItem('toggleState', toggleButton.active);
    toggleButton.style.color = toggleButton.active ? 'green' : 'red';
    processPosts(); // Trigger post processing when toggled
};
toggleButton.active = localStorage.getItem('toggleState') === 'true';
toggleButton.style.color = toggleButton.active ? 'green' : 'red';
toggleButton.style.position = 'fixed';
toggleButton.style.top = '1in';
toggleButton.style.right = '1in';
toggleButton.style.zIndex = '9999';
toggleButton.draggable = true;

toggleButton.ondragend = () => {
    localStorage.setItem('toggleButtonPosition', JSON.stringify({
        right: toggleButton.style.right,
        top: toggleButton.style.top
    }));
};

const savedPosition = localStorage.getItem('toggleButtonPosition');
if (savedPosition) {
    const position = JSON.parse(savedPosition);
    toggleButton.style.right = position.right;
    toggleButton.style.top = position.top;
}

document.body.appendChild(toggleButton);

// Function to process posts
const processPosts = () => {
    if (!toggleButton.active) return;

    document.querySelectorAll('.post').forEach(post => {
        const postId = post.getAttribute('data-id');
        if (processedPosts.has(postId)) return;
        processedPosts.add(postId);

        // Check age
        const ageElement = post.querySelector('.timeago');
        if (ageElement) {
            const ageText = ageElement.textContent || '';
            const ageMatch = ageText.match(/(\d+) hours?/);
            if (ageMatch && parseInt(ageMatch[1], 10) > 5) {
                post.style.display = 'none';
                return;
            }
        }

        // Check keywords
        const titleElement = post.querySelector('.top .title');
        if (titleElement) {
            const titleText = titleElement.textContent.toLowerCase();
            if (keywords.some(keyword => titleText.includes(keyword))) {
                post.style.display = 'none';
            }
        }
    });
};

// Initial run and set interval
processPosts();
setInterval(processPosts, 6000); // 6 seconds

})();

254 days ago
7 score
Reason: None provided.

For those of you in the know, here is a handy TamperMonkey script I made that makes viewing PDW sooo much better. It removes all posts older than 5h, removes duplicate posts too, and adding your own keywords is easily done at the top of the script. The keywords are not case sensitive. Enjoy.


// ==UserScript== // @name Post Filter // @namespace http://tampermonkey.net/ // @version 0.1 // @description Filter posts by keywords and age // @author You // @match ://yourwebsite.com/ // @grant none // ==/UserScript==

(function() { 'use strict';

// =================== KEYWORDS ===================
const keywords = [
    'Jesus',
    'Hannity',
    'Pence',
    'God'
].map(keyword => keyword.toLowerCase());
// ================================================

// Create a set to keep track of processed posts
const processedPosts = new Set();

// Create a toggle button
const toggleButton = document.createElement('button');
toggleButton.innerHTML = 'Toggle Filter';
toggleButton.style.position = 'fixed';
toggleButton.style.top = '10px';
toggleButton.style.right = '10px';
toggleButton.style.zIndex = '9999';
document.body.appendChild(toggleButton);

// Check if the toggle state is saved in localStorage
let isFilterEnabled = localStorage.getItem('isFilterEnabled') === 'true';

// Set initial button text based on saved state
toggleButton.innerHTML = isFilterEnabled ? 'Disable Filter' : 'Enable Filter';

// Toggle filter on button click
toggleButton.addEventListener('click', () => {
    isFilterEnabled = !isFilterEnabled;
    localStorage.setItem('isFilterEnabled', isFilterEnabled);
    toggleButton.innerHTML = isFilterEnabled ? 'Disable Filter' : 'Enable Filter';
});

const filterPosts = () => {
    if (!isFilterEnabled) return;

    const posts = document.querySelectorAll('.post');
    posts.forEach(post => {
        const postId = post.getAttribute('data-id');
        if (processedPosts.has(postId)) return;
        processedPosts.add(postId);

        const titleElement = post.querySelector('.title');
        const timeElement = post.querySelector('.timeago');

        if (titleElement && timeElement) {
            const title = titleElement.textContent.toLowerCase();
            const time = timeElement.getAttribute('datetime');
            const postDate = new Date(time);
            const ageInHours = (new Date() - postDate) / (1000 * 60 * 60);

            if (ageInHours > 5 || keywords.some(keyword => title.includes(keyword))) {
                post.style.display = 'none';
            }
        }
    });
};

// Run the filter function every 6 seconds
setInterval(filterPosts, 6000);

})();

254 days ago
5 score
Reason: None provided.

For those of you in the know, here is a handy TamperMonkey script I made that makes viewing PDW sooo much better. It removes all posts older than 5h, removes duplicate posts too, and adding your own keywords is easily done at the top of the script. The keywords are not case sensitive. Enjoy.


// ==UserScript== // @name Content Filter for patriots.WIN // @namespace http://tampermonkey.net/ // @version 0.1 // @description Filter out unwanted posts // @author You // @match https://patriots.win/* // @grant none // ==/UserScript==

(function() { 'use strict';

// =================== KEYWORDS ===================
const keywords = [
    'Jesus',
    'Hannity',
    'Pence',
    'God'
].map(keyword => keyword.toLowerCase());
// ================================================

// Create a set to keep track of processed posts
const processedPosts = new Set();

// Create a set to keep track of duplicate posts
const duplicatePosts = new Set();

// Create a toggle button
const toggleButton = document.createElement('button');
toggleButton.innerHTML = 'Toggle Filter';
toggleButton.style.position = 'fixed';
toggleButton.style.bottom = '10px';
toggleButton.style.right = '10px';
toggleButton.style.zIndex = '9999';
toggleButton.style.backgroundColor = 'green';
toggleButton.style.color = 'white';
document.body.appendChild(toggleButton);

let isActive = true;

toggleButton.addEventListener('click', () => {
    isActive = !isActive;
    toggleButton.style.backgroundColor = isActive ? 'green' : 'red';
});

const filterContent = () => {
    if (!isActive) return;

    const posts = document.querySelectorAll('.post');
    posts.forEach(post => {
        const postId = post.getAttribute('data-id');
        if (processedPosts.has(postId)) return;

        processedPosts.add(postId);

        const titleElement = post.querySelector('.title');
        const timeElement = post.querySelector('.timeago');
        const postTime = new Date(timeElement.getAttribute('datetime'));
        const currentTime = new Date();

        const hoursDiff = (currentTime - postTime) / 1000 / 60 / 60;

        if (hoursDiff > 5) {
            post.remove();
            return;
        }

        if (titleElement) {
            const titleText = titleElement.textContent.toLowerCase();
            if (keywords.some(keyword => titleText.includes(keyword))) {
                post.remove();
                return;
            }
        }

        if (duplicatePosts.has(titleText)) {
            post.remove();
            return;
        }

        duplicatePosts.add(titleText);
    });
};

// Run the filter function initially and then every 6 seconds
filterContent();
setInterval(filterContent, 6000);

})();

254 days ago
2 score
Reason: None provided.

For those of you in the know, here is a handy TamperMonkey script I made that makes viewing PDW sooo much better. It removes all posts older than 5h, removes duplicate posts too, and adding your own keywords is easily done at the top of the script. The keywords are not case sensitive. Enjoy.


// ==UserScript== // @name Content Filter for patriots.WIN // @namespace http://tampermonkey.net/ // @version 0.1 // @description PDW Filter // @author CatsFive // @match https://patriots.win/* // @grant none // ==/UserScript==

(function() { 'use strict';

// =================== KEYWORDS ===================
const keywords = [
    'Jesus',
    'Hannity',
    'Pence',
    'God'
].map(keyword => keyword.toLowerCase());
// ================================================

// Create a set to keep track of processed posts
const processedPosts = new Set();

// Function to filter posts
const filterPosts = () => {
    document.querySelectorAll('.post').forEach(post => {
        const postId = post.getAttribute('data-id');
        if (processedPosts.has(postId)) return;

        processedPosts.add(postId);

        const titleElement = post.querySelector('.title');
        const timeElement = post.querySelector('.timeago');
        if (titleElement && timeElement) {
            const titleText = titleElement.textContent.toLowerCase();
            const timeText = timeElement.getAttribute('datetime');
            const postDate = new Date(timeText);
            const currentDate = new Date();
            const diffHours = Math.abs(currentDate - postDate) / 36e5;

            if (diffHours > 5) {
                post.style.display = 'none';
                return;
            }

            for (const keyword of keywords) {
                if (titleText.includes(keyword)) {
                    post.style.display = 'none';
                    return;
                }
            }
        }
    });
};

// Run the filter function every 5 seconds
setInterval(filterPosts, 5000);

})();

254 days ago
2 score
Reason: Original

For those of you in the know, here is a handy TamperMonkey script I made that makes viewing PDW sooo much better. It removes all posts older than 5h, removes duplicate posts too, and adding your own keywords is easily done at the top of the script. The keywords are not case sensitive. Enjoy.


// ==UserScript== // @name Content Filter // @namespace http://tampermonkey.net/ // @version 0.1 // @description PDW Filter // @author You // @match https://patriots.win/* // @grant none // ==/UserScript==

(function() { 'use strict';

// =================== KEYWORDS ===================
const keywords = [
    /Jesus/i,
    /Hannity/i,
    /God/i
];
// ================================================

// Create a set to keep track of processed posts
const processedPosts = new Set();

// Create a toggle button
let toggleButton = document.createElement('button');
toggleButton.innerHTML = 'Toggle Filter';
toggleButton.style.position = 'fixed';
toggleButton.style.bottom = '10px';
toggleButton.style.right = '10px';
toggleButton.style.zIndex = '9999';
toggleButton.style.backgroundColor = 'green';
toggleButton.style.color = 'white';
document.body.appendChild(toggleButton);

let filterActive = true;

toggleButton.addEventListener('click', function() {
    filterActive = !filterActive;
    toggleButton.style.backgroundColor = filterActive ? 'green' : 'red';
});

// Function to filter posts
const filterPosts = () => {
    if (!filterActive) return;

    document.querySelectorAll('.post').forEach(post => {
        const postId = post.getAttribute('data-id');
        if (processedPosts.has(postId)) return;

        processedPosts.add(postId);

        const titleElement = post.querySelector('.title');
        if (!titleElement) return;

        const titleText = titleElement.textContent || titleElement.innerText;
        if (!titleText) return;

        for (const keyword of keywords) {
            if (titleText.match(keyword)) {
                post.style.display = 'none';
                break;
            }
        }
    });
};

// Initial filtering
filterPosts();

// Filter when new posts are loaded
const observer = new MutationObserver(filterPosts);
observer.observe(document.body, { childList: true, subtree: true });

// Additional check for older posts, runs every 5 minutes
setInterval(filterPosts, 300000);

})();

254 days ago
1 score