Page 2 of 4

Posted: Mon Mar 16, 2015 1:17 pm
by juusso
1. Do not ever use IE
2. Agree. Quick links sux! give back our Active topics &co links!
:)

Re:

Posted: Mon Mar 16, 2015 1:46 pm
by zoelechat
juuso wrote:1. Do not ever use IE
Sectroyer, get out of this body :P
I'm not racist against web browsers or OSes, actually I use a frame based browser (Avant Browser) where I can simultaneously open chrome/ie/ff tabs and change on-the-fly, which is really useful in some cases, especially for debugging. But I personnally use firefox as default in 99% cases, I was thinking of remaining IE users. Yes there are, even if most people wrongly think chrome is the best because "a faster way to browse the web: install chrome" (nb: and toolbars, and spywares...) ;)

Re: SamyGO Goes to Digital Ocean Host

Posted: Mon Mar 16, 2015 2:03 pm
by zoelechat
Ah yes, another thing, not that important but just to notice it: "Last visit" date/time was previously not really accurate before migration, but since then it never moved anymore :)

Code: Select all

Last visit was: Thu 12 Mar 2015, 1:03

Re: SamyGO Goes to Digital Ocean Host

Posted: Mon Mar 16, 2015 8:44 pm
by sectroyer
Okay I have fixed "Unread" :) Just use this Greasemonkey/NinjaKit script:

Code: Select all

// ==UserScript==
// @name   SamyGO Unread        
// @namespace    http://forum.samygo.tv/
// @include        http://forum.samygo.tv/index.php
// ==/UserScript==

elements= document.getElementsByClassName("action-bar");
if(elements.length)
{
  var actionBar=elements[0];
  //alert(actionBar);
  var unread=document.createElement("a");
  unread.href="http://forum.samygo.tv/search.php?search_id=unreadposts";
  unread.innerHTML="Unread";
  actionBar.appendChild(unread);
}

Re: SamyGO Goes to Digital Ocean Host

Posted: Mon Mar 16, 2015 9:30 pm
by zoelechat
I can't believe it, now we'd need to patch forum itself :D

Re: SamyGO Goes to Digital Ocean Host

Posted: Tue Mar 17, 2015 12:09 pm
by zoelechat
I improved your idea to "copy" directly options from quick links menu, so that we have all missing ones, and in user selected language! :)
Clipboard01.jpg
Here's code:

Code: Select all

// ==UserScript==
// @name      SamyGO Quicklinks       
// @namespace http://forum.samygo.tv/
// @include   http://forum.samygo.tv/index.php
// @grant none
// ==/UserScript==

var divs = document.querySelector('.dropdown-contents').getElementsByTagName('a');
var actionBar = document.getElementsByClassName('action-bar') [0];
for (var i = 0; i <= 4; i++)
{
  var newElement = document.createElement('a');
  newElement.href = divs[i].href;
  newElement.innerHTML = divs[i].innerHTML;
  actionBar.appendChild(newElement);
  if (i < 4)
    actionBar.appendChild(document.createTextNode(' ? '));
}

Re: SamyGO Goes to Digital Ocean Host

Posted: Tue Mar 17, 2015 7:19 pm
by sectroyer
Hehe, well I don't use other options :)

Re: SamyGO Goes to Digital Ocean Host

Posted: Tue Mar 17, 2015 7:34 pm
by zoelechat
Anyway, it's just a temporary fix ;)

Re: SamyGO Goes to Digital Ocean Host

Posted: Tue Mar 17, 2015 9:59 pm
by sectroyer
Now even better version. Supports sub pages and adds Unread also to "crumbs" bar :D Now it's even better than original :D

Code: Select all

// ==UserScript==
// @name   SamyGO Unread        
// @namespace    http://forum.samygo.tv/
// @include        http://forum.samygo.tv/*
// ==/UserScript==

elements= document.getElementsByClassName("action-bar");
elements2= document.getElementsByClassName("breadcrumbs");
if(elements.length)
{
  var actionBar=elements[0];
  //alert(actionBar);
  var unread=document.createElement("a");
  unread.href="http://forum.samygo.tv/search.php?search_id=unreadposts";
  unread.innerHTML="Unread posts";
  unread.style.marginLeft="25px";
  unread.style.marginBottom="10px";
  actionBar.appendChild(unread);
}
if(elements2.length)
{
  //alert(elements2[0].innerHTML);
  var crumbsBar=elements2[0];
  var newcrumb=document.createElement("span");
  newcrumb.className="crumb";
  newcrumb.style.marginLeft="25px";
  var unread=document.createElement("a");
  unread.href="http://forum.samygo.tv/search.php?search_id=unreadposts";
  unread.innerHTML="Unread posts";
  newcrumb.appendChild(unread);
  crumbsBar.appendChild(newcrumb);
}

Re: SamyGO Goes to Digital Ocean Host

Posted: Tue Mar 17, 2015 10:18 pm
by zoelechat
I don't see anything better, there's still only "unread posts" (twice!) and no automatic translation nor URL retrieval :)
I know, you're trying to drown my better script amongst tons of crap :P