Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name ciclism.ro unread content
- // @namespace http://www.ciclism.ro/
- // @version 0.1
- // @description meh
- // @author otsdr
- // @match http*://www.ciclism.ro/forums/discover/*
- // @grant unsafeWindow
- // ==/UserScript==
- (() => {
- 'use strict';
- unsafeWindow.addEventListener("load", () => {
- const d = unsafeWindow.document;
- const action = "?do=getNewComment";
- const links = [...d.querySelectorAll("h2.ipsStreamItem_title > .ipsContained > a")].filter(elt => elt.href.lastIndexOf('?') === -1);
- links.forEach(elt => elt.href += action);
- unsafeWindow.console.log(`Ciclism.ro unread content: modified ${links.length} links.`);
- }, false);
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement