idoenk / kaskus-quick-reply

Kaskus Quick Reply is a userscript which expand user engagement to reply post in Kaskus forum. It includes image uploader and many other features
Other
8 stars 1 forks source link

Quick Quote break quoted post. #8

Closed zackad closed 4 years ago

zackad commented 6 years ago

kaskus mengubah dom dari quote/quoted post. alhasil fitur quick quote tidak bekerja sebagaimana mestinya, fetch quote gak ada masalah.

contoh broken quoted post. 2018-02-13_183454


List of fixed parse with quick quote :

idoenk commented 6 years ago

Quick-quote should test and need adjustment on several cases:

zackad commented 6 years ago

blok kode php di kaskus juga lagi error. sepertinya bug gara-gara bentrok smilie code.

Original code

<?php
if (PHP_SAPI == 'cli-server') {
    // To help the built-in PHP dev server, check if the request was actually for
    // something which should probably be served as a static file
    $url  = parse_url($_SERVER['REQUEST_URI']);
    $file = __DIR__ . $url['path'];
-    if (is_file($file)) {
+    if (is_file&#40;$file&#41<img src="https://s.kaskus.id/images/smilies/sumbangan/13.gif" data-sceditor-emoticon=";)"" border="0" alt="emoticon-Wink" title="Wink"/> {
        return false;
    }
}
idoenk commented 6 years ago

Biasa nih klo ada perubahan structure kudu re-adjust code. Blm klo emng msh ada bug dr sisi kaskus nya nge parse/render element ato atribut. Hehe..

Later ane lanjut patch ya om.. 🙏

zackad commented 6 years ago

update ntar aja dah, soalnya kaskus juga blom stabil sistemnya. pasti bakal banyak perubahan sana-sini. ane bikin list-nya biar ntar ng-ceknya lebih gampang.

anyway thanks buat script-nya.