Discussions » Creation Requests

Make "Page Hacker" firefox extension permanent

§
Posted: 2020-04-23

Make "Page Hacker" firefox extension permanent

Hello all!

During this quarantine, I am studying my Engineering University classes watching videos of my teachers in the Moodle platform. Teachers post link in moodle, but it quickly becomes a mess distinguishing what I have already watched and what I miss watching (even if I take pen and paper notes!! ), so I am using this Firefox extension https://addons.mozilla.org/en-US/firefox/addon/page-hacker/?src=search which permits me to strike out text of text links I already watched between each website visit.

The problem is that changes are not permanent after a page refresh or a new website visit. I would like to make them permanent, but I have not enough knowledge of greasemonkey to be able of making them myself.

Thanks in advance to anyone who will wish to make me happy.

§
Posted: 2020-04-24

I don't have an account for this platform, but maybe you can use a simple CSS to highlight the visted link, like this

// ==UserScript==
// @name         Highlight Visted Link
// @namespace    https://moodle.org
// @version      0.1
// @description  try to take over the world!
// @include      https://moodle.org/*
// @grant        none
// ==/UserScript==

document.head.appendChild(document.createElement('style')).innerHTML = 'a:visited{color: lightgray !important;}';

I don't know the exact link of your classes so this script include the whole https://moodle.org/* website , maybe you should change it. You can also change the color lightgray to your prefers, althought strike them out may be not so easy because the limit of :visited selector.

It's not permanent also, the visted links are manage by browser, it should become invalid if you clean the browser cache, or maybe weeks or months after the link visted

Post reply

Sign in to post a reply.