SamyGO Goes to Digital Ocean Host

This is general talk area for things that NOT RELATED WITH TV! Instead, about internal works like web site, forum, wiki, or talking, etc...

User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Post by juusso »

1. Do not ever use IE
2. Agree. Quick links sux! give back our Active topics &co links!
:)
zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re:

Post 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...) ;)
I do NOT receive any PM. Please use forum.
zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: SamyGO Goes to Digital Ocean Host

Post 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
I do NOT receive any PM. Please use forum.
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: SamyGO Goes to Digital Ocean Host

Post 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);
}
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: SamyGO Goes to Digital Ocean Host

Post by zoelechat »

I can't believe it, now we'd need to patch forum itself :D
I do NOT receive any PM. Please use forum.
zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: SamyGO Goes to Digital Ocean Host

Post 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(' ? '));
}
You do not have the required permissions to view the files attached to this post.
I do NOT receive any PM. Please use forum.
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: SamyGO Goes to Digital Ocean Host

Post by sectroyer »

Hehe, well I don't use other options :)
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: SamyGO Goes to Digital Ocean Host

Post by zoelechat »

Anyway, it's just a temporary fix ;)
I do NOT receive any PM. Please use forum.
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: SamyGO Goes to Digital Ocean Host

Post 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);
}
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: SamyGO Goes to Digital Ocean Host

Post 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
I do NOT receive any PM. Please use forum.

Post Reply

Return to “General”